会话恢复Aeron的最佳实践
如何从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 技术交流群。

绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(1)
使用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.