Free forever, no credit card.Get Started for Free →
← All posts
December 2, 2026 · 6 min read

Does Apache Storm Remember Between Runs? A Stateful Bolt Restores Its Checkpoint. The Reasoning Still Resets.

Does Apache Storm Remember Between Runs? A Stateful Bolt Restores Its Checkpoint. The Reasoning Still Resets. Apache Storm remembers between runs in exactly one deliberate way: a bolt built to be stateful gets its last checkpointed state handed back when it restarts. Everything else about a Storm topology starts fresh. That split matters for anyone running scheduled or continuous automations with AI steps inside them, because the part Storm restores is a state object, and the part it never rest

Does Apache Storm Remember Between Runs? A Stateful Bolt Restores Its Checkpoint. The Reasoning Still Resets.

Apache Storm remembers between runs in exactly one deliberate way: a bolt built to be stateful gets its last checkpointed state handed back when it restarts. Everything else about a Storm topology starts fresh. That split matters for anyone running scheduled or continuous automations with AI steps inside them, because the part Storm restores is a state object, and the part it never restores is the reasoning that surrounded the work.

Storm packages stream processing logic as a topology, a graph of spouts and bolts connected by streams. Spouts pull tuples in from external sources, bolts do the processing, and unlike a batch job that finishes, a topology runs forever, or until it is killed. So "between runs" for Storm means between failures, worker restarts, and redeploys, and the answer depends on how each component was built.

The default bolt forgets everything

A plain bolt keeps whatever it accumulates in its own memory: counts, windows, partial joins, cached lookups. None of that is saved anywhere by default. When the worker process running that bolt fails or gets restarted, the bolt comes back empty and starts accumulating again from zero.

Storm's built-in reliability mechanism does not close that gap. A reliable spout can replay a tuple that failed to complete, because bolts ack tuples as they process them and Storm tracks which tuples finished. Replay recovers the data that was in flight. It does not recover the state the bolt had built from the thousands of tuples before it. Replaying one lost tuple into an empty bolt produces a correct processing of that tuple and a wrong picture of everything that came before it.

An unreliable spout forgets even more: it drops a tuple the moment it is emitted, so there is nothing to replay at all. Which spout type a topology uses is the first memory decision in Storm, and it is made per topology, not for the cluster.

Stateful bolts: state the framework checkpoints for you

Since Storm 1.0, a bolt can opt into framework-managed state by implementing the IStatefulBolt interface or extending BaseStatefulBolt. A stateful bolt works against a KeyValueState, the one state type Storm core supports, and the framework takes over saving and restoring it.

The restore side is the elegant part. When a stateful bolt initializes, the framework calls its initState method with the previously saved state, after prepare and before the bolt processes a single tuple. A word-count bolt, the canonical example in Storm's own documentation, wakes up already holding the counts from the last committed checkpoint instead of recounting from the beginning of the stream.

Saving is automatic and frequent. The framework checkpoints bolt state periodically, every second by default, with the interval tunable through topology.state.checkpoint.interval.ms. A checkpoint is triggered by an internal checkpoint spout that the topology builder adds automatically when a topology contains at least one stateful bolt. Checkpoint tuples flow through the whole topology on an internal $checkpoint stream. Each bolt waits until the checkpoint arrives on all of its input streams before saving, so the saved state represents a consistent cut across the topology rather than a mix of moments. Once the checkpoint spout receives acknowledgments from every bolt, the commit is recorded as complete.

Where that state lives is a configuration choice. Storm ships a default in-memory state implementation, which keeps checkpoints fast but ties their survival to the process. For state that must outlive the worker, topology.state.provider can point at the Redis-backed implementation, org.apache.storm.redis.state.RedisKeyValueStateProvider, which persists key-value state outside the bolt. Same API, very different answer to what a restart means.

Two boundaries are worth knowing. Checkpointing does not currently checkpoint the state of the spout itself, so the input side of the topology leans on replay rather than restore. And the cluster layer is deliberately stateless: Nimbus and the Supervisors are fail-fast and keep no state of their own, with coordination state held in ZooKeeper or on local disk. Storm was designed so the machinery can restart freely because the memory lives in defined places, not spread across daemons.

