Debezium Server
|
This content was generated with the assistance of AI and should be verified against the official documentation before being relied on in production. |
Debezium Server is a ready-made application that runs one Debezium source connector and delivers its change events directly to a sink: a messaging system, a cloud streaming service, a cache, a vector database or another relational database. Kafka is one of the sinks, not a requirement. For a migration, it fills the gap between Kafka Connect (a cluster, a broker, many moving parts) and the Debezium Engine (your own code in your own process): you configure a properties file, start a container, and the legacy changes flow to the messaging system your organisation already runs.
This page explains how the server is configured, lists every sink of the 3.7 documentation with its configuration keys,
and helps you choose one for a migration that runs on cloud messaging instead of Kafka. It then builds two Bookshop
labs: the legacy Oracle CUSTOMER table streamed through RabbitMQ to the new Spring Boot application, and a Kafka-less
copy of legacy tables into PostgreSQL mirror tables with the JDBC sink.
Checked on 2026-11-09 against Debezium 3.7.1.Final (Debezium Server needs Java 21; the container image ships a Java 21
runtime), RabbitMQ 4.2, PostgreSQL 18, Spring Boot 4.1.2 and Spring AMQP 4.1.2. The sink list and configuration keys
are taken from the official Debezium Server page. The quay.io/debezium/server:3.7.1.Final image was run in Docker on
2026-11-09 with the RabbitMQ sink and with the JDBC sink, using the PostgreSQL example database
(quay.io/debezium/example-postgres:3.7.1.Final) as the source instead of Oracle; the Spring AMQP consumer on this page
was compiled and run against that RabbitMQ with Oracle-shaped events. The Oracle source properties were not run with
Debezium Server; they follow the official connector documentation.
What Debezium Server is
Debezium Server is a Quarkus application built around the asynchronous Debezium Engine. Each instance runs exactly one source connector with one configuration. The engine hands batches of change events to a sink adapter, which publishes them to the target system and then marks them as processed, so the server can store the offsets.
Compared with the other ways of running a connector:
-
Against Kafka Connect, it needs no Kafka and no Connect cluster, and supports many targets. It has no REST API to add connectors at runtime (one instance, one connector, configured at start), no distributed task rebalancing, and it writes its offsets to a store you configure.
-
Against the Debezium Engine, it needs no code for the sinks it ships, and it is operated like any container (a health endpoint, metrics, logs). Custom processing is limited to transformations, unless you write a custom sink.
-
On Kubernetes, the Debezium Operator deploys Debezium Server from a
DebeziumServercustom resource, and the Debezium Management Platform builds pipelines on top of the operator.
The choice between the three is discussed in Choosing a Deployment.
Installation
The distribution archive
The distribution is an archive that unpacks into a debezium-server directory:
debezium-server/
|-- config
|-- connectors
|-- debezium-server-dist-3.7.1.Final-runner.jar
|-- jmx
|-- lib
|-- lib_metrics
|-- lib_opt
|-- run.bat
|-- run.sh
Reference: Debezium — Debezium Server, Installation
config/application.properties holds the configuration, lib the dependencies, and run.sh (Linux) or run.bat
(Windows) starts the server. The documentation says to copy the Oracle JDBC driver into lib before using the Oracle
connector, and the Oracle JDBC driver and the XStream API files when using the XStream adapter. The JDBC sink also
needs the driver of the target database in lib. For offsets in a file, the directory (for example data) must exist
before the server starts.
The container image
The quay.io/debezium/server:3.7.1.Final image contains the same layout under /debezium and runs as a non-root user.
Mount the configuration at /debezium/config/application.properties and a volume at /debezium/data for the offsets
and the schema history. Inspecting the 3.7.1.Final image on 2026-11-09 showed:
-
all the relational source connectors (Oracle, PostgreSQL, MySQL, MariaDB, SQL Server, Db2, Informix, MongoDB, Vitess, Spanner, CockroachDB and Db2 for IBM i) in
lib, and the Cassandra connectors inconnectors; -
the Oracle JDBC drivers
ojdbc11andojdbc17(23.26.0.0.0), and the PostgreSQL, MySQL, SQL Server and SingleStore drivers, already inlib, so the image works with an Oracle source and a PostgreSQL JDBC sink without adding jars. Add the XStream API files for the XStream adapter, and newer drivers if you need them; -
the sink modules for Kinesis, Pub/Sub (including Pub/Sub Lite), HTTP, Pulsar, Event Hubs, Redis, NATS Streaming, NATS JetStream, Fluss, Kafka, Pravega, Infinispan, RocketMQ, RabbitMQ, Milvus, Qdrant, InstructLab, JDBC and Databricks Zerobus. The Apache Iceberg sink is not in the image, so it needs a custom image. The image also contains
snsandsqssink modules that the 3.7 documentation does not describe; do not plan a migration on undocumented sinks.
docker run -d --name bookshop-debezium-server \
-v "$PWD/application.properties:/debezium/config/application.properties:ro" \
-v bookshop-server-data:/debezium/data \
-p 8080:8080 \
quay.io/debezium/server:3.7.1.Final
The health endpoint is http://localhost:8080/q/health. In the 2026-11-09 run it reported a debezium check together with
the other Quarkus health checks of the image, all UP.
Configuration
Debezium Server reads MicroProfile Config: config/application.properties, environment variables and system
properties. Five prefixes structure the file:
| Prefix | Configures |
|---|---|
|
The source connector: every connector property with the prefix added, plus the offset and schema history stores |
|
The sink: |
|
The serialization of keys, values and headers |
|
Single message transformations applied before the sink |
|
Predicates that decide when a transformation applies |
Reference: Debezium — Debezium Server configuration
Two consequences of MicroProfile Config matter in practice:
-
Escape
$in values. A value such as${source.table}is a property expression for MicroProfile Config, which tries to expand it. Write$${source.table}to pass the literal${source.table}to Debezium. The JDBC sink lab below depends on it. -
Environment variables override the file. MicroProfile maps
DEBEZIUM_SOURCE_DATABASE_PASSWORDtodebezium.source.database.password(upper case, non-alphanumeric characters replaced by_). Keep secrets out of the file and pass them as environment variables or Kubernetes secrets.
Source configuration
Source properties are the connector properties of the Oracle
Connector (or any other connector page) with debezium.source. in front. Because there is no Kafka Connect, the
server also needs:
| Property | Default | Values |
|---|---|---|
|
(required) |
For example |
|
|
|
|
The offsets file of the file store |
|
|
How often offsets are flushed |
|
|
Address, user, password, TLS, key ( |
|
|
|
|
|
The file of |
|
|
Settings of the other history stores |
The schema history default is the Kafka store, so a Kafka-less server with the Oracle, MySQL, SQL Server or Db2
connector must change it. The JDBC schema history (io.debezium.storage.jdbc.history.JdbcSchemaHistory, from
the storage documentation) is not
listed on the server page, but its module is in the 3.7.1.Final image; the JDBC offset store was used in the JDBC sink
run on this page. Whatever you choose, the offsets and the history must be persistent and backed up together: a
container restart without them means a new snapshot.
Format configuration
| Property | Default | Values |
|---|---|---|
|
|
|
|
|
|
|
|
|
|
Passed to the converter, for example |
When the only reader is an application that parses JSON, you can set debezium.format.value.schemas.enable=false
(and the same for the key): the message then carries the bare envelope, which the reader of
Listening to Events in Applications accepts as
well as the schema-wrapped payload form. In the 2026-11-09 run, an update event of the PostgreSQL example customers
table was about 600 bytes without the schema. Keep schemas enabled when a JDBC sink reads the same events: it needs
them to recognise the Debezium envelope, which is why the Kafka Connect pipeline (bookshop-oracle-source) keeps them.
Transformations, predicates and message filtering
Transformations and predicates use the Kafka Connect syntax under the debezium. prefix:
debezium.transforms (a comma-separated list of names), debezium.transforms.<name>.type,
debezium.transforms.<name>.*, debezium.transforms.<name>.predicate, debezium.transforms.<name>.negate, and
debezium.predicates, debezium.predicates.<name>.type, debezium.predicates.<name>.*.
debezium.transforms=unwrap
debezium.transforms.unwrap.type=io.debezium.transforms.ExtractNewRecordState
debezium.transforms.unwrap.delete.tombstone.handling.mode=rewrite
debezium.transforms.unwrap.add.fields=op,source.scn
The Debezium filter transformation, which evaluates Groovy or JavaScript expressions, is disabled by default in
the server: its scripting libraries are kept in lib_opt and are only added to the classpath when the environment
variable ENABLE_DEBEZIUM_SCRIPTING=true is set. Only enable it where access to the server configuration is restricted
to trusted operators, because a filter expression runs code in the server process.
Engine and Quarkus properties
The asynchronous engine properties apply as in the Debezium Engine: record.processing.threads,
record.processing.shutdown.timeout.ms (default 1000) and task.management.timeout.ms (default 180000). The Quarkus
properties of the server are available too; the common ones are quarkus.http.port (default 8080, health at
/q/health), quarkus.log.level (default INFO) and quarkus.log.console.json (default true; set it to false for
readable logs during a lab).
The sinks
debezium.sink.type selects the sink. The table lists every sink on the 3.7 Debezium Server page, the value of
debezium.sink.type, and its main configuration keys (all of them start with debezium.sink.; the full lists with
defaults are on the official page, under the anchors linked from each name).
| Sink | debezium.sink.type |
Main configuration keys |
|---|---|---|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
gRPC route: |
Several sinks expose injection points: CDI beans you can provide to customise the client (for example a custom
KinesisClient) or the destination naming (io.debezium.server.StreamNameMapper, which maps the topic name that the
event would have had in Kafka, such as legacy.BOOKSHOP.CUSTOMER, to a stream, exchange or subject name). Debezium 3.8
(in preview at the time of writing) is announced to add an Elasticsearch sink; it is not part of 3.7.
Choosing a sink for a migration
A sink for a migration must keep the changes of one row in order, deliver them at least once, and let the new application consume them reliably. Ask these questions of each candidate:
-
Ordering per key. Kinesis (partition key), Pub/Sub (ordering keys,
pubsub.ordering.enabled=true), Event Hubs (partition key), Pulsar (key-based routing), Kafka and Redis Streams keep the order of a key when the consumer reads one partition, shard or stream sequentially. RabbitMQ keeps the order of one queue with one active consumer. The HTTP sink keeps order only if the receiver processes requests one at a time. -
Durability and replay. Streams and logs (Kinesis, Pub/Sub with retention, Event Hubs, Pulsar, Kafka, JetStream with file storage, RabbitMQ streams) can replay events to a new consumer. Classic queues delete a message once it is acknowledged, so a second consumer added later needs its own queue from the start.
-
Tombstones. Several sinks cannot carry a null value: RabbitMQ and Redis replace it with the
null.valuetext (default), and Kinesis and Pub/Sub need a key. Disable tombstones at the source (debezium.source.tombstones.on.delete=false) when the target has no log compaction that needs them; consumers rely on the delete event anyway. -
What the organisation already runs. A migration is the wrong time to introduce a new broker. If the new platform is on AWS, Kinesis or the Kafka sink against Amazon MSK; on Google Cloud, Pub/Sub; on Azure, Event Hubs; on premises, RabbitMQ or Kafka.
-
Replication without a broker. When the only goal is to copy legacy tables into the new database, the JDBC sink writes them directly, as in the second lab below. Remodelled data still needs an application consumer.
| Situation | Suggested sink |
|---|---|
The new platform already uses Kafka (or a managed Kafka) |
Kafka Connect, or the Debezium Server |
Cloud-native platform on AWS / Google Cloud / Azure |
|
On-premises Spring applications on RabbitMQ |
|
Copy tables 1:1 into the new database, no broker |
|
Push changes to a service that only exposes HTTP |
|
Spring Boot integration for the brokers is covered in Spring Boot and RabbitMQ and Spring Boot and Kafka.
Lab: Oracle to RabbitMQ to the Spring Boot application
The new Bookshop application is a Spring Boot application, and in this variant the organisation runs RabbitMQ, not
Kafka. Debezium Server reads the legacy CUSTOMER table and publishes each change to the topic exchange
bookshop.legacy with the table’s destination name as routing key (legacy.BOOKSHOP.CUSTOMER). A quorum queue with a
single active consumer receives them, and the Spring application applies them to the customer table.
RabbitMQ topology
The exchange, the queue and the binding must exist before Debezium Server starts. The sink publishes to an exchange and does not declare it, and a message published to an exchange with no matching binding is dropped. The lab loads them from a definitions file at broker start.
{
"users": [
{ "name": "bookshop", "password": "change-me", "tags": ["administrator"] }
],
"vhosts": [ { "name": "/" } ],
"permissions": [
{ "user": "bookshop", "vhost": "/", "configure": ".*", "write": ".*", "read": ".*" }
],
"exchanges": [
{ "name": "bookshop.legacy", "vhost": "/", "type": "topic", "durable": true, "auto_delete": false,
"internal": false, "arguments": {} },
{ "name": "bookshop.legacy.dlx", "vhost": "/", "type": "fanout", "durable": true, "auto_delete": false,
"internal": false, "arguments": {} }
],
"queues": [
{ "name": "bookshop.legacy.customers", "vhost": "/", "durable": true, "auto_delete": false,
"arguments": { "x-queue-type": "quorum", "x-single-active-consumer": true,
"x-dead-letter-exchange": "bookshop.legacy.dlx" } },
{ "name": "bookshop.legacy.customers.dlq", "vhost": "/", "durable": true, "auto_delete": false,
"arguments": { "x-queue-type": "quorum" } }
],
"bindings": [
{ "source": "bookshop.legacy", "vhost": "/", "destination": "bookshop.legacy.customers",
"destination_type": "queue", "routing_key": "legacy.BOOKSHOP.CUSTOMER", "arguments": {} },
{ "source": "bookshop.legacy.dlx", "vhost": "/", "destination": "bookshop.legacy.customers.dlq",
"destination_type": "queue", "routing_key": "", "arguments": {} }
]
}
definitions.import_backend = local_filesystem
definitions.local.path = /etc/rabbitmq/definitions.json
-
A quorum queue is replicated and durable, which is what a migration needs.
-
Single active consumer (
x-single-active-consumer) delivers to one consumer at a time even if several application instances subscribe, so the changes of a row are applied in order; the other instances take over if the active one disappears. One side effect seen in the 2026-11-09 run: polling the queue for debugging (rabbitmqadmin get messages) is refused withRESOURCE_LOCKEDon a quorum queue with single active consumer. -
The dead-letter exchange receives the messages that the application rejects after its retries.
-
Replace the password in the file, or create the user separately; never commit a real one.
Debezium Server configuration
debezium.source.connector.class=io.debezium.connector.oracle.OracleConnector
debezium.source.offset.storage=org.apache.kafka.connect.storage.FileOffsetBackingStore
debezium.source.offset.storage.file.filename=data/offsets.dat
debezium.source.offset.flush.interval.ms=0
debezium.source.database.hostname=oracle
debezium.source.database.port=1521
debezium.source.database.user=C##DBZUSER
debezium.source.database.dbname=FREE
debezium.source.database.pdb.name=FREEPDB1
debezium.source.topic.prefix=legacy
debezium.source.table.include.list=BOOKSHOP.CUSTOMER
debezium.source.decimal.handling.mode=string
debezium.source.tombstones.on.delete=false
debezium.source.schema.history.internal=io.debezium.storage.file.history.FileSchemaHistory
debezium.source.schema.history.internal.file.filename=data/schema-history.dat
debezium.source.schema.history.internal.store.only.captured.tables.ddl=false
debezium.sink.type=rabbitmq
debezium.sink.rabbitmq.connection.host=rabbitmq
debezium.sink.rabbitmq.connection.port=5672
debezium.sink.rabbitmq.connection.username=bookshop
debezium.sink.rabbitmq.exchange=bookshop.legacy
debezium.sink.rabbitmq.routingKey.source=topic
debezium.sink.rabbitmq.deliveryMode=2
debezium.sink.rabbitmq.ackTimeout=30000
debezium.format.key=json
debezium.format.key.schemas.enable=false
debezium.format.value=json
debezium.format.value.schemas.enable=false
quarkus.log.console.json=false
The database password and the RabbitMQ password are passed as the environment variables
DEBEZIUM_SOURCE_DATABASE_PASSWORD and DEBEZIUM_SINK_RABBITMQ_CONNECTION_PASSWORD. Notes on the sink settings:
-
routingKey.source=topicsets the routing key to the destination name of the event (legacy.BOOKSHOP.CUSTOMER), after theStreamNameMapper. Withexchangeset, every event goes to that one exchange, and the bindings decide which queue gets which table. Withoutexchange, the sink publishes to an exchange named after the destination, which must then exist for every table. -
connection.usernameandconnection.passwordare passed to the RabbitMQ Java client’s connection factory, like any otherdebezium.sink.rabbitmq.connection.*property. -
deliveryMode=2makes the messages persistent. The sink uses publisher confirms and waits up toackTimeoutfor the broker to confirm each batch before it marks the batch as processed, so an offset is stored only for confirmed messages. -
tombstones.on.delete=false, because RabbitMQ has no null payload: a tombstone would arrive as the textdefault(debezium.sink.rabbitmq.null.value). -
The message headers carry Debezium context headers (
__debezium.context.connectorLogicalName,__debezium.context.connectorName,__debezium.context.taskIdand__debezium.context.runIdin the 2026-11-09 run). The record key is not sent unlessroutingKey.source=keyuses it as the routing key, so the consumer reads the primary key from the row. -
The connector user
C##DBZUSER, the archive log mode and the supplemental logging are prepared as described in Oracle Connector.
services:
rabbitmq:
image: rabbitmq:4.2-management
ports:
- "5672:5672"
- "15672:15672"
volumes:
- ./definitions.json:/etc/rabbitmq/definitions.json:ro
- ./rabbitmq.conf:/etc/rabbitmq/conf.d/20-definitions.conf:ro
- rabbitmq-data:/var/lib/rabbitmq
debezium-server:
image: quay.io/debezium/server:3.7.1.Final
depends_on:
- oracle
- rabbitmq
ports:
- "8080:8080"
environment:
DEBEZIUM_SOURCE_DATABASE_PASSWORD: ${ORACLE_DBZ_PASSWORD}
DEBEZIUM_SINK_RABBITMQ_CONNECTION_PASSWORD: ${RABBITMQ_PASSWORD}
volumes:
- ./application.properties:/debezium/config/application.properties:ro
- server-data:/debezium/data
volumes:
rabbitmq-data:
server-data:
Start it together with the Oracle service of the
worked example, so that they share a network:
docker compose -f <worked-example compose file> -f compose.yaml up -d oracle rabbitmq debezium-server.
The Spring Boot consumer
The consumer applies the same translation as the Kafka-based LegacyCustomerTranslator and reuses its support classes
(DebeziumEnvelope, LegacyValues, LegacyCodes, LegacyIds, SourcePosition, ProcessedChangeRepository and
LegacySyncProperties, shown in Listening to Events
in Applications). Only the transport changes: spring-boot-starter-amqp instead of spring-boot-starter-kafka, and
a @RabbitListener.
package com.example.bookshop.migration;
import java.nio.charset.StandardCharsets;
import java.time.ZoneId;
import org.slf4j.Logger;
import org.slf4j.LoggerFactory;
import org.springframework.amqp.core.Message;
import org.springframework.amqp.rabbit.annotation.RabbitListener;
import org.springframework.jdbc.core.simple.JdbcClient;
import org.springframework.stereotype.Component;
import org.springframework.transaction.support.TransactionTemplate;
import tools.jackson.databind.JsonNode;
import tools.jackson.databind.json.JsonMapper;
/**
* Applies the CUSTOMER change events that Debezium Server publishes to RabbitMQ. The message body is the
* Debezium envelope (JSON without schema); the routing key is the destination name legacy.BOOKSHOP.CUSTOMER.
*/
@Component
public class LegacyCustomerRabbitListener {
private static final Logger log = LoggerFactory.getLogger(LegacyCustomerRabbitListener.class);
private final JsonMapper jsonMapper;
private final ProcessedChangeRepository processed;
private final JdbcClient jdbc;
private final TransactionTemplate tx;
private final ZoneId legacyZone;
public LegacyCustomerRabbitListener(JsonMapper jsonMapper, ProcessedChangeRepository processed, JdbcClient jdbc,
TransactionTemplate tx, LegacySyncProperties properties) {
this.jsonMapper = jsonMapper;
this.processed = processed;
this.jdbc = jdbc;
this.tx = tx;
this.legacyZone = properties.legacyZone();
}
@RabbitListener(id = "legacy-customer-rabbit", queues = "bookshop.legacy.customers")
public void onCustomer(Message message) {
String body = new String(message.getBody(), StandardCharsets.UTF_8);
if (body.isBlank() || !body.startsWith("{")) {
// RabbitMQ has no null payload: a tombstone arrives as the debezium.sink.rabbitmq.null.value text
log.debug("Ignoring non-JSON message (tombstone placeholder) with routing key {}",
message.getMessageProperties().getReceivedRoutingKey());
return;
}
JsonNode root = jsonMapper.readTree(body);
DebeziumEnvelope event = jsonMapper.treeToValue(root.has("payload") ? root.get("payload") : root,
DebeziumEnvelope.class);
JsonNode row = event.operation() == DebeziumEnvelope.Operation.DELETE ? event.before() : event.after();
long legacyId = LegacyValues.longValue(row, "CUST_ID");
// The sink does not send the record key, so the position uses the primary key read from the row,
// in the same form as the Kafka key payload ({"CUST_ID":"7"})
JsonNode key = jsonMapper.createObjectNode().put("CUST_ID", String.valueOf(legacyId));
tx.executeWithoutResult(status -> {
if (!processed.firstDelivery(event.source().qualifiedTable(), SourcePosition.of(event, key))) {
return;
}
switch (event.operation()) {
case CREATE, READ, UPDATE -> jdbc.sql("""
INSERT INTO customer (id, legacy_id, name, email, status, created_at)
VALUES (:id, :legacyId, :name, :email, :status, :createdAt)
ON CONFLICT (id) DO UPDATE SET
name = EXCLUDED.name,
email = EXCLUDED.email,
status = EXCLUDED.status,
created_at = EXCLUDED.created_at
""")
.param("id", LegacyIds.customerId(legacyId))
.param("legacyId", legacyId)
.param("name", LegacyValues.text(row, "CUST_NAME"))
.param("email", LegacyValues.text(row, "EMAIL"))
.param("status", LegacyCodes.customerStatus(LegacyValues.text(row, "STATUS_CD")))
.param("createdAt", LegacyValues.legacyTimestamp(row, "CREATED_DT", legacyZone))
.update();
case DELETE -> jdbc.sql("DELETE FROM customer WHERE legacy_id = :legacyId")
.param("legacyId", legacyId)
.update();
case TRUNCATE, MESSAGE -> log.warn("Ignoring {} event on CUSTOMER", event.operation());
}
});
}
}
spring:
application:
name: bookshop
datasource:
url: jdbc:postgresql://localhost:5432/bookshop
username: bookshop
password: ${BOOKSHOP_DB_PASSWORD}
rabbitmq:
host: localhost
port: 5672
username: bookshop
password: ${BOOKSHOP_RABBITMQ_PASSWORD}
listener:
simple:
acknowledge-mode: auto
prefetch: 50
default-requeue-rejected: false
retry:
enabled: true
max-attempts: 5
initial-interval: 1s
multiplier: 2
max-interval: 30s
bookshop:
legacy-sync:
legacy-time-zone: Europe/Madrid
Reference: Spring Boot — Receiving a message with AMQP
-
acknowledge-mode: autoacknowledges the message after the listener method returns, that is after the database transaction has committed. A crash before the acknowledgement redelivers the message;processed_changeturns the redelivery into a no-op. -
retryretries in the listener thread (1 s, 2 s, 4 s … up to 30 s, five attempts), which keeps the order of the queue. After the last attempt the message is rejected without requeue (default-requeue-rejected: false) and the queue’s dead-letter exchange moves it tobookshop.legacy.customers.dlq. -
Requeueing a failed message instead would put it back at the head of the queue and loop forever on a permanent error.
What the 2026-11-09 run showed (Debezium Server with the PostgreSQL example source and this consumer): a change of the
example customers table, routed by the binding for legacy.inventory.customers, failed in the consumer because it has
no CUST_ID column, was retried five times and ended in bookshop.legacy.customers.dlq; an Oracle-shaped CUSTOMER
event published to bookshop.legacy with routing key legacy.BOOKSHOP.CUSTOMER became customer 7 (ACTIVE, created
2020-01-31 08:00:00+00 for a Madrid 09:00), and publishing it a second time left one row in processed_change.
Lab: Kafka-less replication with the JDBC sink
When legacy tables only need to be copied into the new database, the JDBC sink writes them directly, with no broker at
all. This is the approach of the data-replication example of the Debezium examples repository, applied to the
Bookshop mirror tables (legacy_book, legacy_author, legacy_supplier_catalogue).
debezium.source.connector.class=io.debezium.connector.oracle.OracleConnector
debezium.source.offset.storage=io.debezium.storage.jdbc.offset.JdbcOffsetBackingStore
debezium.source.offset.storage.jdbc.connection.url=jdbc:postgresql://postgres:5432/bookshop
debezium.source.offset.storage.jdbc.connection.user=bookshop
debezium.source.offset.flush.interval.ms=0
debezium.source.database.hostname=oracle
debezium.source.database.port=1521
debezium.source.database.user=C##DBZUSER
debezium.source.database.dbname=FREE
debezium.source.database.pdb.name=FREEPDB1
debezium.source.topic.prefix=legacy
debezium.source.table.include.list=BOOKSHOP.BOOK,BOOKSHOP.AUTHOR,BOOKSHOP.SUPPLIER_CATALOGUE
debezium.source.decimal.handling.mode=string
debezium.source.schema.history.internal=io.debezium.storage.file.history.FileSchemaHistory
debezium.source.schema.history.internal.file.filename=data/schema-history.dat
debezium.sink.type=jdbc
debezium.sink.jdbc.connection.url=jdbc:postgresql://postgres:5432/bookshop?stringtype=unspecified
debezium.sink.jdbc.connection.username=bookshop_mirror
debezium.sink.jdbc.insert.mode=upsert
debezium.sink.jdbc.primary.key.mode=record_key
debezium.sink.jdbc.delete.enabled=true
debezium.sink.jdbc.schema.evolution=none
debezium.sink.jdbc.quote.identifiers=false
debezium.sink.jdbc.collection.name.format=legacy_$${source.table}
quarkus.log.console.json=false
Reference: Debezium — Debezium Server, JDBC sink
Pass DEBEZIUM_SOURCE_DATABASE_PASSWORD, DEBEZIUM_SOURCE_OFFSET_STORAGE_JDBC_CONNECTION_PASSWORD and
DEBEZIUM_SINK_JDBC_CONNECTION_PASSWORD as environment variables. The points that differ from the Kafka Connect
version of the bookshop-pg-mirror-sink:
-
**
legacy_{source.table}+`.** The doubled `$` stops MicroProfile Config from expanding the expression, so the sink receives `+legacy_${source.table}+`. With `quote.identifiers=false`, PostgreSQL folds `legacy_BOOK` to `legacy_book`. In the 2026-11-09 run with the PostgreSQL example source, `+legacy_{source.table}produced the tableslegacy_customersandlegacy_products. -
The same settings as the mirror sink. The source uses
decimal.handling.mode=string, likebookshop-oracle-source, so everyNUMBERvalue arrives as a string, and the sink URL ends in?stringtype=unspecifiedso that PostgreSQL casts them tobigintandnumeric(see JDBC Sink Connector).schema.evolution=nonewrites into the mirror tables created beforehand with the DDL of that page, as the rolebookshop_mirror. The 2026-11-09 run with the PostgreSQL example source usedschema.evolution=basicinstead, to let the sink create its tables. -
Offsets in the target database. The JDBC offset store keeps the source position in
debezium_offset_storageof the PostgreSQL database. In the run, the table held the PostgreSQL LSN, the transaction id and the last operation, and an update and a delete in the source reached the target within seconds. -
Delivery guarantees. The official page warns that the JDBC sink in Debezium Server does not offer the same guarantees as the connector in Kafka Connect: features that depend on the runtime for offset management, exactly-once semantics or error handling and retries can behave differently or be missing. The upsert and delete by primary key make replays harmless, but plan for the server stopping on an error and needing a restart.
-
Drivers. The 3.7.1.Final image already contains the PostgreSQL driver; for other targets add the driver to
/debezium/lib. -
The JDBC sink properties themselves are explained in JDBC Sink Connector.
Operating Debezium Server
-
One connector per instance. Run one server per source database (or per group of tables that must be stopped and started together). Two servers on the same Oracle database use separate offsets and separate LogMiner sessions.
-
Health and metrics.
/q/healthreportsUPorDOWN; the image also contains thejmxandlib_metricsdirectories for JMX and Prometheus metrics, described in Monitoring, Logging & Tracing. -
Restarts. The server exits when the connector or the sink fails permanently. Let the orchestrator restart it (
restart: unless-stoppedin Compose, a Deployment on Kubernetes) and alert on repeated restarts. -
Persistent state. Keep
/debezium/data(file offsets and history) on a volume, or use the JDBC or Redis stores. -
Upgrades. Stop the server cleanly (it flushes offsets on shutdown), replace the image, and start it with the same state.
-
Kubernetes. The Debezium Operator runs Debezium Server from a
DebeziumServerresource; see Running on Kubernetes.
Extending the server
Debezium Server uses Quarkus dependency injection (JVM mode only, not native) for two kinds of extensions:
-
A new sink: a CDI bean that implements
DebeziumEngine.ChangeConsumer, annotated@Named("<name>")and@Dependent. The bean name becomes the value ofdebezium.sink.type. It reads its configuration with the MicroProfile Config API, publishes the records and marks them as processed. -
A customised existing sink: a bean for one of the sink’s injection points, typically a
StreamNameMapperthat renames destinations (for example,legacy.BOOKSHOP.CUSTOMERtobookshop-customers). Thedebezium-server-name-mapperdirectory of the Debezium examples repository contains one.
Reference: Debezium — Debezium Server, Extensions
The page also has notes for running the Cassandra connector in Debezium Server (with an example using the Redis sink), which matter only for Cassandra sources: see Cassandra connector configuration notes.
What goes wrong
| Symptom | Cause | Fix |
|---|---|---|
The Oracle connector fails at start with a Kafka error |
|
Configure |
Tables named |
|
Write |
A new snapshot after every container restart |
Offsets in the container file system |
A volume on |
RabbitMQ messages disappear |
No binding for the routing key, or the exchange does not exist |
Create exchange, queue and bindings before the server starts; check the routing key ( |
Messages with the body |
Tombstones on a sink without null payloads |
|
Changes of one row applied out of order with RabbitMQ |
Several consumers on one classic queue |
Quorum queue with single active consumer, or one consumer |
The server stops with |
The broker does not confirm in time (overloaded, disk alarm) |
Fix the broker; raise |
A filter transformation fails to load |
Scripting disabled by default |
|
References
Related pages: Debezium Engine (Embedded), JDBC Sink Connector, Spring Boot and RabbitMQ, Kafka vs RabbitMQ.