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 <[email protected]>
To: Absynt Technologies <[email protected]>
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

May 6, 2013 8:03 PM
Hi Joshua

I am using tcp

Andre


From: Joshua Foster <[email protected]>
To: Absynt Technologies <[email protected]>; ZeroMQ development list <[email protected]>
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



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

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
[email protected]
http://lists.zeromq.org/mailman/listinfo/zeromq-dev


_______________________________________________
zeromq-dev mailing list
[email protected]
http://lists.zeromq.org/mailman/listinfo/zeromq-dev

Reply via email to