There'a an initialize
method in tornado.web.RequestHandler
class, is it called every time there's a request?
Yes, tornado calls initialize
for each request.
If you want to share state between requests(like db connection) - store it in self.application
.