What the checkpoint never contains

A checkpoint is a key-value snapshot taken at a moment in time. It holds counts, window contents, and accumulated values in whatever shape the bolt author chose to store them. It does not hold why a tuple was routed one way instead of another, what a model concluded about an event three hours ago, which anomalies were already investigated, or what an operator decided the last time this pattern appeared.

That gap shows up the moment a topology includes AI steps. Picture a bolt that sends unusual events to a model for classification and suppresses alerts it has already explained. After a restart, the stateful version of that bolt recovers its counters and its suppression keys, if the author thought to store them as state. The model's earlier conclusions, the explanations already sent, and the context that made a new event look related to an old one are not in the checkpoint, because they were never key-value state. They were conversation and reasoning, and Storm has no place to put either.

So the practical rule for automation operators is narrow and useful: Storm remembers the state a bolt was explicitly designed to checkpoint, in the provider that was explicitly configured, at the last committed checkpoint. Everything a run learned that was not written into that state is gone at the next restart, silently, with the topology looking healthy the whole time.

The layer Storm was never meant to provide

The missing piece is not a better checkpoint. It is a memory the agents inside and around the automation share across runs: what was decided, what was already handled, what the last run found, in full, not reduced to keys and counters. That is the layer Vilix AI provides. Vilix AI is a cloud-hosted memory layer with zero infrastructure to run, reachable over MCP, so the same memory is available to every tool and agent in a workflow rather than living inside one topology's state provider.

Vilix AI keeps full conversation history, not just extracted facts or key-value pairs, so a scheduled agent can read what the previous run actually concluded and why. It works across runs, tools, and platforms, which means the context built inside a Storm pipeline can be picked up by an agent in a completely different automation later. The free plan is free forever, and the Pro trial runs 7 days with no card required, so testing it against a real pipeline costs nothing. Memory can be exported or deleted at any time, keeping control with the operator.

Storm's checkpointing is genuinely good at its job: consistent, automatic, and honest about its boundaries. Let it keep the counts. Give the reasoning a memory of its own, and the next run stops starting over.

Get Started for Free

Persistent memory across ChatGPT, Claude, and the AI tools you already use in Vilix AI.

Get Started for Free

Free forever, no credit card.

Keep reading
Does Grafana Alloy Remember Between Runs? A Positions File and a WAL Hold the Data. Nothing Holds the Decisions.

Does Grafana Alloy Remember Between Runs? A Positions File and a WAL Hold the Data. Nothing Holds the Decisions. Grafana Alloy is the telemetry collector that replaced Grafana Agent: one process, built from components wired into pipelines, collecting metrics, logs, traces, and profiles and forwarding them to wherever they belong. It restarts constantly in real deployments, for config reloads, upgrades, and pod rescheduling. So the practical question is precise: when Alloy comes back, what does

Does Fluent Bit Remember Between Runs? A SQLite File Holds the Offset. Nothing Holds the Reasoning.

Does Fluent Bit Remember Between Runs? A SQLite File Holds the Offset. Nothing Holds the Reasoning. Fluent Bit is the small telemetry agent that sits on hosts and in clusters, tailing log files, receiving metrics and traces, and forwarding everything onward. It is built to be lightweight and to keep moving. When the process restarts for a deploy, a config reload, or a node rebuild, a precise question follows: what did it actually keep? The answer is well documented, genuinely useful, and much n

Does Benthos Remember Between Runs? Its Caches Hold Keys. Not the Reasoning.

Does Benthos Remember Between Runs? Its Caches Hold Keys. Not the Reasoning. Benthos, now Redpanda Connect after Redpanda acquired the project in 2024, moves data between systems: an input reads messages, processors transform them, and an output delivers them somewhere else. It can run for weeks as a quiet background pipeline. Then the process restarts for a deploy, a config change, or a host rebuild, and an operator faces a plain question: what, exactly, did the pipeline keep? The honest answe