K2

Last updated Oct 1, 2026 Decouple event producers and consumers with a durable log

Available on Workers Paid plan

Note

K2 is in public beta, and any developer with a Workers Paid plan can start using it. During the beta, each account can store up to 10 GB. To request a higher limit, refer to Limits.

Cloudflare K2 is a durable log. Produce records to a log, store them for a configurable retention period, and consume them from one or more independent consumers.

Get started


Features

Create a K2 stream

Create a K2 stream, produce records to it, and consume them through a subscription.

Use Create a K2 stream

Produce with a Workers binding or HTTP

Produce records to a K2 stream with a Workers binding or the HTTP API.

Produce to K2

Configure retention period

Records in K2 can be stored for up to 30 days, with longer retention available by request.

Use Configure retention period

Create a subscription to consume

Share records across a group of consumers, or deliver every record to multiple independent consumers, with subscriptions.

Create a subscription


Workers

Build serverless applications and deploy instantly across the globe for exceptional performance, reliability, and scale.

Queues

Complete asynchronous tasks with guaranteed delivery and pull-based Worker consumers.


Was this helpful?

YesNo

On this page

K2 - 图1Docs

{"@context":"https://schema.org","@type":"WebPage","@id":"https://developers.cloudflare.com/k2/#page","headline":"K2","description":"Serverless durable logs","url":"https://developers.cloudflare.com/k2/","inLanguage":"en","image":"https://developers.cloudflare.com/k2/og.png?v=9d8a9f5bbb2b5535","dateModified":"2026-10-01","publisher":{"@type":"Organization","name":"Cloudflare","description":"One platform for your apps, agents, and workforce. Build, secure, and scale without managing infrastructure","url":"https://www.cloudflare.com/","sameAs":["https://github.com/cloudflare","https://www.linkedin.com/company/cloudflare","https://x.com/cloudflare"],"logo":{"@type":"ImageObject","url":"https://developers.cloudflare.com/logo.svg"},"address":{"@type":"PostalAddress","streetAddress":"101 Townsend St","addressLocality":"San Francisco","addressRegion":"CA","postalCode":"94107","addressCountry":"US"},"contactPoint":[{"@type":"ContactPoint","contactType":"Customer Support","url":"https://support.cloudflare.com/","availableLanguage":["English"]},{"@type":"ContactPoint","contactType":"Sales","url":"https://www.cloudflare.com/contact/","availableLanguage":["English"]}]},"isPartOf":{"@type":"WebSite","@id":"https://developers.cloudflare.com/#website","name":"Cloudflare Docs","url":"https://developers.cloudflare.com/"}}


description: Create a K2 stream, produce records over HTTP, and consume them through a subscription. title: Get started image: https://developers.cloudflare.com/k2/get-started/og.png?v=62dce78adb6d0329


Skip to content

Documentation Index
Fetch the complete documentation index at: https://developers.cloudflare.com/k2/llms.txt
Use this file to discover all available pages before exploring further.