Better HN
topnewbestaskshowjobs
Log inSign up

hmaxdml

62 karma · joined Aug 22, 2024 (2y ago) · 59 submissions

Hi I'm Max, founding eng at DBOS. I specialize in distributed systems, operating systems and networking.
Submissions

1.

MongoDB Atlas Infinite(mongodb.com ↗)

1 points · by hmaxdml · 1mo ago · discuss

2.

GitHub Is Down Again(githubstatus.com ↗)

9 points · by hmaxdml · 3mo ago · 1 comment

comment 3mo ago · link · parent

I thought that fell under BYOD (device) :)

comment 3mo ago · link · parent

What's reasonable? DBOS has users running queues at millions of tasks per hour.

For fair queuing you can have partitioned queues where only active partitions consume resources

comment 4mo ago · link · parent

Not saying this in a mean way:

It seems to me this can be boiled down to "using things without understanding how they work doesn't scale". Yes, vanilla listen/notify doesn't scale. But the OP actually figured out how to make it scale. So your engineers don't have to.

As the community builds, over time, distributed systems, it also understands which brick can do what, and it turns out that starting with less bricks and adding some when you actually need them makes for healthier systems.

comment 5mo ago · link · parent

The database is exactly the hardcore piece of engineering that's been designed to scale and be fault tolerant for decades

comment 5mo ago · link · parent

Because you likely already have a database and likely don't need to bring on an entire new distributed system to orchestrate your workflows.

comment 5mo ago · link · parent

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.

comment 5mo ago · link · parent

Postgres does scale pretty well: https://www.dbos.dev/blog/benchmarking-workflow-execution-sc...

Tens of thousands of workflows per second

comment 5mo ago · link · parent

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.

comment 5mo ago · link · parent

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 :)

comment 5mo ago · link · parent

DBOS python supports SQLite. Go is supporting it next release

comment 6mo ago · link · parent

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.

comment 6mo ago · link · parent

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.

comment 6mo ago · link · parent

Listen/notify is poised to become much better in PG 18 and 19

comment 6mo ago · link · parent

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.

comment 6mo ago · link · parent

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.

18.

Stonebraker on Postgres, Disagreeing with Google, and Future Problems [video](youtube.com ↗)

1 points · by hmaxdml · 7mo ago · discuss

comment 8mo ago · link · parent

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

comment 8mo ago · link · parent

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?

comment 8mo ago · link · parent

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 ;)

comment 8mo ago · link · parent

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.

23.

Go-Native Durable Execution(dbos.dev ↗)

56 points · by hmaxdml · 9mo ago · 19 comments

comment 9mo ago · link · parent

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.

comment 9mo ago · link · parent

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)

26.

Go-Native Durable Execution(dbos.dev ↗)

2 points · by hmaxdml · 10mo ago · discuss

comment 1y ago · link · parent

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.

comment 1y ago · link · parent

one way is to follow https://www.linkedin.com/company/dbos-inc for updates

comment 1y ago · link · parent

Good call. We'll see how to integrate it in our docs better.

The cost of DBOS durable execution is 1 write per step (checkpoint the outcome) and 2 additional writes per workflows (upsert the workflow status, checkpoint the outcome). The write size is the size of your workflows/steps output.

Postgres can support several thousands writes per seconds (influenced by the write size, ofc): DBOS can thus support several thousands of workflows/steps per second.

Postgres scales remarkably well. In fact, most org will never out scale a single, vertically scaled Postgres instance. There's a very good write up by Figma telling how they scaled Postgres horizontally: https://www.figma.com/blog/how-figmas-databases-team-lived-t...

12