Rainbows! Rack HTTP server user/dev discussion
 help / color / mirror / code / Atom feed
* preliminary reverse proxy Rack application
@ 2011-02-02  2:58 Eric Wong
  0 siblings, 0 replies; only message in thread
From: Eric Wong @ 2011-02-02  2:58 UTC (permalink / raw)
  To: rainbows-talk-GrnCvJ7WPxnNLxjTenLetw

Hi all, since some folks have been interested in reverse proxies,
I just pushed this out to rainbows.git

It's a fairly big patch but basically works assuming the
backend is behaving and terminating requests.

----------- commit message -------------
This can be a starting point for developing Cool.io or
EventMachine-based reverse proxy applications on Rainbows!

Eventually Rainbows! could replace nginx for Unicorn users!
Just don't consider this code production ready, yet, at all,
it doesn't handle any sort of failover and has no automated
tests, yet.
 The RDoc in lib/rainbows/reverse_proxy.rb explains the rest

 examples/reverse_proxy.ru                   |    9 ++
 lib/rainbows.rb                             |    1 +
 lib/rainbows/reverse_proxy.rb               |  185 +++++++++++++++++++++++++++
 lib/rainbows/reverse_proxy/coolio.rb        |   61 +++++++++
 lib/rainbows/reverse_proxy/ev_client.rb     |   39 ++++++
 lib/rainbows/reverse_proxy/event_machine.rb |   46 +++++++
 lib/rainbows/reverse_proxy/multi_thread.rb  |    6 +
 lib/rainbows/reverse_proxy/synchronous.rb   |   21 +++
 8 files changed, 368 insertions(+), 0 deletions(-)
 create mode 100644 examples/reverse_proxy.ru
 create mode 100644 lib/rainbows/reverse_proxy.rb
 create mode 100644 lib/rainbows/reverse_proxy/coolio.rb
 create mode 100644 lib/rainbows/reverse_proxy/ev_client.rb
 create mode 100644 lib/rainbows/reverse_proxy/event_machine.rb
 create mode 100644 lib/rainbows/reverse_proxy/multi_thread.rb
 create mode 100644 lib/rainbows/reverse_proxy/synchronous.rb
Eric Wong
Rainbows! mailing list - rainbows-talk-GrnCvJ7WPxnNLxjTenLetw@public.gmane.org
Do not quote signatures (like this one) or top post when replying

^ permalink raw reply	[flat|nested] only message in thread

only message in thread, other threads:[~2011-02-02  3:29 UTC | newest]

Thread overview: (only message) (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2011-02-02  2:58 preliminary reverse proxy Rack application Eric Wong

Rainbows! Rack HTTP server user/dev discussion

This inbox may be cloned and mirrored by anyone:

	git clone --mirror https://yhbt.net/rainbows-public
	git clone --mirror http://ou63pmih66umazou.onion/rainbows-public

	# If you have public-inbox 1.1+ installed, you may
	# initialize and index your mirror using the following commands:
	public-inbox-init -V1 rainbows-public rainbows-public/ https://yhbt.net/rainbows-public \
		rainbows-public@yhbt.net rainbows-public@bogomips.org rainbows-talk@rubyforge.org rainbows-talk-GrnCvJ7WPxnNLxjTenLetw@public.gmane.org
	public-inbox-index rainbows-public

Example config snippet for mirrors.
Newsgroups are available over NNTP:
 note: .onion URLs require Tor: https://www.torproject.org/

code repositories for project(s) associated with this inbox:


AGPL code for this site: git clone http://7fh6tueqddpjyxjmgtdiueylzoqt6pt7hec3pukyptlmohoowvhde4yd.onion/public-inbox.git