1 = Rainbows! Unicorn for sleepy apps and slow clients
3 Rainbows! is a HTTP server for sleepy Rack applications. It is based on
4 Unicorn, but designed to handle applications that expect long
5 request/response times and/or slow clients. For Rack applications not
6 heavily bound by slow external network dependencies, consider Unicorn
7 instead as it simpler and easier to debug.
9 == \Rainbows! is about Diversity
11 We aim to support as many concurrency models as we can because they all
14 For network concurrency, models we currently support are:
16 * {:ThreadSpawn}[link:Rainbows/ThreadSpawn.html]
17 * {:ThreadPool}[link:Rainbows/ThreadPool.html]
18 * {:Revactor}[link:Rainbows/Revactor.html]
20 We have {more on the way}[link:TODO.html] for handling network concurrency.
21 Additionally, we also use multiple processes (managed by Unicorn) for
22 CPU/memory/disk concurrency.
26 * Designed for {Rack}[http://rack.rubyforge.org/], the standard for
27 modern Ruby HTTP applications.
29 * Built on {Unicorn}[http://unicorn.bogomips.org/], inheriting its
30 process/socket management features
31 such as transparent upgrades and Ruby configuration DSL.
33 * As with Unicorn, it is able to stream large request bodies off the
34 socket to the application while the client is still uploading. Since
35 \Rainbows! can handle slow clients, this feature is more useful than
38 * Combines heavyweight concurrency (worker processes) with lightweight
39 concurrency (Actors or Threads), allowing CPU/memory/disk to be scaled
40 independently of client connections. Alternative concurrency models
41 (listed in the TODO) will be supported as we find time for them.
45 \Rainbows is for the odd things Unicorn sucks at:
47 * 3rd-party APIs (to services outside your control/LAN)
48 * OpenID consumers (to providers outside your control/LAN)
49 * Reverse proxy implementations with editing/censoring
50 (to upstreams outside your control/LAN)
52 * BOSH (with slow clients)
59 \Rainbows! is copyright 2009 by all contributors (see logs in git).
60 It is based on Mongrel and Unicorn and carries the same license.
62 Mongrel is copyright 2007 Zed A. Shaw and contributors. It is licensed
63 under the Ruby license and the GPL2. See the included LICENSE file for
66 \Rainbows! is 100% Free Software.
70 You may download the tarball from the Rainbows project page on Rubyforge
71 and run setup.rb after unpacking it:
73 http://rubyforge.org/frs/?group_id=8977
75 You may also install it via Rubygems on Rubyforge:
81 === for Rack applications
83 In APP_ROOT (where config.ru is located), run:
87 \Rainbows! will bind to all interfaces on TCP port 8080 by default.
89 === Configuration File(s)
91 \Rainbows! will look for the config.ru file used by rackup in APP_ROOT.
93 For deployments, it can use a config file for Unicorn and
94 \Rainbows!-specific options specified by the +--config-file/-c+
95 command-line switch. \Rainbows! accepts all options found in
96 {Unicorn::Configurator}[http://unicorn.bogomips.org/Unicorn/Configurator.html]
97 as well as the "\Rainbows!" block, so you can have the following in your
102 worker_connections 128
107 * git: git://git.bogomips.org/rainbows.git
108 * cgit: http://git.bogomips.org/cgit/rainbows.git
110 Inline patches (from "git format-patch") to the mailing list are
111 preferred because they allow code review and comments in the reply to
114 We will adhere to mostly the same conventions for patch submissions as
115 git itself. See the Documentation/SubmittingPatches document
116 distributed with git on on patch submission guidelines to follow. Just
117 don't email the git mailing list or maintainer with \Rainbows! patches.
121 There is NO WARRANTY whatsoever if anything goes wrong, but let us know
122 and we'll try our best to fix it.
126 All feedback (bug reports, user/development dicussion, patches, pull
127 requests) go to the mailing list/newsgroup. Patches must be sent inline
128 (git format-patch -M + git send-email). No subscription is necessary
129 to post on the mailing list. No top posting. Address replies +To:+ (or
130 +Cc:+) the original sender and +Cc:+ the mailing list.
132 * email: mailto:rainbows-talk@rubyforge.org
133 * archives: http://rubyforge.org/pipermail/rainbows-talk
134 * subscribe: http://rubyforge.org/mailman/listinfo/rainbows-talk