Menu

Post image 1
Post image 2
Post image 3
Post image 4
Post image 5
1 / 5
222

The Case for Co-Locating Workflow State with Your Data | DBOS

Reading 0:00
15s threshold

A few weeks ago, we wrote that you should “just use Postgres” for durable workflows. That post generated a lot of discussion, but also a misunderstanding. We didn't just mean you should use a workflow engine that stores state in Postgres. We meant your workflow system can, and often should, live inside the same Postgres database as your application. At first glance, this doesn’t sound like a good idea. Shouldn’t those concerns be separated? Shouldn’t workflow state live in one database and application data in another? Maybe not. In distributed systems, co-location is a superpower. When workflow metadata and application data live in the same Postgres database, they can be updated in the same database transaction. That means partial failures are no longer possible, making it far easier to build workflows that correctly handle all edge cases. In this post, we'll explain why that's possible, and how transactions can simplify tough problems like idempotency and atomicity.…

Continue reading — create a free account

Join HashtagPLUS to read full articles, follow hashtags, vote, and join the conversation.

Read More