MongoDB和Kafka区别
Kafka vs MongoDB: What are the differences?
Developers describe Kafka as “Distributed, fault tolerant, high throughput pub-sub messaging system”. Kafka is a distributed, partitioned, replicated commit log service. It provides the functionality of a messaging system, but with a unique design. On the other hand, MongoDB is detailed as “The database for giant ideas”. MongoDB stores data in JSON-like documents that can vary in structure, offering a dynamic, flexible schema. MongoDB was also designed for high availability and scalability, with built-in replication and auto-sharding.
Kafka belongs to “Message Queue” category of the tech stack, while MongoDB can be primarily classified under “Databases”.
“High-throughput”, “Distributed” and “Scalable” are the key factors why developers consider Kafka; whereas “Document-oriented storage”, “No sql” and “Ease of use” are the primary reasons why MongoDB is favored.
Kafka and MongoDB are both open source tools. It seems that MongoDB with 16.2K GitHub stars and 4.08K forks on GitHub has more adoption than Kafka with 12.5K GitHub stars and 6.7K GitHub forks.
According to the StackShare community, MongoDB has a broader approval, being mentioned in 2175 company stacks & 2143 developers stacks; compared to Kafka, which is listed in 501 company stacks and 451 developer stacks.
From : https://stackshare.io/stackups/kafka-vs-mongodb