Comparison Between Fast HTTP Clients
Learn how different Python-based fast HTTP clients compare to each other.
We'll cover the following...
serialized vs. sessions vs. aiohttp
All HTTP client solutions (using sessions, threads, futures or asyncio) offer different approaches to making HTTP clients faster.
The following example is an HTTP client sending requests to httpbin.org, an HTTP API that provides (among other things) an endpoint simulating a long request (a second here). This example implements all the techniques listed above and times them.
To run the following application, click Run and enter command
python...
Ask