Now, we can run the drone_service.py script, which launches the development server for Tornado 5.1.1 to our new version of the web API that uses the non-blocking features of Tornado, combined with an asynchronous execution. Make sure that the drone_service.py script is not running anymore. Execute the following command:
python async_drone_service.py
The following line shows the output after we execute the previous command. The Tornado HTTP development server is listening at port 8888:
Listening at port 8888
In our new version of the API, each HTTP request is non-blocking. Thus, whenever the Tornado HTTP server receives an HTTP request and makes an asynchronous call, it is able to start working on any other HTTP requests in the incoming queue before the server sends the response that the first HTTP request is received...