[zeromq-dev] SUB connected early in PUB
Absynt Technologies
hale_india at yahoo.com
Mon May 13 20:31:34 CEST 2013
Hi Joshua
I finally succeed in my project thank's to your help.
you can find it at :
https://github.com/KalimaSystems/LevelDbCache
It is based, mainly on clone example from zguide.
But I add persistance in levelDb, it is multi-base and for each base, multi stores.
My objective was to be able to start clients, primary server and backup in any order and to get it working.
Now it works
My error was that I was, first sending data in blocking mode.
Thanks for your help
Andre
________________________________
From: Joshua Foster <jhawk28 at gmail.com>
To: Absynt Technologies <andre.legendre at kalimasystems.org>
Sent: Wednesday, May 8, 2013 1:52 AM
Subject: Re: [zeromq-dev] SUB connected early in PUB
Does the subscriber get
data eventually? ZeroMQ's perspective is that PUB/SUB is like a radio.
If you aren't listening when it is broadcasting, you won't get the
messages. If you need to get previously sent messages, you need to
overlay a pattern over top (like using separate sockets to synchronize). There are some examples in the guide and I can provide more input if
thats the issue.
Joshua
Absynt Technologies
>May 6, 2013 8:03
PM
>Hi Joshua
>
>
>I am using tcp
>
>
>Andre
>
>
>
>________________________________
> From: Joshua Foster <jhawk28 at gmail.com>
>To: Absynt Technologies <andre.legendre at kalimasystems.org>; ZeroMQ development list <zeromq-dev at lists.zeromq.org>
>Sent: Tuesday, May 7, 2013 1:24 AM
>Subject: Re: [zeromq-dev] SUB
connected early in PUB
>
>
>
>ZMQ does reconnects in the background so you can connect or bind in any order. What transport are
you using?
>
>Joshua
>
>
>
>
>Joshua Foster
>May 6, 2013 7:24
PM
>ZMQ does reconnects in the background so you can connect or bind in any order. What transport are
you using?
>
>Joshua
>
>
>Absynt Technologies
>May 6, 2013 1:21
AM
>Hi all!
>
>I'm developing
against ZMQ on a distributed service architechture.
>
>architecture
is as follows:
>- I first launch master and backup servers.
>- the
servers queues BIND a service PUB socket to which clients and other
services will CONNECT later.
>
>When, the SERVICE (SERVER) SIDE does
a BIND
>And the CLIENT SIDE comes along and CONNECTS to the service
ports SUB ...
>working fine!
>
>BUT: as soon as the client
connect to early (before the server is started).
>Communication between the client en server does not work when server start later.
>
>
>My
question: How managed the situation in a way that will allow client to
start before server and to be able to get the PUB SUB working
>
>Regards
>Andleg
>_______________________________________________
>zeromq-dev
mailing list
>zeromq-dev at lists.zeromq.org
>http://lists.zeromq.org/mailman/listinfo/zeromq-dev
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://lists.zeromq.org/pipermail/zeromq-dev/attachments/20130513/daa39edc/attachment.htm>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: compose-unknown-contact.jpg
Type: image/jpeg
Size: 770 bytes
Desc: not available
URL: <https://lists.zeromq.org/pipermail/zeromq-dev/attachments/20130513/daa39edc/attachment.jpg>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: postbox-contact.jpg
Type: image/jpeg
Size: 1203 bytes
Desc: not available
URL: <https://lists.zeromq.org/pipermail/zeromq-dev/attachments/20130513/daa39edc/attachment-0001.jpg>
More information about the zeromq-dev
mailing list