# Question about ruby web servers

**URL:** <https://www.ruby-forum.com/t/question-about-ruby-web-servers/138070>\
**Category:** Ruby\
**Created:** [May 20, 2008, 12:13am UTC](https://www.ruby-forum.com/t/question-about-ruby-web-servers/138070 "2008-05-20T00:13:47Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![di3go](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/d/a9a28c/32.png) [@di3go](https://www.ruby-forum.com/u/di3go)\
**Post date:** [May 20, 2008, 12:13am UTC](https://www.ruby-forum.com/t/question-about-ruby-web-servers/138070/1 "2008-05-20T00:13:47Z")

</div>

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?

---

<div class="post-metadata">

**Author:** ![di3go](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/d/a9a28c/32.png) [@di3go](https://www.ruby-forum.com/u/di3go)\
**Post date:** [May 20, 2008, 1:41am UTC](https://www.ruby-forum.com/t/question-about-ruby-web-servers/138070/2 "2008-05-20T01:41:46Z")

</div>

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

Diego B. 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 G.  
Twitter: [twitter.com/cynicalryan](http://twitter.com/cynicalryan)  
Blog: [http://justarubyist.blogspot.com](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](http://enigmail.mozdev.org)

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