This post explores different techniques for improving the performance of HTTP request code in Python, including using concurrency models like threading, multiprocessing, and asyncio. It also discusses the differences between concurrency and parallelism.

16m read timeFrom klaviyo.tech
Post cover image
Table of contents
A Deep Dive into High Performance HTTP Requests for Python EngineersBackgroundParallelism vs ConcurrencyWhat about asyncio?Benchmark TestsBenchmark Test HarnessTesting Each StrategyTrade-offsConclusions

Sort: