MongoDB Kafka Connector
The MongoDB Kafka connector is a Confluent-verified connector that persists data from Kafka topics as a data sink into MongoDB as well as publishes changes from MongoDB into Kafka topics as a data source.
MongoDB Connector for Spark
The MongoDB Connector for Spark provides integration between MongoDB and Apache Spark. With the connector, you have access to all Spark libraries for use with MongoDB datasets: Datasets for analysis with SQL (benefiting from automatic schema inference), streaming, machine learning, and graph APIs. You can also use the connector with the Spark Shell.
Read the following sections to learn how to configure your MongoDB Kafka source connector to perform specific tasks:
Using Azure Event Hubs with MongoDB and the MongoDB Connector for Apache Kafka | MongoDB Blog
Apache Kafka is an open-source stream-processing software platform developed by LinkedIn and donated to the Apache Software Foundation in 2011. One of Kafka's core capabilities is its ability to ingest massive amounts of data in a distributed architecture.