HackerTrans
TopNewTrendsCommentsPastAskShowJobs

hmaxdml

no profile record

Submissions

Stonebraker on Postgres, Disagreeing with Google, and Future Problems [video]

youtube.com
1 points·by hmaxdml·3 months ago·0 comments

Go-Native Durable Execution

dbos.dev
56 points·by hmaxdml·5 months ago·19 comments

Go-Native Durable Execution

dbos.dev
2 points·by hmaxdml·6 months ago·0 comments

comments

hmaxdml
·last month·discuss
The database is exactly the hardcore piece of engineering that's been designed to scale and be fault tolerant for decades
hmaxdml
·last month·discuss
Because you likely already have a database and likely don't need to bring on an entire new distributed system to orchestrate your workflows.
hmaxdml
·last month·discuss
A PG-backed queue is in code right after being in PG, and the beauty of a neat durable queue framework is in exposing it conveniently and efficiently.
hmaxdml
·last month·discuss
Postgres does scale pretty well: https://www.dbos.dev/blog/benchmarking-workflow-execution-sc...

Tens of thousands of workflows per second
hmaxdml
·last month·discuss
That's why their entire business model -- like Astronomer's -- is geared toward cloud hosting. The architecture is so complex it takes a full time team to run it.
hmaxdml
·last month·discuss
Have you looked into DBOS? Same thesis: durable and reliable workflows are hard to manage -- it just doesn't have to be as hard as Temporal makes it be :)
hmaxdml
·last month·discuss
DBOS python supports SQLite. Go is supporting it next release
hmaxdml
·last month·discuss
I've talked to dozens of engineers who built their home grown "durable" stack. Most of them eventually moved on to buying vs building, when their system actually scaled. It's just not a side-hustle to build a foundational reliability layer.
hmaxdml
·last month·discuss
Yeah, we've observed that too: people start implementing their own retry logic, idempotency, etc. But then they grow a hard to maintain, complex stack that's not their core business logic. There's a reason why there is a dedicated team building DBOS, every day. Because it's not that easy to build a solid durable workflows engine on Postgres.
hmaxdml
·last month·discuss
Listen/notify is poised to become much better in PG 18 and 19
hmaxdml
·last month·discuss
As you said, the example is simple and it might not be obvious to people without prod experience what the problems can be. Postgres can give you all the primitives you need to solve this at the application layer. Durable workflows on Postgres is an effective way to access these primitives.
hmaxdml
·2 months ago·discuss
We've found that durable workflows is a much needed primitive for agents control flow. They give a structure for deterministic replays, observability, and, of course, fault tolerance, that operators need to make the agent loop reliable.
hmaxdml
·4 months ago·discuss
Automatic crash detection for your process is built-in our Conductor offering. The library has a default recovery mode when used standalone.

What do you find strange with workflow versioning? Would love to consider improving the semantics. In fact, we started doing it: https://github.com/dbos-inc/dbos-transact-py/pull/598
hmaxdml
·4 months ago·discuss
I notice you didn't provide any specific comparison alongside that comment, which makes me feel frustrated because I think the Temporal workflow SDK is very different. Architecturally, Temporal and DBOS are at two opposites of the durable execution spectrum. I'd love to understand what makes you think this work is a mere copy and paste. Would you be willing to share some more with me?
hmaxdml
·4 months ago·discuss
Thanks for the comment (author here). I wanted this post to focus on the Golang specific implementation, not dwell on the durable execution ecosystem at large.

With respect to context, I don't know that anyone invented "having their own context". Go interface are extendable and pretty much every major framework I know of implement their own context.

Would love to learn more about the gaps that offset you. We're constantly improving here ;)
hmaxdml
·4 months ago·discuss
Conductor is about enterprise features like automatic workflow recovery, alerting, or RBAC. The GUI is a nice to have -- but all your workflow data are in Postgres. You can access it very easily.
hmaxdml
·5 months ago·discuss
Durable execution has already been mentioned as the existing solution for this problem, but I would like to call out a specific pattern that DE makes obsolete: the outbox pattern. Imagine just being able to do do

send a() send b()

And know both will be sent at least once, without having to introduce an outbox and re-architect your code to use a message relay. We can nitpick the details, but being able to "just write normal code" and get strong guarantees is, imo, real progress.
hmaxdml
·5 months ago·discuss
These are all important concerns, but I'd go for an off the shelf library that does it for me (disclaimer I work at https://github.com/dbos-inc)
hmaxdml
·8 months ago·discuss
The hype is because DE is such an dev exp improvement over building your own queue. Good DE frameworks come with workflows, pub/sub, notifications, distributed queues with tons of flow control options, etc.
hmaxdml
·8 months ago·discuss
one way is to follow https://www.linkedin.com/company/dbos-inc for updates