News for hackers. Stuff that matters.
Re:Temporal raises $103M in Series B funding by bergundy on Wednesday February 16, 2022 @06:26PM (#30367284)
I like to think about it in terms of what the code for managing a shopping looks like.

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.

Re:Temporal raises $103M in Series B funding by chucky_z on Wednesday February 16, 2022 @06:49PM (#30367525)
Wouldn't you still want to actually store transactional data inside of a database? Like, you would use all the workflow stuff to do all the business logic, and the workflow(s) themselves are long-running workers which interact with the database(s).

I'd imagine if anything it makes databases _easier_ to reason with, because you could shard by workflow steps or something.

Re:Temporal raises $103M in Series B funding by lorendsr on Wednesday February 16, 2022 @07:37PM (#30367999)
By “there’s no DB”, burgundy means that the dev doesn’t interact with the DB—the state of all their code is automatically being saved to the DB at each step.
Re:Temporal raises $103M in Series B funding by bergundy on Wednesday February 16, 2022 @07:57PM (#30368221)
Yes, that's what I meant, I should have made that clearer
Re:Temporal raises $103M in Series B funding by djanogo on Wednesday February 16, 2022 @06:43PM (#30367457)
If there is no DB how will company go about collecting metrics?, in your example what would the process to query on number of abandoned carts or after how long or after adding which product did they abandon the cart?
Re:Temporal raises $103M in Series B funding by swyx on Wednesday February 16, 2022 @06:46PM (#30367487)
temporal supports elasticsearch for arbitrary querying across workflows, or you can instrument your workflows with logging to an analytics db of your choice