Rainbows! Rack HTTP server user/dev discussion
 help / color / mirror / code / Atom feed
From: Eric Wong <normalperson-rMlxZR9MS24@public.gmane.org>
To: rainbows-talk-GrnCvJ7WPxnNLxjTenLetw@public.gmane.org
Subject: preliminary reverse proxy Rack application
Date: Tue, 1 Feb 2011 18:58:11 -0800	[thread overview]
Message-ID: <20110202025811.GA26963@dcvr.yhbt.net> (raw)

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


                 reply	other threads:[~2011-02-02  3:29 UTC|newest]

Thread overview: [no followups] expand[flat|nested]  mbox.gz  Atom feed

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

  List information: https://yhbt.net/rainbows/

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=20110202025811.GA26963@dcvr.yhbt.net \
    --to=normalperson-rmlxzr9ms24@public.gmane.org \
    --cc=rainbows-talk-GrnCvJ7WPxnNLxjTenLetw@public.gmane.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
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).