Double Buffering with Cloudflare Queues
b_llc
57 points
8 comments
October 28, 2026
Related Discussions
Found 5 related stories in 48.4ms across 3,874 title embeddings via pgvector HNSW
- HTTP/3 is faster with some work and help from Cloudflare saikatsg · 13 pts · October 31, 2026 · 51% similar
- We halved DNS build delay and cut memory use by 85% wondersky · 171 pts · November 02, 2026 · 48% similar
- We can do better than line-buffered output zdw · 96 pts · November 05, 2026 · 47% similar
- Nozzle: A streaming library that emits when possible and buffers where necessary robertvc · 15 pts · November 15, 2026 · 46% similar
- Cloudflare experiencing multiple active incidents jp1016 · 74 pts · November 03, 2026 · 44% similar
Discussion Highlights (3 comments)
b_llc
A stateless pattern I use to batch telemetry at the edge while driving Cloudflare write costs to zero.
8organicbits
I think this is a clever happy path solution, but it isn't very defensive against problems. If the cloud cron doesn't fire on time or the consumer fails then the queue won't be drained in time. That will cause the events to be batched in the wrong hour. I don't see how you are building the batches, but there's a lot of complexity around batch sizes, acknowledging that the messages were consumed, etc. Having a single dataset.json.gz per hour feels like a hint this isn't done safely. I'd double check that carefully to avoid losing data. One tip about compression, I've been really pleased with zstd compression of json/jsonl data.
vivzkestrel
- your blog page has errored out - https://bellone.com/blog