Hacker Newsnew | past | comments | ask | show | jobs | submitlogin

Don't use Tornado unless you plan to build a full SOA. Python drivers are blocking by default and Tornado offers no support for that, meaning Tornado blocks if you have database calls in your code.

Use gevent. Huge community. Simply works and simply scales. And it makes all your blocking calls nonblocking automatically. Tornado just blocks.



thats a bit of a simplification - you can definiltey use tornado as long as you've got a tornado compatible async driver. people using mongo, postgres, or anything with an http interface are fine. Not wanting to deal with the mental overhead of callbacks, is the reason why I no longer want to use tornado


There are very few Tornado compatible async drivers, so I don't believe it is a simplification.


gevent works thanks to monkey patching of a great many libraries. Its failure modes are a lot more obscure than with callbacks; you pretty much have to unwrap nonblocking calls in your mind that aren't apparent in the code.




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

Search: