As each operation takes some time and blocks the possibility to process other incoming HTTP requests, we will create a new version of this API that will use asynchronous execution, and we will understand the advantages of Tornado's non-blocking features. This way, it will be possible to change the brightness level for the red LED while another request is changing the brightness level for the green LED. Tornado will be able to start processing requests while the I/O operations with the drone take some time to complete.
Make sure you quit the Tornado HTTP server. You just need to press Ctrl + C in the Terminal or Command Prompt window in which it is running.
Tornado 5.1.1 provides ...