Hasty Briefsbeta

Bilingual

Cloudflare K2: serverless event streams

4 hours ago
  • K2 is a serverless, durable event streaming primitive that decouples producers and consumers, preventing data loss during scale mismatches or downtime.
  • Built on Cloudflare's R2 object storage, it provides an ordered log with high durability (11 9s) and supports long-term retention and independent consumer scaling.
  • K2 uses batch processing for efficiency, resulting in about 1 second produce latency at the 99th percentile, and is designed for high-scale data movement and fan-out consumption.
  • It differs from Queues (for individual work items with retries) and Basin Pipelines (for ingestion to object storage); K2 is for custom processing and high-throughput streaming.
  • Available in public beta for Workers Paid users, with no billing during beta; expected pricing is $0.04/GB produced/consumed and $0.02/GB/month retention.
  • The roadmap includes higher write parallelism, message keys, push-based consumers, a low-latency express tier, and drop-in Kafka client support.