连接分片环境中的数据

发布于 2025-01-15 04:18:33 字数 142 浏览 4 评论 0原文

我们假设有一个系统,存储用户并且用户可以互相关注。现在我们假设数据按大陆分片到多个数据库中。 当来自北美的用户关注另一个来自欧洲的用户时会发生什么? 如何使用 RDBMS(Postgres)、图形数据库 (Neo4j) 或文档数据库 (MongoDB) 来解决这个问题?

Let's assume that there is a system that stores users and users can follow each other. Now let's assume that data is sharded in multiple databases by continent.
What happens when a user from North America follows another user from Europe?
How can this problem be approached using RDBMS(Postgres), a graph database (Neo4j), or document database (MongoDB)?

如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

扫码二维码加入Web技术交流群

发布评论

需要 登录 才能够评论, 你可以免费 注册 一个本站的账号。
列表为空,暂无数据
我们使用 Cookies 和其他技术来定制您的体验包括您的登录状态等。通过阅读我们的 隐私政策 了解更多相关信息。 单击 接受 或继续使用网站,即表示您同意使用 Cookies 和您的相关数据。
原文