Dominik Tornow's Avatar

Dominik Tornow

@dominiktornow.bsky.social

Founder Resonate HQ | Distributed Async Await | Thinking in Distributed Systems | https://dtornow.substack.com

2,823 Followers  |  39 Following  |  595 Posts  |  Joined: 27.10.2024  |  1.9123

Latest posts by dominiktornow.bsky.social on Bluesky

Durable Executions, defined

A crash? An interruption.
A sleep? An interruption.

Same suspension. Same resumption. Same solution.

The full definition: 12 words.
The minimal implementation: 50 lines.

journal.resonatehq.io/p/durable-ex...

03.12.2025 15:35 β€” πŸ‘ 0    πŸ” 0    πŸ’¬ 0    πŸ“Œ 0

See the Write Last, Read First rule in action, in Lisbon, today at 6:00pm

Join Matklad and me for an evening of systems engineering

luma.com/7d47f4et

03.12.2025 15:05 β€” πŸ‘ 0    πŸ” 0    πŸ’¬ 0    πŸ“Œ 0
Post image

Durable Executions, defined

Every durable execution framework: write normal code, get fault tolerance. Yet nobody defines what normal code or fault tolerance are

The alternative: a rigorous definition, grounded in first principles, and a minimal implementation

Dropping today

03.12.2025 10:35 β€” πŸ‘ 2    πŸ” 1    πŸ’¬ 0    πŸ“Œ 1

In distributed systems, you can never know "what is", you can only know "what was"

Even in consensus, you never know the current value, you only know the value at an offset in the log

Every decision is made on a stale understanding of the world

02.12.2025 08:20 β€” πŸ‘ 7    πŸ” 1    πŸ’¬ 1    πŸ“Œ 0

Resonate's Distributed Async Await doesn't add events, event types, event logs, or complex replay machinery.

Resonate makes promises durable. That's it.

01.12.2025 16:50 β€” πŸ‘ 0    πŸ” 0    πŸ’¬ 0    πŸ“Œ 0
Post image

Distributed Async Await, @resonatehqio.bsky.social Durable Executions framework, rests on one mechanic:

skip-when-done

- Checkpoint before the function starts
- Checkpoint after the function returns
- On restart, skip what's done

Everything else follows from there

Dead simple

01.12.2025 11:45 β€” πŸ‘ 1    πŸ” 0    πŸ’¬ 0    πŸ“Œ 1

Join Matklad and me in Lisbon next week for an evening of systems engineering with @tigerbeetle.com and @resonatehqio.bsky.social

I will talk about Write Last, Read First: How to keep systems consistent without transactions

bsky.app/profile/tige...

28.11.2025 10:20 β€” πŸ‘ 2    πŸ” 1    πŸ’¬ 0    πŸ“Œ 0

Dijkstra argued against unconstrained goto, not goto itself:

The unbridled use of goto statements makes it terribly hard to find a meaningful set of coordinates in which to describe the process progress

Unconstrained Event-Driven Architecture is distributed goto

26.11.2025 13:12 β€” πŸ‘ 1    πŸ” 0    πŸ’¬ 0    πŸ“Œ 0
Post image

Today's GoTo is Event-Driven Architecture

(Read first. Yell later)

25.11.2025 14:32 β€” πŸ‘ 1    πŸ” 0    πŸ’¬ 1    πŸ“Œ 1
Post image

Why your code should crash more

Assertions seem extreme: they don't throw exceptions, they crash the process. Yet continuing after a violation is worse than crashing.

Shut it down. Enable assertions in production

dtornow.substack.com/p/assert-in-...

24.11.2025 15:00 β€” πŸ‘ 2    πŸ” 1    πŸ’¬ 0    πŸ“Œ 0
Post image

πŸ“ Blogged: "Building a Durable Execution Engine With SQLite"

Exploring the fundamentals of DE, based on a minimal engine built from scratch, using #SQLite as an execution log, and modern #Java (πŸ‘‹ virtual threads).

πŸ‘‰https://www.morling.dev/blog/building-durable-execution-engine-with-sqlite/

20.11.2025 14:12 β€” πŸ‘ 35    πŸ” 9    πŸ’¬ 1    πŸ“Œ 3
Post image

The Distributed Async Await protocol builds on two (abstract) primitives:

Execute until Blocked

Make progress by taking one incremental step

Send

Communicate by sending one message

Enabling any durability model on any transport

16.11.2025 15:00 β€” πŸ‘ 2    πŸ” 0    πŸ’¬ 0    πŸ“Œ 0

When durable and ephemeral timelines collide

What happens when your agent crashes while the LLM is streaming tokens to the user?!

Chapter 4: Lifetime Management in Agentic Systems

15.11.2025 12:45 β€” πŸ‘ 1    πŸ” 0    πŸ’¬ 0    πŸ“Œ 0

Mastering Continuations = Mastering Control Flow

A good starting point to understand continuations and programming with continuations is

Control structures in programming languages: from goto to algebraic effects

by Xavier Leroy

12.11.2025 21:01 β€” πŸ‘ 4    πŸ” 0    πŸ’¬ 0    πŸ“Œ 0
Post image

