Connectors

MongoDB Connector for Apache Kafka

Natively integrate MongoDB data within the Kafka ecosystem.

An easier way to integrate MongoDB and Kafka

Atlas Stream Processing simplifies integrating MongoDB and Kafka—it’s easy to use, cost-effective, and performant.
Data charts, images, and papers with a magnifying glass clustered around 3 green tiers to represent simplified data estates.

Configure your connection

The official MongoDB Connector for Apache® Kafka® is developed and supported by MongoDB and verified by Confluent. The Connector enables MongoDB to be configured as both a sink and a source for Apache Kafka.

Easily build robust, reactive data pipelines that stream events between applications and services in near real time.

A diagram of the Apache Kafka Connector being configured as a sink or a source when integrating with MongoDB.

Why MongoDB and Apache Kafka?

MongoDB and Kafka are at the heart of modern data architectures. Kafka is designed for boundless streams of data that sequentially write events into commit logs, allowing low latency data movement between your services.
connectors_kafka_sink

Configure as a Sink

Map and persist events from Kafka topics directly to MongoDB collections with ease. Ingest events from your Kafka topics directly into MongoDB collections, exposing the data to your services for efficient querying, enrichment, and analytics.

connectors_kafka_source

Configure as a Source

Publish data changes from MongoDB into Kafka topics for streaming to consuming apps. Data is captured via Change Streams within the MongoDB cluster and published into Kafka topics. This enables consuming apps to react to data changes in real time using an event-driven programming style.

Why MongoDB?

MongoDB customers have experienced success with the Kafka Connector across a span of industries and companies for a variety of use cases.
industry_retail

eCommerce and Customer Single View

ao.com, a leading online electrical retailer, uses Kafka to push all data changes from its source databases to MongoDB Atlas. This creates a single source of truth for all customer data to drive new and enhanced applications and business processes including customer service, fraud detection, and GDPR compliance. Employees with appropriate permissions can access customer data from one easy-to-consume operational data layer.
industry_enterprise

IoT

Josh Software, part of a project in India to house more than 100,000 people in affordable smart homes, pushes data from millions of sensors to Kafka, processes it in Apache Spark, and writes the results to MongoDB, which connects the operational and analytical data sets. By streaming data from millions of sensors in near real-time, the project is creating truly smart homes, and citizens can access data via a mobile app to better manage their homes.
industry_finance

Financial Services

AHL, a subsidiary of The Man Group, which is one of the world’s largest hedge fund investment firms, used MongoDB to create a single platform for all of its financial data. The system receives data for up to 150,000 ticks per second from multiple financial sources and writes it to Kafka. Kafka provides both consolidation and buffering of events before they are stored in MongoDB, where the data can be analyzed.
general_events_breakout

Opinion and Polling

State, an intelligent opinion network connecting people with similar beliefs, writes survey data to MongoDB and leverages MongoDB Change Streams to push database changes into Kafka topics where they are consumed by its user recommendation engine. This engine suggests potentially interesting users and updates instantly as soon as a user contributes a new opinion.

Featured Resources

connectors_kafka_connector

MongoDB Connector for Apache Kafka Download

Download it directly from the Confluent website.

Download now
general_action_download

MongoDB Connector for Apache Kafka GitHub Repo

This connector is open source and can be downloaded from our GitHub repo.

Download now
general_content_tutorial

MongoDB & Apache Kafka End-to-End Example with Docker

Learn about the event-driven architecture and how MongoDB can help get you there.

Experience it today
general_features_realtime

Event-Driven Architecture Enables Real-Time Data

MongoDB and its Connector for Apache Kafka are core to event-driven architecture, which helps you run your business in real time.

Learn more
general_content_blog

MongoDB and IIoT: Data Streaming With Kafka

Move data seamlessly from the MQTT protocol into MongoDB time series collections using Apache Kafka.

Learn more

Ready to get started?

Get the MongoDB connector for Apache Kafka.
An illustration of MongoDB connector