#1 2012-03-12 22:26:40

Junior/RO
Member
Registered: 2011-05-13
Posts: 210

ZeroMQ broadcasting

I was thinking about using high performance messages from ZeroMQ open source library to make a publisher/subscriber. If it works then will be a good approach to receive notifications from server.

What you think?

http://www.zeromq.org/

Offline

#2 2012-03-13 12:20:51

ab
Administrator
From: France
Registered: 2010-06-21
Posts: 14,660
Website

Re: ZeroMQ broadcasting

0mq is a great library.
It has an incredible potential for any remote access to some data.

I found out this good introduction article: http://nichol.as/zeromq-an-introduction

There is an official Delphi port (the one from Daniele Titi).
It is a bit rough (only handling text messages), but it may be a start.

The library itself is small, and can be embedded easily into the client exe (as resource, with late unziping+loading from a temp folder).

mORMot relies on a stateless protocol by now, and HTTP over networks.
The issue with such transmission protocols, is that it will cross hardly corporate firewalls and proxies, whereas plain old HTTP is well supported (perhaps the only protocol in this case).
But in some cases, especially when using interface based services, using 0mq would definitively make sense.
Due to its implementation, mORMot is able to use any RESTful protocol, and could easily use 0mq for transmission.

Thanks for the suggestion.

Offline

Board footer

Powered by FluxBB