Rainbows! Rack HTTP server user/dev discussion
 help / color / mirror / code / Atom feed
Search results ordered by [date|relevance]  view[summary|nested|Atom feed]
thread overview below | download mbox.gz: |
* preliminary reverse proxy Rack application
@ 2011-02-02  2:58  7% Eric Wong
  0 siblings, 0 replies; 1+ results
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	[relevance 7%]

Results 1-1 of 1 | reverse | options above
-- pct% links below jump to the message on this page, permalinks otherwise --
2011-02-02  2:58  7% preliminary reverse proxy Rack application Eric Wong

Code repositories for project(s) associated with this public inbox

	https://yhbt.net/rainbows.git/

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).