/plushcap/analysis/cloudflare/cloudflare-how-we-built-cloudflare-queues

Durable Objects aren't just durable, they're fast: a 10x speedup for Cloudflare Queues

What's this blog post about?

Cloudflare Queues are event-driven services that decouple Workers from the main application, allowing for greater scalability, reliability, and flexibility. The service uses Durable Objects as a building block for coordination and storage in a distributed system. Initially designed with a single Durable Object per queue, the v1 architecture had limitations such as latency, throughput, and consumer concurrency. A new v2 architecture was developed to address these issues by horizontally scaling across multiple Durable Objects, reducing latency, increasing throughput, and improving consumer concurrency. The v2 architecture also introduced a Coordinator and "Control Plane" to manage the individual Durable Objects in the system. With its performance improvements, Cloudflare Queues is now generally available, enabling developers to build more scalable and reliable applications on the Cloudflare Developer Platform.

Company
Cloudflare

Date published
Oct. 24, 2024

Author(s)
Josh Wheeler, Siddhant Sinha, Todd Mantell, Pranshu Maheshwari

Word count
1925

Language
English

Hacker News points
None found.


By Matt Makai. 2021-2024.