Technology

Engineering record

EngineIn use

Three criteria for automatic retry and recovery

We tried to resend and recover automatically every time something failed. But the more we resolved automatically, the more the app had to remember and reconcile.

Every time an exception came up, we added retries, resends and recovery. Each one, taken alone, is a kind feature. But the server and the engine both have to remember whether it failed, whether it was resent and how far it recovered. The same state shows up in the model and the replay too. What we did so people wouldn't see failures grew into work that four places have to manage together.

Now when an exception comes up, we don't start by asking “how do we handle this automatically?” We first ask “do we really have to handle this automatically?” We block or handle automatically only where a record a person built up could be lost, where money or paid usage could be computed wrongly, or where someone could reach another person's data. Otherwise we say plainly that it failed and let the person do it again.

We asked partner workouts first

In partner workouts, we required an acknowledgment for every message and resent every 3 seconds. But resending the current state once more and changing the other person's workout record aren't equally important. The current state is now sent just once, when it changes. A request that changes the other person's record could lose that record, so we keep the acknowledgment and the resend for it.

We also removed the round trip to the engine that happened on every typed character. We looked again at the file uploads the engine handled, asking the same question, and removed those too.

This principle has a price too. More things need a person to tap again. So we have to tell people what didn't happen instead of hiding the failure. Doing less automatically must not turn into letting failures slide.

Written from that day’s point of view, using the documents and change history of the time. Published 2026.12.01.