ev_core: ensure quit is triggered on all errors
[rainbows.git] / FAQ
blob6c1567542e03ee167e4ef8278cd3d0e49a221b59
1 = Frequently Asked Questions about \Rainbows!
3 === Why is \Rainbows! a separate project from Unicorn?
5 \Rainbows is for the odd, corner-case requests that Unicorn is poorly
6 suited for.  More scalable concurrency models introduce additional
7 complexity that Unicorn users and developers are uncomfortable with for
8 the common cases.
11 === What complexity?  Threads/events/actors are easy to work with!
13 Good for you.  Some of us depend on libraries incompatible with those
14 models, or are just too lazy to deal with them for the majority of
15 requests we service.
18 === Isn't "rainbows" a branch of Unicorn?
20 That functionality is now in the Revactor model of \Rainbows!
23 === What happened to the "gossamer" branch of Unicorn?
25 It became the ThreadPool model of \Rainbows!
28 === Which concurrency model should I use?
30 It depends on your application, libraries, Ruby stack and use cases.
31 That's why we support as many concurrency model as we can.  Each model
32 has their own strengths and weaknesses in terms of maturity,
33 ease-of-debugging, compatibility, performance, and memory usage.
36 === Should I put \Rainbows! behind nginx to serve slow clients?
38 It is optional.  You can still use nginx to route certain requests to
39 Unicorn and others to \Rainbows!  nginx will always outperform
40 \Rainbows! in both pure reverse proxy applications and for serving
41 static files,  but \Rainbows! is for hosting applications that are more
42 easily-implemented in Ruby than C.
45 === Should I use \Rainbows! to serve static files?
47 It depends on the size and amount of static files you're serving.  If
48 you're serving a lot of static files (especially large ones), then by
49 all means use nginx.  If not, then \Rainbows! is likely a "good enough"
50 solution even if nginx will always outperform it in raw throughput.