This episode covers replicating data across regions with Debezium, hybrid cloud and hybrid database architectures, latency and network topology considerations, and data sovereignty and cross-border compliance.

Modern organizations no longer keep all their data in one region or one cloud. Data is spread across several regions, some on-premise, some in the cloud. Episode 14 covers how Debezium becomes the replication bridge between regions and between those environments.
The biggest challenge in cross-region topologies isn't the connector — it's the network characteristics: high latency, limited bandwidth, and the risk of dropped connections. The pipeline design must account for all of these from the start, not as an afterthought.
Cross-region replication follows a hub and spoke pattern: databases in each region produce events that are sent to a central Kafka, or to local Kafka first and then forwarded. A common pattern:
region-a DB ──► Debezium ──► Kafka A ──┐
region-b DB ──► Debezium ──► Kafka B ──┴──► Kafka pusat (aggregasi)Each region uses a unique topic.prefix so events don't collide when merged in the central Kafka. For cross-cluster aggregation, use MirrorMaker or Cluster Linking instead of running one Kafka cluster that spans regions — asynchronous replication is far more tolerant of latency.
Not every data source is in the cloud. On-premise databases can connect to the cloud through Debezium Server, a lightweight runtime that runs connectors without Kafka Connect:
debezium.source.connector.class=io.debezium.connector.postgresql.PostgresConnector
debezium.source.database.hostname=db-onprem.internal
debezium.source.database.port=5432
debezium.source.topic.prefix=dbserver-onprem
debezium.sink.type=kafka
debezium.sink.kafka.producer.bootstrap.servers=kafka-cloud:9092The configuration above runs Debezium on the on-premise network and sends events to Kafka in the cloud. debezium.sink.type determines the destination — Kafka, Pulsar, or another system. Hybrid database means mixing sources like legacy MySQL and cloud-native databases; as long as both provide logs, Debezium can handle both.
Cross-region replication is always asynchronous and affected by latency. Principles to understand:
Adjust the producer properties for WAN networks:
{
"connect.timeout.ms": "30000",
"connect.backoff.max.delay.ms": "120000",
"connect.backoff.initial.delay.ms": "1000"
}Measure the latency your use case can accept. For cache synchronization, a few seconds of latency is fine; for real-time compliance auditing, the topology may need to be closer together.
Sending data across regions also crosses jurisdictions. Data collected in one country often can't be stored in another. Applicable strategies:
table.include.list or an SMT to filter out data that must not be replicated.{
"transforms": "maskRegion",
"transforms.maskRegion.type": "org.apache.kafka.connect.transforms.MaskField$Value",
"transforms.maskRegion.fields": "national_id",
"transforms.maskRegion.replacement": "REDACTED"
}Use the national_id column that is masked as it crosses regional borders. Document this decision in the data contract so other teams know that column is intentionally unavailable in the destination region.
Cross-region replication needs stricter observability because failures often only become visible after latency accumulates. Metrics you must monitor:
If the backlog keeps growing, the WAN bandwidth is likely the bottleneck. Reduce it by increasing production batch size or filtering out events that aren't important to send across regions.
When two regions write to the same table, two-way replication creates potential conflicts. Common strategies:
source.ts_ms and use the newest value.For most cases, choosing single writer per region is far safer than resolving conflicts when they happen. Document these rules clearly so every team knows which region is authorized to write which table.
Also, always test two-way replication behavior in staging before enabling it in production. Conflicts that look simple can produce data divergence that's hard to detect after running for weeks.
Episode 14 extends the pipeline's reach across regions: hub and spoke replication between regions, Debezium Server as the on-premise-to-cloud bridge, tuning for WAN networks, and data sovereignty policies that maintain cross-border compliance.
The key takeaways:
topic.prefix per region and asynchronous replication between Kafka clusters.In the next episode, episode 15, we'll discuss performance and throughput — optimizing connector throughput and snapshot speed, parallelism and task configuration, tuning the source database, and minimizing the impact on OLTP systems.