BakemonoHouse
BakemonoHouse3mo ago

Event/Message Bus

Just out of curiousity, Anyone tried creating event/message bus inside Convex? Trying to mimic a pub/sub type of structure using convex but I couldn't really think of the best way to handle this
2 Replies
Convex Bot
Convex Bot3mo ago
Thanks for posting in <#1088161997662724167>. Reminder: If you have a Convex Pro account, use the Convex Dashboard to file support tickets. - Provide context: What are you trying to achieve, what is the end-user interaction, what are you seeing? (full error message, command output, etc.) - Use search.convex.dev to search Docs, Stack, and Discord all at once. - Additionally, you can post your questions in the Convex Community's <#1228095053885476985> channel to receive a response from AI. - Avoid tagging staff unless specifically instructed. Thank you!
mikeysee
mikeysee3mo ago
Hey @BakemonoHouse I have thought about this a bit and im not sure if this excactly covers what you are thinking but you migth want to take a look at this comoponent: https://www.convex.dev/components/workpool You could also do something like a queue with just a simple "events" table and a cron job that runs an action that checks that event table and pulls events to handle periodically.
Convex
Workpool
Workpools give critical tasks priority by organizing async operations into separate, customizable queues.

Did you find this page helpful?