The main advantage of node.js is that all of its libraries are asynchronous , so you don’t have to worry much about locking. There are asynchronous libraries for mysql, postgres, redis, etc. All by default async.
Python has a library for anything - but most of these libraries are not asynchronous. To use a tornado (rather than blocking a process), special libraries are needed (for example, you cannot just “pip install redis” and use it, you will need something like brukva ), and there are much fewer tornadoes libraries than node.js libraries . There are currently no tornado mysql asynchronous drivers available, for example (or at least I don't know about that).
But you can still use many python libraries with tornadoes (those that don't do i / o), and the tornado community raises and fills in the blanks.
It's easier to write an application using node.js than using a tornado in my experience. I personally switched to tornado from node.js because it fits better with the existing infrastructure of my python project (the integration between the django website serving html pages and the tornado server providing real-time functions was pretty painless).
Mikhail Korobov Apr 6 2018-11-11T00: 00Z
source share