# Implement your own CDC using Kafka

DevFeed: [Implement your own CDC using Kafka](<https://devfeed.tech/articles/implement-your-own-cdc-using-kafka-39621.md>)

Original publisher: [Read original article](<https://www.gauravsarma.com/posts/2022-09-18_Implement-your-own-CDC-using-Kafka-5ca716634126>)

Published: 2022-09-18T00:00:00Z

Content type: tutorial

Language: en

Sources: [Gaurav Sarma's Blog](<https://devfeed.tech/sources/gaurav-sarma-s-blog.md>)

Topics: [Kafka](<https://devfeed.tech/topics/kafka.md>), [MongoDB](<https://devfeed.tech/topics/mongodb.md>), [Databases](<https://devfeed.tech/topics/databases.md>), [Replication](<https://devfeed.tech/topics/replication.md>)

Tags: [api](<https://devfeed.tech/tags/api.md>), [batch](<https://devfeed.tech/tags/batch.md>), [kafka](<https://devfeed.tech/tags/kafka.md>), [mongodb](<https://devfeed.tech/tags/mongodb.md>), [replication](<https://devfeed.tech/tags/replication.md>), [resiliency](<https://devfeed.tech/tags/resiliency.md>)

## AI overview

A tutorial on implementing custom change data capture for MongoDB using Kafka. It explains CDC events, MongoDB oplog offsets and resume tokens, poller and publisher workers, batched delivery, and resiliency rules for updating offsets only after successful publication.

## Source excerpt

Most of the problems that people mention with their Kafka implementations is that they don't have the complete visibility required over the configuration and the API usage. Having more visibility into the commonly required tweaks can allow admins and developers to use Kafka as comfortably as a MySQL or PostgreSQL cluster...