Question about ruby web servers

D

Diego Bernardes

Usually when you want to archive more performance ex. in mongrel or
thin( i dont know how the webrick, ebb,.. works) in powerfull machines
ppl start new process in other ports and direct the requests for each
process.
Why do this? Isnt better start new threads in only one process?
 
P

Phillip Gawlowski

-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1

Diego Bernardes wrote:
| Usually when you want to archive more performance ex. in mongrel or
| thin( i dont know how the webrick, ebb,.. works) in powerfull machines
| ppl start new process in other ports and direct the requests for each
| process.
| Why do this? Isnt better start new threads in only one process?

'Multi-core'. You can shift multiple processes around on multiple CPUs.

And then there's the nastiness of thread-blocking. In such a case, a
process possibly has to wait for a thread to complete. That is not
really desirable, if you have more than one concurrent request.

Also, if one process gets into a deadlock, it doesn't take your whole
web-server with it.

- --
Phillip Gawlowski
Twitter: twitter.com/cynicalryan
Blog: http://justarubyist.blogspot.com

~ I have plenty of common sense, I just choose to ignore it.
~ --- Calvin
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.8 (MingW32)
Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org

iEYEARECAAYFAkgyEAAACgkQbtAgaoJTgL+nSgCdEIqvMP/bvvbjxxTv6e3KrowQ
eKMAn09QLjtKJBIBBSIpLAUMLmhgW7VL
=TSSg
-----END PGP SIGNATURE-----
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Members online

No members online now.

Forum statistics

Threads
474,202
Messages
2,571,057
Members
47,668
Latest member
SamiraShac

Latest Threads

Top