如何将数据保存在Hazelcast中,然后一个Kubernetes群集

发布于 2025-02-03 09:48:24 字数 314 浏览 2 评论 0 原文

有很多教程如何在Kubernetes中使用Hazelcast与Spring Boot一起使用

问题是我们有2个数据中心,A和B。在这两个数据中心中,都有带有应用和Hazelcast群集的Kubernetes群集。因此,问题是我应该如何在数据中心A中配置配置应用程序以将数据保存在两个群集中(根据教程很容易),但是如何在第二个集群中配置Hazelcast?

There are lot of tutorials how to use Hazelcast with spring boot in kubernetes for example

Problem is we have 2 data centers, A and B. In both there of these data centers there is kubernetes cluster with application and hazelcast cluster. So the question is how should I configure configure application in data center A to save data in both cluster (A is easy according to tutorial) but how to also configure hazelcast in second cluster ?

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

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

发布评论

需要 登录 才能够评论, 你可以免费 注册 一个本站的账号。

评论(1

灼痛 2025-02-10 09:48:24

您可以在两层解决此问题:

1。应用层 - 您的应用程序可以将数据存储在多个Hazelcast群集中。如果您使用带有弹簧数据的Hazelcast,则可以配置带有Spring JPA 。但是请注意,当您的应用程序将数据存储在不同区域的数据中心时,延迟将遭受明显的

2。 Hazelcast层 - Hazelcast簇使用地理复制(,企业功能);然后,您将您的应用程序连接到Hazelcast群集,该应用程序与您的应用程序共同列为。

You can solve this problem on two layers:

1. Application layer - Your application can store the data in multiple Hazelcast clusters. If you use Hazelcast with Spring Data, then you can configure multiple databases with Spring JPA. Note however that when your application stores the data in the data centre that is in a different region, then the latency will suffer significantly

2. Hazelcast layer - Hazelcast clusters propagate the data changes across multiple data centres using geo-replication (Hazelcast WAN Replication, Enterprise feature); then you connect your application to on Hazelcast cluster only, the one that is co-located with your application.

~没有更多了~
我们使用 Cookies 和其他技术来定制您的体验包括您的登录状态等。通过阅读我们的 隐私政策 了解更多相关信息。 单击 接受 或继续使用网站,即表示您同意使用 Cookies 和您的相关数据。
原文