Does Kafka Connect Remember Between Runs? The Offsets Topic Resumes the Stream. Nothing Resumes the Reasoning.
Does Kafka Connect Remember Between Runs? The Offsets Topic Resumes the Stream. Nothing Resumes the Reasoning. Kafka Connect moves data between Apache Kafka and the systems around it: databases, search indexes, object stores, message queues. Its workers restart for upgrades, config changes, rebalances, and plain failures, often several times a week in a busy deployment. So the practical question is worth asking precisely. When a Connect worker comes back, what does it still know? The documente
Does Kafka Connect Remember Between Runs? The Offsets Topic Resumes the Stream. Nothing Resumes the Reasoning.
Kafka Connect moves data between Apache Kafka and the systems around it: databases, search indexes, object stores, message queues. Its workers restart for upgrades, config changes, rebalances, and plain failures, often several times a week in a busy deployment. So the practical question is worth asking precisely. When a Connect worker comes back, what does it still know?
The documented answer is genuinely good, and genuinely narrow. In distributed mode, three internal Kafka topics hold the cluster's state: one for offsets, one for configurations, one for task statuses. A restarted connector resumes reading or writing almost exactly where it stopped. What none of those topics hold is a single decision: why a transform was added, which records were quarantined last Tuesday, or what the agent supervising the pipeline concluded on its previous run. The stream resumes. The reasoning does not.
Three topics are the whole memory
In distributed mode, Connect stores its state in Kafka itself. The worker configuration names them: offset.storage.topic (default connect-offsets), config.storage.topic (default connect-configs), and status.storage.topic (default connect-status). The official documentation recommends creating these topics manually so their partition counts and replication factors are set deliberately rather than left to auto-creation defaults.
That design is why distributed Connect survives worker loss. No single worker holds unique state. If a worker dies, its connectors and tasks are rebalanced across the survivors, and whichever worker picks a task up reads the same offsets, the same configuration, and the same status the dead worker last wrote. Restarting the cluster is close to a non-event, and that is exactly what the design promises.
Standalone mode is the smaller sibling. One worker process reads configuration from files, and offsets go to a local file named by offset.storage.file.filename. It is handy for development and single-purpose jobs, and its memory is exactly as durable as that file. Lose the disk, lose the position.
Source offsets: a partition and a position
A source connector remembers its place through two small maps attached to every record it produces. The source partition identifies what is being read: a table, a file, a queue. The source offset says how far the reading has got: a row id, a log position, a timestamp. For a change-data-capture connector, the offset might be a database log sequence number or a binlog file and position.
Connect commits those offsets to the offsets topic on a schedule controlled by offset.flush.interval.ms, which defaults to 60,000 milliseconds. On restart, the task asks Connect for its last committed offset and continues from there. The flush interval is also where duplicates are born: records written to Kafka after the last flush but before a crash get read again on recovery, which is why source connectors deliver at-least-once by default. Exactly-once support for source connectors exists in modern Connect, but it has to be enabled and the connector has to support it.
One behavior surprises people the first time they meet it: deleting a connector does not delete its offsets. The entries stay in the compacted offsets topic, and if a connector is later recreated with the same name, it picks up the saved offsets and continues. That is a feature when a deletion was accidental, and a trap when the intent was a clean restart from the beginning.
The sink side runs on consumer groups
Sink connectors remember differently. A sink task is a Kafka consumer, and Connect runs it under a consumer group named connect-<connector-name>. Its progress lives in Kafka's consumer offsets, committed after the task's writes to the target system complete. Checking sink lag is therefore ordinary consumer-group work with ordinary consumer-group tooling, while checking a source connector means reading the offsets topic itself.
Either way, the stored thing is a position. An offset answers one question: where did processing stop? It cannot answer any other. It does not record that a schema change was investigated and ruled out, that a batch of malformed records was routed to a dead letter topic on purpose, or that an enrichment step was reordered because of what last night's run revealed.
Where the offset model stops
Modern pipelines increasingly have an AI step or an AI supervisor sitting next to the connectors: classifying records, summarizing batches, deciding whether an anomaly deserves a page, drafting the incident note. Those steps run on schedules and triggers, and every one of them starts cold. The connector resumes mid-stream because Connect kept its offset. The agent restarts from zero because nothing kept its context. It re-reads the same dashboards, re-derives the same conclusions, and occasionally reaches a different one, with no record of what it decided before or why.
That gap is the difference between state and memory. State is a position in a stream. Memory is the accumulated record of what happened, what was tried, and what was decided, in a form the next run can actually use.
Giving the agent side a memory that persists
Vilix AI is built for that second layer. It is a cloud-hosted memory service for AI agents and tools, reachable over MCP, so a scheduled agent in an automation platform, a coding assistant, and a pipeline supervisor can all read and write the same shared memory instead of each keeping a private, disposable one.
Three properties matter next to a Connect cluster. First, there is zero infrastructure to run: no extra topic, database, or service to deploy and babysit, because the memory is hosted and connects over MCP. Second, it stores full conversation history, not just extracted facts, so a run can recover the reasoning and the decision, not only the conclusion. Third, the same memory is available everywhere the work happens, on every tool and device, rather than being trapped inside one platform's run history.
Control stays with the operator. There is a free plan that stays free forever, a 7-day Pro trial that needs no card, and memory can be exported or deleted at any time. The connectors keep doing what they are good at, resuming the stream. The agents stop re-briefing themselves from scratch on every run.
The short answer
Does Kafka Connect remember between runs? Yes, precisely and on purpose: offsets in a dedicated topic, configurations and statuses in two more, consumer-group positions for sinks, and a local file in standalone mode. It is one of the cleanest restart stories in data infrastructure. It is also, by design, only a position. Pair it with a real memory layer for the agents working around the pipeline, and a restart stops being an amnesia event for everything except the data itself, which never forgot anything at all.