Cloudflare has launched K2 in public beta, a new serverless event streaming primitive on its Developer Platform. K2 addresses the challenge of traditional RPC architectures where producers and consumers must align in scale and time, often leading to dropped events if consumers cannot keep up or become unavailable.
K2 functions by decoupling data producers and consumers, inserting a service that absorbs writes while allowing independent readers to consume data at their own pace. This design ensures that events are stored durably as an ordered log, preventing data loss even during consumer downtime and supporting multiple consumers with independent processing needs.
Under the hood, K2 implements a partitioned, durable log utilizing Cloudflare's R2 object storage. This architecture enables K2 to scale to vast quantities of data and support long-term retention. It is designed to operate across Cloudflare's global edge network, which spans over 335 cities, addressing the unique challenges of running stateful services on such distributed infrastructure.
Cloudflare initially developed K2 to serve as a durable buffer on the edge, specifically as the ingestion layer for Basin Pipelines. Pipelines, which operates on a pull-based model, required a system to store events durably before they are processed, transformed, and written to R2, ensuring no events are lost once accepted into the stream.
The development of K2 was necessary because traditional distributed systems software like Apache Kafka are not easily deployable across Cloudflare's extensive edge infrastructure. Cloudflare's unique architecture necessitates rethinking how such systems are built and operated to handle the global scale and distributed nature of its network.
✨ This summary was generated by AI from the outlets' reporting listed below. It is not independently verified and may contain errors — check the original sources. How BrevFeed works →
One email each morning: the day's tech stories, clustered across outlets and summarized. No account needed.
One email a day. Unsubscribe in one click, any time.
Spend a few minutes, get the whole day. Every topic's top stories in one hands-free rundown — listen, watch, or read the transcript.
▶ Play today's briefNew every morning, and the back catalogue is archived by date.
Cloudflare introduced K2, a new serverless event streaming primitive now available in public beta on its Developer Platform. K2 provides durable, ordered event logs built on R2 object storage, decoupling data producers and consumers to prevent event loss and scale independently.