production with just thin/mongrel

4 views
Skip to first unread message

Shaitan

unread,
May 6, 2008, 1:55:20 PM5/6/08
to Ramaze
A little background on the app I'm making; I work at a call center
where the scripting (words read by the agents and data entry for
survey answers etc) is all web based. The script application has a
method to access external applications where it sends a POST
containing all the call data to the external app, and then returns
control to the script after the external app has done it's job via a
redirect to a .jsp file on the dialer.

Anyway, I'm writing an external app to handle some functionality,
sending emails, adding phone numbers to our do not call list etc etc.

As far as deployment goes everything I've read talks about front ends/
load balancers etc proxying to mongrel clusters.

My question is, what's wrong with just having ramaze run on thin and
point the POST requests at it? How much traffic can that handle? Or
are there other problems with that method that I'm not seeing?

I'm new to Ruby/Ramaze so feel free to dumb down the replies. ;)

Thanks

Michael Fellinger

unread,
May 7, 2008, 1:25:51 AM5/7/08
to ram...@googlegroups.com

I think you should just try it without clusters/balancing, if you are
seeing performance problems you can start looking at options for load
balancing.
IMHO ramaze can handle quite some load standalone.

^ manveru

sam carr

unread,
May 7, 2008, 4:29:48 PM5/7/08
to ram...@googlegroups.com
If you run Ramaze directly you'll probably be fine. I'd suggest using
:mongrel as your adapter rather than thin (or evented mongrel or
swiftiplied mongrel) as plain mongrel should allow concurrent request
handling with Ramaze whereas the others are single threaded by nature.
That should allow you to handle more concurrent users before you need
to start using any sort of front-end load balancing or packs of
processes.

I'm new to it all myself though!

ara.t.howard

unread,
May 7, 2008, 4:33:12 PM5/7/08
to ram...@googlegroups.com

is thin single threaded? i'd thought it wasn't....

a @ http://codeforpeople.com/
--
we can deny everything, except that we have the possibility of being
better. simply reflect on that.
h.h. the 14th dalai lama

Jonathan Buch

unread,
May 11, 2008, 10:48:32 AM5/11/08
to ram...@googlegroups.com
Hi,

> is thin single threaded? i'd thought it wasn't....

yes, it is[1]. Like others[2][3] it also builds on EventMachine and
reuses the
HTTP parser from Mongrel.

Jo
[1]
http://macournoyer.wordpress.com/2008/01/03/thin-a-fast-and-simple-web-server/
[2] Evented Mongrel
[3] Ebb

--
Using Opera's revolutionary e-mail client: http://www.opera.com/mail/

Reply all
Reply to author
Forward
0 new messages