I'm trying to move away from CherryPy for the web service I'm working on, and one of the alternatives I'm considering is Tornado. Now most of my queries on the backend look something like this:
get post data
see if I have it in the cache (access to the database)
if you don’t make a few HTTP requests for some other web service, which can take even a few seconds depending on the number of requests
I keep hearing that you cannot block the main tornado cycle; I am wondering if all of the above code is executed in the method post()for RequestHandler, does this mean that I am blocking the code? And if so, what is the appropriate approach to use a tornado with the above requirements.
source
share