K2

作者 cloudflare41e0d1985894無授權條款3K 個星標收錄於 2026年10月8日更新於 2026年10月8日儲存庫7 天前更新

Build and troubleshoot Cloudflare K2 or K2 Streams durable logs. Use for stream setup, producing from Workers or HTTP, configuring retention and inputs, and consuming through subscriptions.

僅含說明DevOps & Cloud
AI 產生的概覽

指導設定與疑難排解 Cloudflare K2 持久日誌,包括串流、生產者、保留策略與訂閱。

功能
此技能為建置與疑難排解 Cloudflare K2 或 K2 Streams 持久日誌提供指引。它會引導代理查閱最新的 Cloudflare 文件,涵蓋建立串流、設定、從 Workers 或 HTTP 產生記錄、透過訂閱取用記錄以及限制。它也指向 SQL 轉換與任務處理的相關資源。
適用情境
適用於設定 K2 串流、從 Workers 或 HTTP 產生記錄、設定保留策略與輸入,或透過訂閱取用記錄。也用於疑難排解 K2 持久日誌行為以及查詢目前限制或可用性。
執行需求
需要存取 Cloudflare 文件,且進行設定或疑難排解時需要具備 K2 存取權的 Cloudflare 帳戶。不包含指令碼,僅為說明文件。

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.

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.

來源與署名

來源:cloudflare/skills位於skills/k2提交41e0d19

授權條款: 無授權條款

內容歸原作者所有。SourceWeft 從公開儲存庫中收錄這些內容。

檢舉或申請下架