Python Tornado – A non-blocking web server

If a server is non-blocking, it means that the process can handle more than one requests at the same time and the request doesn’t have  to wait for any I/O or other event to occur.

Traditional web server were synchronous and assigned each thread per user which were very costly, hence a single-threaded event loop can be used by Tornado to make the the code non-blocking and asynchronous as a single operation can be active at one time.

Tornado’s ioloop is the wrapper of asyncio.

(more…)

Tornado reusable components using UI modules

Tornado templates use UI modules to improve the DRYness of the code and make it reusable across different templates in the project.

UI modules are like special function calls to render components of your page, and they can come packaged with their own CSS and JavaScript.

(more…)

SUBSCRIBE!

Do you want to get articles like these in your inbox?

Email *

Interested groups *
Healthtech
Business
Technical articles

Archives