HNHacker News
TopNewBestAskShowJobs

slivuz

144 karma · joined October 2, 2012

Ruby Programmer
submissionscomments
slivuz··on Ruby - Handling 1 Million Concurrent Connections
you right, sorry for pointless blaming, my bad, had to check it first. updating orignal post
slivuz··on Ruby - Handling 1 Million Concurrent Connections
mm, strange math.

179 means that while app holding and communicating to 1 million persistent connections it is still able to process 100+ standard requests per second. pretty enough to accept new clients to your online game, audio/video chat, podcast etc.

this graph shows how many requests per second app may process depending on amount of established persistent connections:

https://raw.github.com/slivu/1mc2/master/results/requests-pe...

slivuz··on Ruby - Handling 1 Million Concurrent Connections
it will segfault. that's why EventMachine using epoll on linuxes and kqueue on bsd
slivuz··on Ruby - Handling 1 Million Concurrent Connections
it is Gnome's System Monitor
slivuz··on Ruby - Handling 1 Million Concurrent Connections
a micro instance costs 2 cents per hour, so $1 per hour for 50 instances.
slivuz··on Ruby - Handling 1 Million Concurrent Connections
starting with 1.9.3 they are also available on MRI, though not sure about 2.0.0 as there GC are highly refactored/optimized.

> Starting with Ruby 1.9.3, the GC in mainstream ruby can also be tuned

http://www.web-l.nl/posts/15-tuning-ruby-s-garbage-collector...

slivuz··on Ruby - Handling 1 Million Concurrent Connections
start with Ruby as backend for online games...

continue with Ruby as backend for audio/video chats...

consider Ruby for streaming podcasts...

etc. etc.

slivuz··on Ruby - Handling 1 Million Concurrent Connections
sure, i tried, but connections comes slow... i wanted they to come like a tornado.