Roben pfp
Roben
@robingood
One awesome pattern enabled by Cloudflare Queues: A single worker that is producer AND consumer = automatic durable batching before: fetch() { msg = step1(req) step2(msg) } after: fetch() { msg = step1(req) env.QUEUE.send(msg) } queue(batch) { step2(...batch) }
0 reply
0 recast
0 reaction