Home / Companies / Zapier / Blog / Post Details
Content Deep Dive

Why Zapier Doesn't Use Gevent (Yet)

Blog post from Zapier

Post Details
Company
Date Published
Author
Rob Golding-Day
Word Count
1,195
Company Posts That Month
5
Language
English
Hacker News Points
-
Post removed?
No
Summary

Zapier processes a high volume of outbound API requests, leading to significant wait times that equate to about four minutes of CPU time per second. To manage this workload, Zapier considered switching to Gevent from their current Python and Django setup, which relies heavily on Celery for asynchronous processing. Gevent, with its cooperative multitasking capabilities via Greenlets, could potentially reduce RAM usage and improve CPU utilization. However, the transition would require replacing third-party libraries, ensuring Greenlet-safety in the code, implementing connection pooling, and managing blocking operations. Despite successfully increasing worker utilization and reducing RAM usage during a trial, Zapier experienced a 50% slowdown in task execution times and increased code complexity, leading them to postpone the switch to Gevent. They anticipate reconsidering this transition as they continue to shift their workload to microservices, but for now, they will maintain their current single-threaded processes.

Trends Found in this Post
Trend Post Mentions Total Month Mentions Posts Companies MoM
Real-time 1 100 47 23 -41%
Use This Data

Use this post, company, and trend context to find content marketing opportunities, perform competitive analysis, or address product feature gaps via the Plushcap MCP server or the Plushcap API.