[lnkForumImage]
TotalShareware - Download Free Software

Confronta i prezzi di migliaia di prodotti.
Asp Forum
 Home | Login | Register | Search 


 

Forums >

comp.lang.ruby

Question about ruby web servers

Diego Bernardes

5/19/2008 10:14:00 PM

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?
--
Posted via http://www.ruby-....

1 Answer

Phillip Gawlowski

5/19/2008 11:41:00 PM

0

-----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.bl...

~ 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....

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