workers
workers copied to clipboard
Implement Queues Consumer handler
- Implement Queues Consumer handler and add to Module Worker.
- https://developers.cloudflare.com/queues/platform/javascript-apis/
Please 🙏
I'll try to implement this in next few weeks.
I'll try to implement this in next few weeks.
Thanks in advance. By the way, would you mind sharing the concrete steps that will be involved in doing the implementation? I'm curious to know how things work under the hood, who knows, I might even be able to contribute?
It will be like the following steps.
- producer side
- add Wrapper package of Queue class (send / sendBatch)
- https://developers.cloudflare.com/queues/reference/javascript-apis/#producer
- add Wrapper package of Queue class (send / sendBatch)
- consumer side (almost same as #45)
- add queue handler to workers-assets-gen command's shim.mjs
- add function to listen
queue
handler (like cron.go of #45).
- add example
PRs are welcome!