5 karma · joined Sep 20, 2013 (13y ago) · 5 submissions
comment 4y ago · link · parent
https://github.com/temporalio/sdk-python
Disclaimer: I work for Temporal
comment 4y ago · link · parent
Without Temporal, you store the state of the cart in the DB, load it when the app interacts with your backend, run some business logic and serialize state back into the DB.
With Temporal, first of all, there's no DB. The entire flow is modeled in a single piece of code. Your Workflow can listen to user signals to update the cart, queries to get the cart state, schedule durable timers to remind a user that their cart is abandoned after days and months.
comment 4y ago · link · parent
Using the TypeScript SDK, you can catch that exception here: https://github.com/temporalio/samples-typescript/blob/9d9108...