Tech News
← Home  ·  All topics

R2 Storage

1 GoKawiil brief on this topic

Developer details double-buffered queue pattern built on Cloudflare Workers and R2

A technical write-up describes a telemetry pipeline that uses two alternating Cloudflare Queues, switched via modulo arithmetic on UTC timestamps, to continuously capture events without interrupting ingestion. An hourly consumer task drains the inactive queue, compresses the batched events, and writes them to Cloudflare R2 using a partitioning scheme based on time.