Skip to Content
Hands-On RESTful Python Web Services - Second Edition
book

Hands-On RESTful Python Web Services - Second Edition

by Gastón C. Hillar
December 2018
Intermediate to advanced
500 pages
12h 33m
English
Packt Publishing
Content preview from Hands-On RESTful Python Web Services - Second Edition

Understanding synchronous and asynchronous execution

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 ...

Become an O’Reilly member and get unlimited access to this title plus top books and audiobooks from O’Reilly and nearly 200 top publishers, thousands of courses curated by job role, 150+ live events each month,
and much more.
Start your free trial

You might also like

Building RESTful Python Web Services

Building RESTful Python Web Services

Gastón C. Hillar
Python Command Line Tools

Python Command Line Tools

Alfredo Deza, Noah Gift

Publisher Resources

ISBN: 9781789532227Supplemental Content