Good patterns for async workflows local dev using queues and r2 events
Hi,
I've built a reasonably complex application which has:
- a pages worker serving up a Next.js website
- an external api worker using Hono
- R2 buckets
- several queues, which source events from a mixture of:
- R2 Bucket Events
- Event puts from workers
- several queue workers for the above queues
All this is in a single monorepo.
I'm wondering if anyone has any good patterns for local development.
Queues are difficult unless I run everything through a single wrangler process, which is difficult given that I need my site worker and my api worker on different ports.
Also, I haven't yet found a way to do R2 events on local.
I thought I'd post here and see if anyone has come up with anything cool.
My current thoughts are to run via 2 wrangler processes, one for my website, one for my api + the rest. Which will at least get me some of the way (except R2 events).
0 Replies