k2

Compare original and translation side by side

🇺🇸

Original

English
🇨🇳

Translation

Chinese

Cloudflare K2

Cloudflare K2

K2 is a durable log for decoupling event producers and consumers. Start with the K2 overview, then retrieve the relevant current documentation before giving setup instructions, code, limits, availability, permissions, or API details. The docs are the source of truth over this skill. While cloudflare-docs PR #33858 remains open, use its proposed pages if the public URLs have not been published.
K2 是一个用于解耦事件生产者与消费者的持久化日志服务。在提供设置说明、代码、限制、可用性、权限或 API 细节之前,请先从 K2 概览 开始,然后获取相关的最新文档。文档的权威性高于此 skill。只要 cloudflare-docs PR #33858 仍处于开放状态,如果相应公共 URL 尚未发布,就使用该 PR 中拟议的页面。

Documentation

文档

TaskDocsCheck for
Create a stream and try K2Get startedPrerequisites, setup sequence, current API examples
Understand streams and subscriptionsConceptsRecord model and delivery behavior
Configure a streamConfigurationInputs, authentication, CORS, retention
Produce from HTTP or a WorkerProduce recordsRequest and binding syntax, encoding, errors, retries
Consume through subscriptionsConsume recordsLeases, acknowledgements, retries, errors
Size a stream or consumerLimitsCurrent quotas and size limits
Retrieve the matching pages above for each task and use their current examples. For capacity or cost questions, check current limits and any published pricing before quoting values. State when a requested pricing or availability detail is not yet published.
For SQL transformation and delivery to R2 Iceberg tables, use the
basin
skill. For task processing, consult Queues.
任务文档需要检查
创建流并试用 K2快速入门先决条件、设置步骤、最新 API 示例
了解流和订阅概念记录模型和投递行为
配置流配置输入、身份验证、CORS、保留策略
从 HTTP 或 Worker 写入记录写入记录请求和绑定语法、编码、错误、重试
通过订阅消费记录消费记录租约、确认、重试、错误
确定流或消费者的容量限制当前配额和大小限制
针对每项任务,获取上表中的相应页面,并使用其中的最新示例。对于容量或成本问题,在引用具体数值之前,请检查当前限制以及已发布的定价。如果请求的定价或可用性详情尚未发布,请明确说明。
对于 SQL 转换以及向 R2 Iceberg 表交付数据,请使用
basin
skill。对于任务处理,请查阅 Queues。