Show HN: Waymark – A workflow engine that compiles jobs instead of replaying git...
HN Best 200 @best
Show HN: Waymark – A workflow engine that compiles jobs instead of replaying github.com · 16 points · 2 comments · HN thread
TL;DR Waymark is an open-source durable execution library (Python first, Rust core, Postgres as the only backing store) that compiles a workflow's Python AST to bytecode for a durable VM instead of replaying the code like Temporal or DBOS. The Show HN post introduces the project, its design tradeoffs, and a claimed benchmark of about 1500 workflows/second, and states it is not yet ready for production.
- Workflows are plain async Python; the SDK parses run()'s AST into an IR and lowers it to bytecode for a stackless VM, so the original code is never re-executed during recovery.
- The runtime snapshots VM state to Postgres as it runs, so workflows resume after crashes without re-running completed steps.
- Compilation lets the SDK reject nondeterministic calls such as datetime.now() or uuid4() locally, pointing users to wrap them in an action.
- Only Postgres is required as the broker; the authors cite around 1500 workflows/second in current benchmarks and say optimization work remains.
- Actions use FastAPI-style Depends dependency injection; asyncio.gather, loops, conditionals, durable sleep and cron schedules are supported.
- The project explicitly says not to use it in production yet, since the spec is changing and backwards compatibility is not guaranteed before 1.0.0.
Links in the post
- Waymark documentation and landing page: Marketing and docs site covering the quickstart, control flow, retries, schedules, deployment, and a comparison with replay-based engines.
Discussion The thread is short and friendly, with two commenters. A former Pachyderm engineer praises the architecture, comparing its separation of a pure coordination language from sandboxed imperative components to Nix and Bazel, and suggests it could fit batch data processing. A Waymark user replies that they run an internal map-reduce on it, using Redis for intermediate values, and says moving large data through the cluster is the main bottleneck. The mood is curious and positive, with the discussion focused on data-heavy use cases and caching.
- Compile-once approach is a strong architecture idea (some): A commenter who worked on Pachyderm finds the pattern of a pure coordination language over sandboxed imperative components, as in Nix and Bazel, appealing for distributed workflows. They suggest it could improve batch data processing.
- Works in practice but data transfer is the bottleneck (some): A user running an internal map-reduce on Waymark reports it works well. They note that moving data through the cluster is the main constraint, and that intermediate values currently go through Redis, so the solution is not fully integrated.
- Interest in caching pain points for data pipelines (a few): The Pachyderm commenter notes their own caching of partial results clashed with Airflow-style orchestration and asks where the Waymark author hit the most caching snags.
#durableExecution #workflowEngine #python #postgres #rust #backgroundJobs