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

Does Debezium Remember Between Runs? Its Offset Resumes the Log. The Reasoning Still Resets.

Does Debezium Remember Between Runs? Its Offset Resumes the Log. The Reasoning Still Resets. Debezium remembers between runs, but only in the narrow sense its documentation promises: it preserves state so a connector can restart without losing its place. That state is an offset, a bookmark into a database change log, plus, for several connectors, a history of schema changes. Everything else a run learned while processing those changes sits outside Debezium, and it starts over when the next run

Does Debezium Remember Between Runs? Its Offset Resumes the Log. The Reasoning Still Resets.

Debezium remembers between runs, but only in the narrow sense its documentation promises: it preserves state so a connector can restart without losing its place. That state is an offset, a bookmark into a database change log, plus, for several connectors, a history of schema changes. Everything else a run learned while processing those changes sits outside Debezium, and it starts over when the next run starts.

That distinction matters for automation operators. A change data capture pipeline often feeds scheduled agents that triage, enrich, or act on new rows. When the connector resumes perfectly and the agent downstream still asks the same questions it asked yesterday, the gap is not a Debezium failure. It is the boundary of what an offset was designed to hold.

What a Debezium connector actually is

Debezium is a set of connectors that capture row-level changes from a database and emit them as change events. Instead of polling a table for rows that look new, a connector reads the source database's own change stream. Each event says what changed. The connector's job is to keep delivering those events in order, even across failures, restarts, and redeploys.

To do that job across a restart, a connector needs persistent storage. Debezium's own storage documentation puts it plainly: connectors require persistent storage to preserve their state between restarts, and all connectors require a mechanism for offset storage. Some connectors need a second kind of storage as well.

The offset: a bookmark, not a memory

An offset records how far the connector has read in the source. After a restart, the connector reads its stored offset and resumes reading from the correct position. That is the core of Debezium memory, and it is deliberately small: a position, not a record of what the position meant.

Where that bookmark lives depends on how Debezium is deployed. Inside the Kafka Connect runtime, offset storage is provided automatically, through a Kafka offset store for distributed deployments or a file offset store for standalone ones. The Kafka option uses a class called KafkaOffsetBackingStore, which stores offsets in a Kafka topic, for example connect-offsets. That topic should have log compaction enabled, so it retains the latest offset information instead of growing as a full history. Its defaults in the documented configuration are 25 partitions and a replication factor of 3.

Outside Kafka Connect, the choice becomes explicit. If a connector runs in Debezium Engine or Debezium Server, the offset store must be configured directly. A file store, FileOffsetBackingStore, persists offsets to a local file on disk, which the documentation describes as simple and fast, and ideal for single-node applications or testing scenarios. Its flush interval, offset.flush.interval.ms, defaults to 6000 milliseconds between attempts to write the current offset state to that file. A JDBC store, JdbcOffsetBackingStore, writes offsets into a relational database instead, by default into a table named debezium_offset_storage. A memory store, MemoryOffsetBackingStore, sits at the other end of the scale: it preserves offset state only during the application's runtime, and offset records are lost if the connector shuts down or crashes.

Notice what every option has in common. Kafka topic, file, database table, or memory, the store holds the same thing: the last recorded position. Choosing a more durable store makes the bookmark survive more kinds of failure. It does not make the bookmark hold more meaning.

Schema history: the second thing Debezium keeps

Offsets alone are not enough for connectors that read schema-based databases. Connectors such as Db2, MySQL, Oracle, and SQL Server also require storage for an internal schema history, which records changes to the table schema in the database. Without that history, a restarted connector could resume at the right log position and still misread the rows there, because it would not know the shape the table had when those rows were written.

Schema history gets its own storage, configured separately from offsets. With Kafka, connectors store schema history in a separate compacted topic, such as schema-changes.inventory, using KafkaSchemaHistory. With a file, FileSchemaHistory records it to a path on disk. With JDBC, JdbcSchemaHistory writes it to a table named debezium_database_history by default. With memory, MemorySchemaHistory keeps it only for as long as the process runs.

So Debezium actually keeps two narrow things well: where it stopped reading, and what the schema looked like along the way. Both are machine state. Neither is a record of decisions.

What the offset and the schema history never contain

An offset does not contain why a change mattered. Schema history does not contain what an agent concluded about a customer, which duplicate events were already investigated, what a previous run promised in a follow-up, or which anomaly turned out to be harmless last week. Those things were never log positions or schema versions, so there is no field for them in either store.

The gap appears in ordinary operations. A connector restarts cleanly, resumes from its offset, and delivers the next change events exactly as designed. A scheduled agent then processes a new event for an account it handled three runs ago. The connector has done its part perfectly, yet the agent has no access to the earlier handling: the notes, the reasoning, the outcome. It re-reads the account from scratch, repeats checks that were already done, and can reach a different conclusion simply because the earlier context is missing. The pipeline looks healthy at every layer Debezium can report on, while the work still restarts from zero.

The practical rule is therefore precise: Debezium remembers the position and the schema, in the store that was configured, for as long as that store survives. Everything a run learned that was not a position or a schema change needs a different home.

The layer Debezium was never meant to provide

That different home is a shared memory for the agents themselves: what was decided, what was already handled, and what the last run found, kept in full and available to the next run and to other tools. That is the layer Vilix AI provides. Vilix AI is cloud-hosted, with zero infrastructure to run, and it is reachable over MCP, so the same memory is available everywhere an automation runs, not only inside one connector's offset store.

Vilix AI keeps full conversation history, not just extracted facts, positions, or schema versions, so a scheduled agent can read what a previous run actually concluded and why. The same memory can be shared across runs, tools, and platforms, which means context built while handling one change event can be picked up by a different automation later. The free plan is free forever, and the Pro trial runs 7 days with no card required. Memory can be exported or deleted at any time.

Let Debezium keep the bookmark. It is excellent at resuming exactly where a log left off. Give the reasoning its own memory, and the agents downstream stop relearning the same account, the same incident, and the same decision on every run.

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 Cribl Stream Remember Between Runs? The Persistent Queue Survives on Disk. The Aggregation Starts Over.

Does Cribl Stream Remember Between Runs? The Persistent Queue Survives on Disk. The Aggregation Starts Over. Cribl Stream sits in front of logs, metrics, and traces, routing and shaping events before they reach a destination. Workers restart for configuration changes, upgrades, and rescheduling, so the question that decides whether data survives is exact: what does Cribl Stream still hold after a restart, and what does it rebuild from zero? The documented answer splits cleanly. Events already w

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