Cloudflare launches K2, a serverless event stream built on R2 object storage

Cloudflare K2: serverless event streams

Cloudflare launches K2, a serverless event stream built on R2 object storage

Cloudflare has launched K2 in public beta, a durable event streaming service built on R2 object storage. It decouples producers and consumers, scales horizontally, and supports long-term retention. Under the hood, K2 implements a partitioned log on R2, achieving 11 9s durability while simplifying operations. The beta is available for Workers Paid accounts with 10GB storage and 30 MB/s produce limits. Pricing will be $0.04/GB produced and consumed, and $0.02/GB/month retained.

We first built K2 because we needed a durable buffer on the edge, initially to serve as the ingestion layer for Basin Pipelines.
  1. psanford

    Object store is quickly becoming the new core data substrate. Lets build kafka, but on s3. Lets build github, but on s3. It feels like we going to see more and more "object-store first" systems in the next few years.

    I am excited about this future. Give me stateless servers and a storage bucket over having to manage systems with disks any day.

    I do wonder if we will see an expansion of the s3 api to support more of these use cases. S3 added a janky file append operation to their new express-one-zone bucket type, and limited to 10k total file append operations. I wonder what else we will get in the next few years.

  2. dangoodmanUT

    Funny, I did this a while back and sent it to some folks at Cloudflare [1].

    I'd be glad if they did it from that inspiration, but probably not :/

    [1] https://github.com/danthegoodman1/DurableStreams

  3. necubi

    I'm the author of the post and tech lead for K2. Happy to answer any questions!

  4. nnx

    The pricing is surprising, Data Produced at $0.04/GB seems reasonable (when compared to other clouds event streams) but Data Consumed being at the same $0.04/GB is rather steep...

    This means actual usage is $0.08/GB in the simplest case (one consumer) but fan-out consumer strategies get very expensive very fast.

  5. addisonj

    Congrats on the launch! Stream/event-based system are really powerful, but they are also just pretty complex, in no small part because the modeling of streams for most people today is really modeling Kafka topic/partitions which has a whole bunch of foot-guns and complexity. Making the individual stream really cheap and easy is a big simplification, especially if flexibly consuming a stream for both ordered and unordered use-cases is made simple. This looks to work for unordered, be curious to see how the managed dividing the work for the mentioned key-based ordering.

  6. loufe

    If I was a serious Cloudflare customer I would be seriously concerned about the security of my infrastructure with them. Yes LLMs can code fast but this is an almost frenetic pace of releasing new products, all with fewer staff.

  7. max8539

    Cloudflare is catching up to be a full AWS/GCP/Azure. At start it was just a few services around but they are adding everything else

  8. vira28

    I wonder how many of data infra startups are wrapper on top of S3.

    Also, the boundary between OLTP and OLAP is blurring every day.

    For folks who want an off shelf version of this you may be interested in https://github.com/viggy28/streambed

    (Disclaimer: I am one of the committers)

More from this day

2026-10-01