← 一覧へ

K2 Consumeのレイテンシを最大49%削減、スループットも向上

原題: Lower latency and higher throughput for K2 Consume

changelog / Other / K2 / 2026/12/04 09:00 JST

要約

Cloudflareのメッセージング基盤K2で、Consumeリクエストのレイテンシが最大49%削減された。中央値は1.19秒から0.63秒に短縮され、バックログを抱えたサブスクリプションでは1時間あたりの処理バッチ数が約170%増加する。バッチの開始位置を探すシーク処理の最適化によるもので、既存のConsume APIや全サブスクリプションに自動で適用され、利用者側の変更は不要。

K2Other 出典サイトのOGP画像 出典サイトで原文を開く →

出典サイトの説明: Latency of K2 Consume requests that return records is down by up to 49%, and subscriptions catching up on a backlog consume up to 170% more batches per hour.

Consume requests that return records now have 41% to 49% lower latency across percentiles, with median latency down from 1.19 seconds to 0.63 seconds. Subscriptions catching up on a backlog see 71% lower median latency and consume about 170% more batches per hour. Each Consume first finds where in the stream its batch starts, then reads the records. We optimized this seek phase, so K2 starts reading records sooner. The following table shows the latency of Consume requests that return records: Percentile Before After Change Median 1.19 s 0.63 s 47% lower p90 2.41 s 1.28 s 47% lower p95 2.73 s 1.39 s 49% lower p99 3.43 s 2.01 s 41% lower The following table shows the latency of all Consume requests, including polls that return no new records: Percentile Before After Change p95 1.03 s 0.85 s 18% lower p99 2.26 s 1.31 s 42% lower Subscriptions that are far behind the newest records see the largest reduction. Their median Consume latency dropped from 2.0 seconds to 0.6 seconds, so they catch up on a backlog sooner. You do not need to change anything to get these improvements. They apply to every subscription and to the existing Consume API.

出典: 公式ページ

この記事をシェア