Answer the question
In order to leave comments, you need to log in
Tornado.database asynchronous or not?
When studying the Tornado API, the following question arose.
Tornado provides a wrapper for accessing MySQL:
www.tornadoweb.org/documentation/database.html
But the documentation doesn't say anything about callbacks attached to the query method (and similar ones).
Do I understand correctly that within a single process (and this is exactly how Tornado works), when using the tornado.database methods, if for example a certain request hangs with a deadlock, then the entire server will be stupidly unavailable?
It's just a little unclear, for example, compared to the Tornado authorization API:
www.tornadoweb.org/documentation/auth.html there are asynchronous callbacks everywhere in the methods. Why is there no such thing in tornado.database methods?
Answer the question
In order to leave comments, you need to log in
The problem is solved, here is what was answered on stackoverflow.com:
stackoverflow.com/questions/9800483/is-tornado-database-asynchronous-or-not
tornado.database is really not asynchronous - this layer was made specifically for the needs of FriendFeed, and the guys from Tornado decided that within the framework of this project they would limit themselves to simple and fast queries, and did not do asynchrony for tornado.database
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question