Waymark – A workflow engine that compiles jobs instead of replaying

Hey everyone! @mozgiii and I have been working on Waymark for the better part of the last year. Waymark’s an open source durable execution library with similar functionality to Temporal or DBOS.I fell in love with durable execution a few years ago, after working at a company with a heavy pubsub architecture. In comparison to job orchestrators that force a certain task design or special syntax, many of these durable libs lets you write business logic in regular code: `asyncio.gather` to parallelize tasks, `for` loops, conditionals, and let the runtime figure out how to run them efficiently across a cluster of nodes. But most of the current solutions require a heavy broker, runtime hacks to try to ensure deterministic workflow logic, and feel like you have to learn a whole new ecosystem just to get started.A few unique design decisions in waymark:— Write jobs in normal code (right now Python but JS coming soon). Instead of running control flow as-is, which requires booting up an interpreter to replay past state, we’ll just compile your code directly. We walk your AST and map your logic to our stackless VM bytecode. We support variables, conditionals, await, sleep, helper functions, loops... basically what you’d expect in workflow logic.— Since we’re compiling a language subset, we can proactively flag errors in your workflows locally instead of when they run in production.— It only requires Postgres as the task broker. We’ve spent a lot of time tuning our design to play nicely with its strengths and limitations; our current benchmarks show around 1500 workflows/second but we still have some more optimization work to do here.— Actions plug-and-play with FastAPI’s dependency injection syntax. So if you already have an ecosystem based on typehinting/DI, it should fit like a glove.It allows for parallelization of workflows across one machine or a whole cluster. The bulk of the work per node is done by our central Rust core - which distributes workflows to proper

Hacker NewsToolAISource
0Sign in to voteCopy link

FL score

78

out of 100

Verdict

VALIDATE

high confidence

Competition

No competitor data yet

Trend

No signal yet

Waymark is an open source workflow engine that compiles jobs into bytecode to simplify and speed up durable execution without heavy brokers.

The pain

Current durable workflow engines require complex runtimes, heavy brokers, and special syntax, making them hard to adopt and maintain.

The gap

There is a lack of workflow tools that let developers write normal code without replay overhead or heavy infrastructure, while still ensuring durability and scalability.

Build angle

Leverage the Rust core and Postgres integration to build a performant, easy-to-use open source engine that fits naturally into existing Python and JS ecosystems.

Strengths

  • Innovative compilation approach reduces runtime complexity
  • Uses standard Postgres as broker, lowering infrastructure needs
  • Supports normal code syntax, easing developer adoption
  • Open source with multi-language support planned

Risks

  • Strong competition from established players like Temporal
  • Unclear monetization and customer acquisition strategy
  • Potential technical challenges in scaling and optimization
  • Market may prefer fully managed solutions over open source libraries

Questions about this idea?

FlyBot reads the scoring and gives you a second opinion on “Waymark – A workflow engine that compiles jobs instead of replaying”.

Open FlyBot