Orchestration vs Choreography

Forget the clumsy analogies

Orchestration

The platform manages the continuation

Choreography

The application manages the continuation

Everything else is noise

12.11.2025 16:35 β€” πŸ‘ 1    πŸ” 0    πŸ’¬ 0    πŸ“Œ 1
Post image

The Write Last, Read First Rule

How to guarantee strict serializability across database systems

A special guest post from @dominiktornow.bsky.social

tigerbeetle.com/blog/2025-11...

06.11.2025 12:00 β€” πŸ‘ 2    πŸ” 1    πŸ’¬ 0    πŸ“Œ 0

Partial Failure & Partial Retry

RPCs create recovery boundaries: When an execution crashes, only the executions within its recovery boundaries restart

Executions in different recovery boundaries (across RPCs) continue running.

05.11.2025 18:10 β€” πŸ‘ 1    πŸ” 0    πŸ’¬ 0    πŸ“Œ 0

Partial Failure but Total Retry?!

If we follow the familiar model of chained HTTP calls then a failure in the chain forces a restart from the failure point

This works for short-lived, cheap executions, but collapses under long-lived, expensive ones

05.11.2025 14:30 β€” πŸ‘ 0    πŸ” 0    πŸ’¬ 0    πŸ“Œ 1

From the terminal to the cloud, from prototype to production

Learn how agents scale beyond a single machine and master identity, coordination, and recovery

Build a recursive, distributed Deep Research Agent with @resonatehqio.bsky.social + OpenAIβ€”in under 120 lines

Chapter 3 is live

03.11.2025 09:10 β€” πŸ‘ 0    πŸ” 0    πŸ’¬ 0    πŸ“Œ 1

A Promise doesn’t just represent eventual completion

A Promise also represents eventual invocation

We just tend to forget the latter

02.11.2025 15:28 β€” πŸ‘ 0    πŸ” 0    πŸ’¬ 0    πŸ“Œ 0

I'm experimenting with animations for the 3rd chapter of Systems Engineering for Agentic Applications

This shows the call graph of the recursive, distributed Research Agent unfolding over time, highlighting durable promises

I dig the result but they are a lot of work πŸ₯²

01.11.2025 19:20 β€” πŸ‘ 0    πŸ” 0    πŸ’¬ 0    πŸ“Œ 0
Post image

Weekend Treat ... sorry ... Read πŸŽƒ

Formal models are magic. Not only as a verification tool but as a thinking tool, lifting the fog of uncertainty and assumption

Their magic lies in rigorous, ruthless, relentless clarity

01.11.2025 10:16 β€” πŸ‘ 2    πŸ” 0    πŸ’¬ 0    πŸ“Œ 0
Post image

Two sentences explain I/O better than any CS course

If an expression yields an effect, it percolates through the program to the top, with the context stored as a continuation. An external authority handles the effect and passes the result back to the continuation.

30.10.2025 09:55 β€” πŸ‘ 1    πŸ” 0    πŸ’¬ 0    πŸ“Œ 0
Post image

Uncertainty, formalized: Possible Worlds

The fewer worlds an agent considers possible, the less his uncertainty, and the more he knows

In Reasoning about Knowledge

24.10.2025 10:18 β€” πŸ‘ 0    πŸ” 0    πŸ’¬ 0    πŸ“Œ 0
Post image

Trampolined Style

If you want to understand Event Loops, you need to read this paper from 1999:

A trampolined program is organized as a single loop in which computations are scheduled and allowed to proceed in discrete steps.

Grokking Event Loops = Grokking Continuations

23.10.2025 14:00 β€” πŸ‘ 2    πŸ” 0    πŸ’¬ 0    πŸ“Œ 0

Join me in 30 min. I'll be in the live chat

22.10.2025 17:50 β€” πŸ‘ 5    πŸ” 1    πŸ’¬ 0    πŸ“Œ 0

Building a recursive, distributed Deep Research Agent, scaling to hundreds of agents across dozens of nodes

Chapter 3 covers:

➑️ Agent Identity
➑️ Coordination
➑️ Recovery

When agents leave the terminal, you need to become a distributed systems engineer

22.10.2025 16:02 β€” πŸ‘ 0    πŸ” 0    πŸ’¬ 0    πŸ“Œ 0

Roll up your newspapers, we’re squashing Heisenbugs with Deterministic Simulation Testing πŸ—žοΈ

Join my talk tomorrow 11/22, 11:20 AM PDT

I'll be in the live chat for Q&A

Sign up below ⬇️

21.10.2025 19:25 β€” πŸ‘ 3    πŸ” 0    πŸ’¬ 0    πŸ“Œ 0

T-2d

20.10.2025 20:00 β€” πŸ‘ 3    πŸ” 0    πŸ’¬ 0    πŸ“Œ 0

Run your app for minutes, hours, days, weeks, or month

On FaaS like AWS Lambda or GCP Functions

Serverless @resonatehqio.bsky.social

20.10.2025 13:30 β€” πŸ‘ 0    πŸ” 0    πŸ’¬ 0    πŸ“Œ 0

@dominiktornow is following 20 prominent accounts