Hacker Newsnew | past | comments | ask | show | jobs | submitlogin
Async Rails 3 stack (github.com/igrigorik)
26 points by igrigorik on June 20, 2010 | hide | past | favorite | 1 comment


Since this has come up a few times already: ab -c 5 -n 10 http://127.0.0.1:3000/widgets/http

That's not a benchmark, it's a proof of concept: http://github.com/igrigorik/async-rails/blob/master/app/cont...

/widgets/http makes an http request to /widgets, which does a 1s sleep query inside of mysql. All of this is happening on the same reactor loop, and finishes with ~2s, aka, the sleeps are not blocking the reactor and hence the "async stack".




Consider applying for YC's Summer 2026 batch! Applications are open till May 4

Guidelines | FAQ | Lists | API | Security | Legal | Apply to YC | Contact

Search: