是什么样的DBus我要找的? [英] is DBus what I'm looking for?

查看:167
本文介绍了是什么样的DBus我要找的?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我需要在Linux上一个IPC系统。我的要求是:

I need an IPC system on Linux. My requirements are:


  1. 包/面向消息

  2. 要同时处理点至点和一个一对多的沟通能力

  3. 没有等级,没有服务器和客户端

  4. 如果一个端点崩溃,其他人必须通知

  5. 从现有的Linux发行版良好的支持

  6. 一个绑定为Apache的存在,用于创建动态网页的目的

分类的重要性(大约)的顺序。我并不需要极高的性能,我也将被发送数据的高容量。

sorted in order of importance (roughly). I don't need extreme performance, nor I will be sending high volume of data.

我偶然发现的DBus,它看起来像一个不错的选择(它 PECL ::包:: DBUS 一个很好的机制,让Apache的访问DBUS?)。但深的DBus文档跳水之前,我想听到一些建议。

I stumbled upon DBus, and it looks like a good candidate (it pecl::packages::dbus a good mechanism to let Apache access the DBUS?). But before diving deep in DBus documentation I'd like to hear some suggestions.

推荐答案

ZeroMQ 提供所有你问功能对,然后一些。这基本上是一个工作无论什么消息传递系统将采取的所有角落案件和微妙之处IPC消息照顾。

ZeroMQ provides all the features you ask for and then some. It's basically a "work no matter what" messaging system that'll take care of all the corner cases and subtleties in IPC messaging.

不过,ZMQ和所有其他类似不是应用程序 - 他们的API,您可以使用与创建应用程序。你会使用ZMQ无论从任何脚本你的Apache正在运行(如PHP后端)。

However, ZMQ and all the others like it are not applications - they're APIs you can use to create applications with. You would use ZMQ from whatever script your Apache is running (eg PHP backend).

这篇关于是什么样的DBus我要找的?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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