分布式计算:异步接收
如果我有一个接收原语,我只是从指定的发送者接收消息,并且我有一个接收所有原语,我从任何发送者接收消息,那么如何将其扩展到实时应用程序?
这是我以前从未注意到的一些课程笔记中的一个问题:)。有什么想法吗?
异步接收是非阻塞接收。
我的想法是,我们可以以某种方式时不时地轮询发件人,以检查是否没有消息丢失??...我不确定。欢迎任何想法:)。
If I have a receive primitive where I simply receive a message from a specified sender and I have a receive-all primitive where I receive from any sender, how can this be extended for real-time applications?
This is a question in some course notes I have that I never noticed before :). Any ideas?
An asynchronous receive is a non-blocking receive.
My idea is that we can somehow poll the sender every now and again to check that no messages are getting lost??... I'm not sure. Any ideas welcomed :).
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(1)
解决方案是使用超时:异步通信中消息可能会丢失,因此如果我们等待消息的时间太长,那么我们应该请求重新发送该消息;可以使用超时来实现此目的。
Solution is to use timeouts: Messages can be lost in asynchronous communication so if we are left waiting on a message for too long then we should request to have it resent; a timeout can be used to achieve this.