一对多IPC [英] one-to-many IPC

查看:196
本文介绍了一对多IPC的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我正在寻找一种ipc机制,该机制将允许从一个进程到很多(数千)的数据更新的高吞吐量.

I'm looking for an ipc mechanism which would allow high throughput of data updates from one process to many (thousands).

服务器"过程将负责高频更新数据结构.更新后,我想通知客户端"进程更新,并允许这些进程读取新数据.

The 'server' process would be responsible for updating a data structure at a high frequency. Upon update, I'd like to notify the 'client' processes of the update, and allow those processes to read the new data.

在Linux或FreeBSD环境下,什么是解决此问题的好方法?

Under a Linux or FreeBSD environment, what would be a good way to go about this?

推荐答案

我建议使用 ZeroMQ .这是一个快速,轻便,跨平台,跨语言的消息传递系统,已经可以满足您的所有要求.它易于使用,并且非常健壮.它可以在许多模式下运行,其中一种是一对多消息传递(在CS语言中称为广播).

I would recommend using ZeroMQ. It's a fast, lightweight, cross-platform, cross-language messaging system that already does all you're asking for. It's easy to use, and very robust. It can operate in many, many modes, one of which is one to many messaging (this is called broadcast in CS-speak).

这篇关于一对多IPC的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