Stories from the Web Crawling trenches in CPU bound

What is the difference between asyncio and queue?

Author: Mohan Ganesan

Date: Mar 24, 2024

Asynchronous programming in Python with asyncio and queues. asyncio for I/O bound tasks, queues for CPU bound work. Different concurrency models and performance tradeoffs.

Tired of getting blocked while scraping the web?

ProxiesAPI handles headless browsers and rotates proxies for you.
Get access to 1,000 free API credits, no credit card required!