Does Heron Remember Between Runs? Checkpoints Restore State. The Reasoning Resets.
Does Heron Remember Between Runs? Checkpoints Restore State. The Reasoning Resets. Apache Heron remembers between runs only when a topology is built and configured to remember. Heron is a real-time, distributed stream processing engine, proven at Twitter scale and designed as a successor to Apache Storm. Its work is organized as a topology, a directed graph of spouts that ingest data and bolts that process it. What survives a restart depends on the delivery semantics that topology runs under, a
Does Heron Remember Between Runs? Checkpoints Restore State. The Reasoning Resets.
Apache Heron remembers between runs only when a topology is built and configured to remember. Heron is a real-time, distributed stream processing engine, proven at Twitter scale and designed as a successor to Apache Storm. Its work is organized as a topology, a directed graph of spouts that ingest data and bolts that process it. What survives a restart depends on the delivery semantics that topology runs under, and on whether its components save state to checkpoints.
That conditional answer matters for automation operators. A Heron topology that counts, windows, and routes events can recover its saved state after a failure. A Heron topology that also calls a model to classify events or decide what needs attention recovers something narrower. The checkpoint restores the state object. It does not restore the reasoning that produced the decisions around it.
The default: at-most-once, and nothing promised
A Heron topology runs under at-most-once delivery semantics by default. Under that setting, a tuple that is lost in a failure is not replayed, and no checkpoint guarantee carries component state across the interruption. The topology restarts, its instances start again, and processing continues with new data.
Two stronger options change that picture. At-least-once enables tuple acking inside the topology, so a tuple that is not acknowledged gets replayed. Effectively-once goes further and enables checkpoints of spout and bolt states, which are restored during the recovery phase. In other words, stateful memory in Heron is a chosen mode, not an automatic property of every topology.
For scheduled and continuous automations, that choice is the first memory decision. A topology left on the default can be excellent at fast, loss-tolerant processing, and still wake up after a restart with none of the state an operator assumed it kept.
Checkpoints: state saved as bytes, restored on recovery
When stateful processing is enabled, Heron checkpoints component state so a failure does not erase it. Each instance serializes its state object into a byte array, and the Checkpoint Manager saves that array to storage, referenced by topology name, component name, and instance id. That reference scheme is precise and machine-oriented: the system knows exactly which saved bytes belong to which instance of which component.
Recovery uses those saves directly. When a failed process or container is restarted, the checkpointed spout and bolt states are restored, and the topology resumes with the state it had at the last checkpoint. The Heron Executor monitors the processes inside a container and restarts them when needed, and the Scheduler monitors containers and restarts failed processes at the cluster level. Checkpoint plus restart machinery is what turns a crash into a pause instead of a reset.
Windows fit into the same story. Heron supports windowing, grouping tuples into windows with watermarks calculated automatically for event timestamps by default. A checkpoint taken for a windowed, stateful bolt preserves the accumulated window state, so the count or aggregate continues instead of starting from an empty window.
The State Manager: plans, not memory of decisions
Heron also has a component literally called the State Manager, and its name invites a misunderstanding worth clearing up. The State Manager maintains the topology states that describe structure: the logical plan, the packing plan, and the physical plan for the topology, typically backed by a service such as ZooKeeper. It answers questions about how the topology is organized and where its pieces run.
That is control-plane memory, not working memory. The logical plan says what the graph is. The packing plan says how instances are grouped into containers. The physical plan says where those containers actually landed. None of those plans records what a bolt decided about a particular event, what a model was told before it classified a record, or why an alert was sent for one anomaly and not another.
Keeping those layers separate prevents a common diagnostic error. A topology can be perfectly remembered by the State Manager, fully visible in the Tracker and the UI, and still have lost every piece of context that explained its last hour of output, because the plans were never designed to hold it.
Where Heron memory ends
Three boundaries show up once AI steps join a topology.
First, a checkpoint holds a serialized state object, not a history. A bolt can restore a counter, a window aggregate, or a lookup structure exactly as saved. The byte array does not explain which events were ambiguous, which classification was borderline, or what instruction shaped a summary. The value crosses the restart. The conversation behind the value does not.
Second, the state belongs to one instance of one component in one topology. A second topology, an n8n workflow downstream, and a support assistant all start with no access to it. Each tool keeps its own state in its own format, and the operator connecting them becomes the memory, re-briefing each piece by hand.
Third, checkpoint files are not readable briefs. Saved bytes referenced by topology, component, and instance id are built for fast restore by the same code that wrote them. A person who needs to know what the overnight topology concluded cannot open a checkpoint and read the reasoning in plain form.
Give the reasoning a memory of its own
The practical split is to let Heron do the job its checkpoints were designed for, and give the AI steps a different memory built for context. Heron handles stream state, delivery semantics, and recovery. The reasoning layer needs to be shared, readable, and available to the next run in whatever tool runs next.
Vilix AI is built for that second job. It is cloud-hosted with zero infrastructure to run, so no extra state service has to be deployed beside the cluster. Heron bolts, scheduled workflows, and assistants connect to the same memory over MCP, so context saved by one run is there for the next run, even in a different tool.
The content differs in kind as well. Vilix AI keeps full conversation history, not just facts or final values, so a following run can see what was asked, what was tried, and what was decided, rather than inheriting a bare restored number. A topology that triages a stream overnight can save its judgments with their reasons, and the morning automation that acts on them starts briefed instead of blank.
Trying that pattern on a real pipeline is kept low-risk. The free plan is free forever, and the Pro trial runs 7 days with no card required, which covers a full week of scheduled runs. Saved memory can be exported or deleted at any time, so the record stays under the operator's control.
Heron's honest answer is conditional: choose effectively-once, checkpoint the state, and the state returns after recovery. The reasoning still resets, because no checkpoint was built to carry it. A shared memory layer carries that half forward, and that is the half a scheduled agent actually wakes up needing.