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

Does Samza Remember Between Runs? Local State Survives. The Reasoning Does Not.

Does Samza Remember Between Runs? Local State Survives. The Reasoning Does Not. Samza remembers more between runs than most stream processors, and it remembers it on purpose. Every task keeps its own local state store on the machine where it runs, and every change to that store is also written to a changelog stream, so a task that fails, moves, or restarts can rebuild what it had. Stop a Samza job tonight and start it tomorrow, and its counts, windows, and joined tables come back. What does no

Does Samza Remember Between Runs? Local State Survives. The Reasoning Does Not.

Samza remembers more between runs than most stream processors, and it remembers it on purpose. Every task keeps its own local state store on the machine where it runs, and every change to that store is also written to a changelog stream, so a task that fails, moves, or restarts can rebuild what it had. Stop a Samza job tonight and start it tomorrow, and its counts, windows, and joined tables come back.

What does not come back is everything around that state. Samza restores data values, not decisions. When a Samza job gains AI steps, and a model inside the pipeline classifies events, drafts summaries, or decides which records deserve attention, the reasoning behind those calls lives nowhere in the local store or the changelog. The next run inherits the numbers and starts the thinking from zero.

Local state: a store that lives next to the task

Stateful processing is Samza's core feature. A task does not call out to a remote database every time it needs a count or a lookup. Instead, Samza gives the task a key-value store on the same machine, commonly backed by RocksDB, and the task reads and writes that store as it processes each message. Local access is the performance story: large amounts of state, no network hop per event.

That store is partitioned the same way the input is. Each task instance owns the state for its input partitions, so the store a task rebuilds after a restart is its slice of the whole picture, not a shared global memory. Two tasks never see each other's local state directly. Anything that has to move between them travels as a stream.

For automation work, this design is genuinely strong. A windowed aggregation that counts events per customer per hour survives a container failure with its counters intact. A stream-table join keeps the latest version of each reference record locally, ready to enrich the next event. The state was built to be remembered, and within the job that built it, it is.

The changelog: why the state survives a restart

Local disk alone would be a fragile place to keep the only copy of anything. Samza solves that by replicating state as it changes. Every write to a local store is also sent to a changelog, a log-compacted Kafka topic dedicated to that store. The changelog is the durable copy, and the local store is the fast copy.

Recovery follows directly from that split. When a task restarts on a machine without its state, Samza restores the local store by replaying the changelog from the beginning, applying each change in order until the store matches what the failed task had. When a task restarts on the same host after a clean shutdown, host affinity can place it back where its local state still sits on disk, and the restore can be skipped or shortened because the fast copy never left.

Checkpoints complete the picture by recording where processing had reached in the input streams. State plus position means a restarted job resumes instead of recomputing: the store says what the task knew, and the checkpoint says which messages it had already applied that knowledge to.

Where Samza memory ends

Three boundaries matter once AI steps enter the pipeline.

First, the store holds values, not history. A counter reads 41. The changelog can rebuild the 41, but neither the store nor the changelog records which events were ambiguous, which ones a model flagged as unusual, or why a record was routed to a human instead of the normal output. The state is the current answer, stripped of the conversation that produced it.

Second, the memory belongs to one job. A second Samza job, an n8n workflow, and a coding assistant all start with no access to what the first job learned. Each system keeps its own store, its own changelog, its own checkpoints. An operator stitching these together re-briefs every piece by hand, usually by pasting yesterday's output into today's prompt.

Third, nothing in the store is readable as a brief. RocksDB files and compacted topics are machine formats for fast restore. A person who wants to know what last night's run decided cannot open the changelog and read it. The memory exists, but only the job that wrote it can use it, and only in the exact form it wrote it.

Give the reasoning a memory of its own

The fix is to separate two jobs that are easy to confuse. Keep Samza doing what it does well: fast local state, changelog-backed recovery, checkpointed resume. Then give the AI steps a shared memory that is built for reasoning rather than for stream state.

Vilix AI is that second layer. It is cloud-hosted with zero infrastructure to run, so there is no extra store to deploy next to the cluster. Samza tasks, scheduled workflows, and assistants connect to the same memory over MCP, which means the context one run saves is the context the next run, in a different tool, reads on arrival.

The content of that memory is also different in kind. Vilix AI keeps full conversation history, not just facts or final values, so a run can see what was asked, what was tried, and what was decided, instead of inheriting a bare number. A nightly Samza job that triages events can save its judgments with their reasons. The morning workflow that acts on them starts briefed instead of blank.

Access stays simple enough for a scheduled pipeline to use every day. The free plan is free forever, and the Pro trial runs 7 days with no card required, so a real pipeline can be tested across a full week of runs before any payment decision. Saved memory can be exported or deleted at any time, so the record stays under the operator's control.

Samza's answer to the memory question is one of the best in stream processing: yes, the state survives, rebuilt from its changelog whenever it has to be. The remaining question is whether the thinking survives with it. Local stores and changelogs carry the values forward. A shared memory layer carries the reasons forward, and that is the half a scheduled agent actually wakes up needing.

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 Softr Remember Between Runs?

Does Softr Remember Between Runs? No. A Softr workflow or scheduled agent remembers nothing from one run to the next on its own. Inside a single run, workflow variables carry data from step to step, and an app agent remembers details about a user during that conversation. Between runs, the only things that survive are what you wrote into a database record, and the run log Softr keeps for you to read. What does a Softr workflow remember inside one run? Quite a lot, while the run is alive. Var

Does Promtail Remember Between Runs? Its Positions File Resumes the Log. Nothing Resumes the Reasoning.

Does Promtail Remember Between Runs? Its Positions File Resumes the Log. Nothing Resumes the Reasoning. Promtail is the agent that ships local logs to Grafana Loki. It tails files, reads the systemd journal, discovers container logs, runs each line through pipeline stages, and pushes batches to Loki. It also restarts constantly in real deployments: config reloads, package upgrades, container recreations, host reboots. So the practical question matters. What does Promtail still know when it come

Markdown Files Are Everyone's Agent Memory Now. Here's Where They Break.

Markdown Files Are Everyone's Agent Memory Now. Here's Where They Break. Ask a room of people who run coding agents how their agent remembers anything between sessions, and you will hear the same answer in different fonts. A CLAUDE.md. A PLAN.md. A notes file in the repo. Somebody always says some version of: it's just markdown, it works, why would I pay for anything else. They are not wrong. That is exactly why the pattern won. A text file needs no account, no API key, no migration. It sits i