zeromq

Differences between ZeroMQ and WebSockets

六月ゝ 毕业季﹏ 提交于 2019-11-27 18:01:35
I'd like to know what the differences are between the ZeroMQ and WebSockets protocols . I know WebSockets was designed for web browser clients, but I'm assuming it can also be used server to server. And, in that case, I'm wondering if it would be good to use WebSockets instead of something else like ZeroMQ for real-time messaging . Specifically, I'm worried about reliability and missing messages in case of temporary network failure. A: Real-Time-Messaging is a nice tag, however You may soon realise, that once going into the territory of Real-Time , there is no justification for spending clock

How does zeromq work together with SSL?

只愿长相守 提交于 2019-11-27 17:25:37
问题 I am considerung to use zeromq as messaging layer between my applications. At least in some cases I want the communication to be secure and I am thinking about SSL. Is there some standard way how to ssl-enable zeromq? As far as I understand it doesn't support it out of the box. It would be nice if I just had a parameter when connnecting to a socket (bool: useSsl) :) Any ideas? 回答1: Understanding that this is not really an answer to your question, I'm going to be encrypting the messages

Using ZeroMQ together with Boost::ASIO

落花浮王杯 提交于 2019-11-27 10:20:58
问题 I've got a C++ application that is using ZeroMQ for some messaging. But it also has to provide a SGCI connection for an AJAX / Comet based web service. For this I need a normal TCP socket. I could do that by normal Posix sockets, but to stay cross platform portable and make my life easier (I hope...) I was thinking of using Boost::ASIO. But now I have the clash of ZMQ wanting to use it's own zmq_poll() and ASIO it's io_service.run() ... Is there a way to get ASIO to work together with the 0MQ

Connecting to a remote IPython instance

旧时模样 提交于 2019-11-27 06:19:39
I would like to run an IPython instance on one machine and connect to it (over LAN) from a different process (to run some python commands). I understand that it is possible with zmq : http://ipython.org/ipython-doc/dev/development/ipythonzmq.html . However, I can not find documentation on how to do it and whether it is even possible yet. Any help would be appreciated! EDIT I would like to be able to connect to IPython kernel instance and send it python commands. However, this should not be done via a graphic tool (qtconsole) , but I want to be able to connect to that kernel instance from

How to handle a Thread Issue in ZeroMQ + Ruby?

◇◆丶佛笑我妖孽 提交于 2019-11-27 06:12:21
问题 Stumble upon reading ZeroMQ FAQ about a Thread safety. My multi-threaded program keeps crashing in weird places inside the ZeroMQ library. What am I doing wrong? ZeroMQ sockets are not thread-safe. This is covered in some detail in the Guide. The short version is that sockets should not be shared between threads. We recommend creating a dedicated socket for each thread. For those situations where a dedicated socket per thread is infeasible, a socket may be shared if and only if each thread

boost asio deadline_timer async_wait(N seconds) twice within N seconds cause operation canceled

无人久伴 提交于 2019-11-26 21:57:01
问题 What I want is when one message queue receives an int N, the handler function will be called after N seconds. below is my code. It runs OK if the duration seconds of two near message queue is larger than the int N, but the handler will print "Operation canceled" in one handler when the duration seconds between two received message queues are smaller than N, which is not what I want. I'd appreciate a lot for any help. #include <boost/asio.hpp> #include <zmq.h> #include <boost/thread.hpp>

.NET平台常用框架整理

北战南征 提交于 2019-11-26 19:21:39
基于.NET平台常用的框架整理 转自:http://www.cnblogs.com/hgmyz/p/5313983.html 首先谢谢楼主,以后备用 自从学习.NET以来,优雅的编程风格,极度简单的可扩展性,足够强大开发工具,极小的学习曲线,让我对这个平台产生了浓厚的兴趣,在工作和学习中也积累了一些开源的组件,就目前想到的先整理于此,如果再想到,就继续补充这篇日志,日积月累,就能形成一个自己的组件经验库。 分布式缓存框架: Microsoft Velocity :微软自家分布式缓存服务框架。 Memcahed :一套分布式的高速缓存系统,目前被许多网站使用以提升网站的访问速度。 Redis :是一个高性能的KV数据库。 它的出现很大程度补偿了Memcached在某些方面的不足。 EnyimMemcached :访问Memcached最优秀的.NET客户端,集成不错的分布式均衡算法。 开源的.NET系统推荐: OXITE :微软ASP.NET MVC案例演示框架。 PetShop :微软ASP.NET宠物商店。 Orchard :国外一个MVC开源的博客系统。 SSCLI :微软在NET Framework 2.0时代的开源代码。 DasBlog :国外一个基于ASP.NET的博客系统。 BlogEngine.NET :国外一款免费开源的博客系统。 Dotnetnuke.NET

Understanding advanced ZeroMQ socket types

白昼怎懂夜的黑 提交于 2019-11-26 14:45:05
I've read the 0MQ guide, and I understand the basic socket types: PUSH / PULL , REQ / REP , and PUB / SUB . I'm very confused though about ROUTER / DEALER and the X - sockets (e.g., XSUB / XPUB , XREQ / XREP ). What are the use cases for these socket types? user3666197 Trivial Archetypes ZeroMQ " sockets " are sounding alike a socket-oriented device, however on a closer look this smart library rather adds a Formal Communication Pattern ( which btw. uses a true socket ) that has a layered design to internally address details like internal elastic-buffering, internal 1:N Fair-Queue-Sending /

Connecting to a remote IPython instance

穿精又带淫゛_ 提交于 2019-11-26 11:57:05
问题 I would like to run an IPython instance on one machine and connect to it (over LAN) from a different process (to run some python commands). I understand that it is possible with zmq : http://ipython.org/ipython-doc/dev/development/ipythonzmq.html . However, I can not find documentation on how to do it and whether it is even possible yet. Any help would be appreciated! EDIT I would like to be able to connect to IPython kernel instance and send it python commands. However, this should not be

Understanding advanced ZeroMQ socket types

我是研究僧i 提交于 2019-11-26 04:00:05
问题 I\'ve read the 0MQ guide, and I understand the basic socket types: PUSH / PULL , REQ / REP , and PUB / SUB . I\'m very confused though about ROUTER / DEALER and the X - sockets (e.g., XSUB / XPUB , XREQ / XREP ). What are the use cases for these socket types? 回答1: Trivial Archetypes ZeroMQ " sockets " are sounding alike a socket-oriented device, however on a closer look this smart library rather adds a Formal Communication Pattern ( which btw. uses a true socket ) that has a layered design to