TE
科技回声
首页24小时热榜最新最佳问答展示工作
GitHubTwitter
首页

科技回声

基于 Next.js 构建的科技新闻平台,提供全球科技新闻和讨论内容。

GitHubTwitter

首页

首页最新最佳问答展示工作

资源链接

HackerNews API原版 HackerNewsNext.js

© 2025 科技回声. 版权所有。

Ask HN: If you use MongoDB, is there any reason to use Kafka?

1 点作者 lkrubner2 个月前
I ask in all seriousness. I have the impression that when Kafka was first adapted by organizations, many organizations were looking for a place in their data flows where they could store documents instead of fully normalized data, and Kafka emerged as a respectable answer.<p>Emphasis: I am not asking if MongoDB is better than Kafka. I am asking, if your organization is already using MongoDB, is there any reason to also use Kafka? Is it easier to simply press MongoDB into service in a similar manner (similar to Kafka)? One can have log-like append-only collections in MongoDB.<p>Back in 2013, Jay Kreps explained his reasons for creating Kafka:<p>https:&#x2F;&#x2F;engineering.linkedin.com&#x2F;distributed-systems&#x2F;log-what-every-software-engineer-should-know-about-real-time-datas-unifying<p>I first read that essay in 2013. I just read it again, and it occurs to me that I can use MongoDB for everything he describes.<p>So under what conditions would I still want to bring in Kafka?

1 comment

alphabettsy2 个月前
I don’t believe this question can be answered without knowing what you intend to use it for. Just because a technology can be used to do something doesn’t mean it’s the best choice.