Rainbows! Rack HTTP server user/dev discussion
 help / color / 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
http://bogomips.org/rainbows.git/commit/?id=130d086666ccd825fcb13c

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
http://rubyforge.org/mailman/listinfo/rainbows-talk
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, back to index

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

Archives are clonable:
	git clone --mirror http://bogomips.org/rainbows-public
	git clone --mirror http://ou63pmih66umazou.onion/rainbows-public

Example config snippet for mirrors

Newsgroups are available over NNTP:
	nntp://news.public-inbox.org/inbox.comp.lang.ruby.rainbows
	nntp://ou63pmih66umazou.onion/inbox.comp.lang.ruby.rainbows

 note: .onion URLs require Tor: https://www.torproject.org/

AGPL code for this site: git clone https://public-inbox.org/public-inbox.git