当前位置:网站首页>Debezium同步之Debezium架构详解
Debezium同步之Debezium架构详解
2022-07-07 09:06:00 【auspicious航】
最常见的是,您通过 Apache Kafka Connect部署 Debezium 。Kafka Connect 是一个用于实现和操作的框架和运行时:
将记录发送到 Kafka 的源连接器,例如 Debezium
将记录从 Kafka 主题传播到其他系统的接收器连接器
下图显示了基于 Debezium 的变更数据捕获管道的架构:

如图所示,部署了用于 MySQL 和 PostgresSQL 的 Debezium 连接器来捕获对这两种类型的数据库的更改。每个 Debezium 连接器都建立到其源数据库的连接:
MySQL 连接器使用客户端库来访问
binlog.PostgreSQL 连接器从逻辑复制流中读取。
Kafka Connect 作为 Kafka 代理之外的单独服务运行。
默认情况下,来自一个数据库表的更改将写入名称与表名对应的 Kafka 主题。如果需要,您可以通过配置 Debezium 的主题路由转换来调整目标主题名称。例如,您可以:
将记录路由到名称与表名不同的主题
将多个表的更改事件记录流式传输到单个主题中
更改事件记录在 Apache Kafka 中后,Kafka Connect 生态系统中的不同连接器可以将记录流式传输到其他系统和数据库,例如 Elasticsearch、数据仓库和分析系统,或 Infinispan 等缓存。根据所选的接收器连接器,您可能需要配置 Debezium 的新记录状态提取转换。此 Kafka Connect SMT 将after结构从 Debezium 的更改事件传播到接收器连接器。这代替了默认传播的详细更改事件记录。
Debezium 服务器
部署 Debezium 的另一种方法是使用Debezium 服务器。Debezium 服务器是一个可配置的、即用型的应用程序,它将更改事件从源数据库流式传输到各种消息传递基础设施。
下图显示了使用 Debezium 服务器的变更数据捕获管道的架构:

Debezium 服务器配置为使用 Debezium 源连接器之一从源数据库捕获更改。更改事件可以序列化为不同的格式,如 JSON 或 Apache Avro,然后将发送到各种消息传递基础设施之一,如 Amazon Kinesis、Google Cloud Pub/Sub 或 Apache Pulsar。
边栏推荐
- A simple example of delegate usage
- 在线硬核工具
- JS add spaces to the string
- July 10, 2022 "five heart public welfare" activity notice + registration entry (two-dimensional code)
- Deep understanding of Apache Hudi asynchronous indexing mechanism
- [pytorch 07] hands on deep learning chapter_ Preliminaries/ndarray exercises hands-on version
- What is an intermediate network engineer? What is the main test and what is the use?
- Go redis Middleware
- seata 1.3.0 四种模式解决分布式事务(AT、TCC、SAGA、XA)
- 【推薦系統 01】Rechub
猜你喜欢

2021-05-21

seata 1.3.0 四種模式解决分布式事務(AT、TCC、SAGA、XA)

Seata 1.3.0 four modes to solve distributed transactions (at, TCC, Saga, XA)
![[pyqt] the cellwidget in tablewidget uses signal and slot mechanism](/img/0e/02265f7195ca0add4155694530822a.png)
[pyqt] the cellwidget in tablewidget uses signal and slot mechanism

Idea shortcut keys

Mysql的json格式查询

【C#】WinForm运行缩放(变糊)的解决方法

Transaction rolled back because it has been marked as rollback-only解决

How to prepare for the advanced soft test (network planning designer)?

【亲测可行】error while loading shared libraries的解决方案
随机推荐
[recommendation system 01] rechub
Qtcreator sets multiple qmake
在线硬核工具
基于DE2 115开发板驱动HC_SR04超声波测距模块【附源码】
IDEA快捷键大全
Shardingsphere sub database and table examples (logical table, real table, binding table, broadcast table, single table)
How to use cherry pick?
[pyqt] the cellwidget in tablewidget uses signal and slot mechanism
Vscode 尝试在目标目录创建文件时发生一个错误:拒绝访问【已解决】
Go slice comparison
[actual combat] transformer architecture of the major medical segmentation challenges on the list --nnformer
SQL Server knowledge collection 11: Constraints
Long list performance optimization scheme memo
Verilog 实现数码管显视驱动【附源码】
BUUCTF---Reverse---reverse1
How to get hardware information in unity
[STM32] actual combat 3.1 - drive 42 stepper motors with STM32 and tb6600 drivers (I)
一些线上学术报告网站与机器学习视频
Operation method of Orange Pie orangepi 4 lts development board connecting SATA hard disk through mini PCIe
[installation system] U disk installation system tutorial, using UltraISO to make U disk startup disk