Can Kafka replace MongoDB as a storage option?


My company uses a lot of NoSQL. We are thinking about using Kafka for some of our applications and I was wondering if we can get similar benefits with using Kafka as a data store?



No. Kafka is a messaging platform.

With that said, Kafka can retain messages for a specified retention period. So you can technically use Kafka to temporarily store things.


While technically a event messaging system, Kafka can be used as a data storage mechanism (especially temporarily).

A more appropriate use case is to dump messages from Kafka into a more persistent data storage engine like MongoDB ...if you want to get into the bigger OLAP world of Hadoop and data lakes then that is worth exploring as well...