3 ms·
Does DBOS offer a way to get messages in or data out of running workflows? (Similar to signals/queries in Temporal) Interested in long-running workflows, and th
by hotpocket777 2y ago
Does DBOS offer a way to get messages in or data out of running workflows? (Similar to signals/queries in Temporal) Interested in long-running workflows, and this particular area seemed to be lacking last time I looked into it.
I don’t want to just sleep; I want a workflow to be able to respond to an event.
- KraftyOne 2y agoYes, absolutely, that's an extremely important use case! In DBOS you can send messages to workflows and workflows can publish events that others can read. It's all backed by Postgres (LISTEN/NOTIFY under the hood). Documentation: https://docs.dbos.dev/python/tutorials/workflow-tutorial#workflow-events https://docs.dbos.dev/python/tutorials/workflow-tutorial#wor... Here's a demo e-commerce application that uses messages and events to build an interactive long-running checkout workflow: https://docs.dbos.dev/python/examples/widget-store https://docs.dbos.dev/python/examples/widget-store