In our current version of the RESTful API built with Tornado 5.1.1, each HTTP request is blocking. Hence, whenever the Tornado HTTP server receives an HTTP request, it doesn't start working on any other HTTP requests in the incoming queue until the server sends the response for the first HTTP request is received. The methods we coded in the request handlers are working with a synchronous execution and don't take advantage of the non-blocking features included in Tornado when combined with asynchronous executions.
In order to set the brightness level for the red, green, and blue LEDs, we have to make three HTTP PATCH requests. We will make these requests to understand how our current version of the API processes three incoming requests.
Make sure the Tornado 5.1.1 development server is running. Open three additional...