preliminary reverse proxy Rack application
Eric Wong
normalperson at yhbt.net
Tue Feb 1 21:58:11 EST 2011
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
More information about the rainbows-talk
mailing list