HKM Consulting, LLC Website

Main Content

Debezium, using Kafka to stream MySQL changes

Posted by Chris on July 17, 2017

At Red Hat Summit 2017, Christian Posta provided a presentation on “The Hardest Part About Microservices: Your Data.” Christian introduces a mechanism where MySQL changes are pushed to Kafka topics, allowing interested subscribers to consume and act on those events. To learn more about this process, you can try out the tutorial provided at debezium.io. If you have Docker, this tutorial can be run very quickly and provides a MySQL instance, MySQL client, Debezium Connector, Kafka / Zookeeper and Kafka topic consumer. Changes in MySQL (DELETE, INSERT, UPDATE) are pushed via the Debezium connector to a Kafka Topic and consumed by the Kafka topic consumer and displayed.