会话恢复Aeron的最佳实践

发布于 2025-01-31 21:46:20 字数 86 浏览 2 评论 0原文

如何从AERON的客户端恢复封闭的会话?想象一下,我们的Aeron服务器端被击落并杀死,现在客户需要有适当的计划来重新连接服务器时。这个问题有什么最佳实践吗?

How to recover a closed session from the client-side in Aeron? Imagine that our Aeron server-side is down and killed, now clients need to have a proper plan to re-connect when the server is available. is there any best practice for this issue?

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

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

发布评论

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

评论(1

请止步禁区 2025-02-07 21:46:20

使用Aeron,您可以检测出发布或订阅是否与ISCONNECTECT()方法连接。如果断开连接,则需要一个申请策略来决定您的进行方式。就像您使用TCP或其他通信机制一样,您需要为您重新建立状态具有恢复协议。这是分布式系统设计和协议的领域,而不仅仅是Aeron。

With Aeron you can detect if a Publication or Subscription is connected with the isConnected() method. If you disconnect you need an application strategy to decide how your proceed. Just like you would with TCP, or another communication mechanism, you need to have a recovery protocol for how you re-establish state. This is into the realms of distributed systems design and protocols and not just Aeron.

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