k2
Compare original and translation side by side
🇺🇸
Original
English🇨🇳
Translation
ChineseCloudflare 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
文档
| Task | Docs | Check for |
|---|---|---|
| Create a stream and try K2 | Get started | Prerequisites, setup sequence, current API examples |
| Understand streams and subscriptions | Concepts | Record model and delivery behavior |
| Configure a stream | Configuration | Inputs, authentication, CORS, retention |
| Produce from HTTP or a Worker | Produce records | Request and binding syntax, encoding, errors, retries |
| Consume through subscriptions | Consume records | Leases, acknowledgements, retries, errors |
| Size a stream or consumer | Limits | Current 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 skill. For task processing, consult Queues.
basin| 任务 | 文档 | 需要检查 |
|---|---|---|
| 创建流并试用 K2 | 快速入门 | 先决条件、设置步骤、最新 API 示例 |
| 了解流和订阅 | 概念 | 记录模型和投递行为 |
| 配置流 | 配置 | 输入、身份验证、CORS、保留策略 |
| 从 HTTP 或 Worker 写入记录 | 写入记录 | 请求和绑定语法、编码、错误、重试 |
| 通过订阅消费记录 | 消费记录 | 租约、确认、重试、错误 |
| 确定流或消费者的容量 | 限制 | 当前配额和大小限制 |
针对每项任务,获取上表中的相应页面,并使用其中的最新示例。对于容量或成本问题,在引用具体数值之前,请检查当前限制以及已发布的定价。如果请求的定价或可用性详情尚未发布,请明确说明。
对于 SQL 转换以及向 R2 Iceberg 表交付数据,请使用 skill。对于任务处理,请查阅 Queues。
basin