[zeromq-dev] PHP Error on Ubuntu
Amr Ali
amr.ali.cc at gmail.com
Wed Oct 12 01:41:06 CEST 2011
It depends on what he wants to do, if he wants to have several sockets receiving
the same message, he then should use PUB/SUB, otherwise PUSH/PULL pattern should
work smoothly.
PUB/SUB should work in a setup that looks like this ...
[Publisher]
-
-
------> [Subscriber]
-
------> [Subscriber]
-
------> [Subscriber]
In that setup *all* the subscribers receive the *same* message the publisher
sends. Think RSS.
PUSH/PULL should work in a setup more similar to this ...
[Pusher]
.
.
......> [Puller]
......> [Puller]
......> [Puller]
Where only *one* of the pullers will receive the message and other's won't, this
works best if you want an LRU functionality (think load-balancer).
On 10/12/2011 01:27 AM, Mikko Koppanen wrote:
> On Wed, Oct 12, 2011 at 12:24 AM, lanre lawal <lawillas4ever at yahoo.com> wrote:
>> Hello Ali,
>> Well for what iḿ trying to achieve I really don´t need to send any
>> messages, All i need to do is receive the messages so am thinking maybe the
>> send() part would have to go off. The documentation site is currently down
>> so I can´t access the documentation. Is there a soft copy of the
>> documentation that I can get from somewhere else. Maybe you can help me from
>> your experience. I´ll explain what I actually want to achieve.
>>
>> There´s a dedicated IP address that is currently receiving messages from
>> some devices, now I want to connect to this address and receive these
>> messages. Thats just what I want to do. Can you give me steps on how to do
>> this or better still send me a soft copy of the documentation.
>
> Hi,
>
> if you want to just receive message then REQ/REP is the wrong pattern
> for you. You should use PUB/SUB for this scenario. The
> http://zguide.zeromq.org/ contains examples in PHP as well.
>
> -- mikko
> _______________________________________________
> zeromq-dev mailing list
> zeromq-dev at lists.zeromq.org
> http://lists.zeromq.org/mailman/listinfo/zeromq-dev
-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 198 bytes
Desc: OpenPGP digital signature
URL: <https://lists.zeromq.org/pipermail/zeromq-dev/attachments/20111012/ef60bc04/attachment.sig>
More information about the zeromq-dev
mailing list