That is a common misconception. ZeroMQ is a socket on steroids, that's it. It does up to what it can do without messing with the protocol you are implementing. Pub/sub can handle message delivery reliability but it is not default on the pattern because you can easily flood memory if the worker is not available. Most of the protocols using zeromq implement a ready message that specifies when a certain worker is available and then start sending its messages as well as handle disk persistence if needed. Zeromq also implemented something they call high water mark on the socket and that is the amount of messages to be queued on memory before starting to discard. This is only used on durable sockets, which from what I understand is being deprecated in favor of leaving the task to the nderlying protocol. Hope that clears it. Regards, João Mesquita On 06/07/2012, at 04:14 a.m., Neo Cheema <neo.cheema@gmail.com> wrote:
João,
"Since the socket implemented on mod_zmq is a simple PUB/SUB, yes, messages would be discarded if they are not received by the other end."
I thought it didn't matter if the 'worker' was up before the 'producer'/freeswitch started pushing in the messages. 0mq handles that part, if atleast one worker is connected.
My main reason for looking towards 0mq was to bypass a webserver, which would be required for xml_cdr.
On Fri, Jul 6, 2012 at 8:33 AM, jay binks <jaybinks@gmail.com> wrote:
while we are talking about funky CDR stuff.
Ive been planning to look at riak ( http://wiki.basho.com/ ) for bulk CDR storage ( storing data other than billing data ) but just not finding the time.
anyone done something similar ? The idea is to store as much data in a distributed manner, so as to aid debugging. ( not so much for billing )
Jay
_________________________________________________________________________ Professional FreeSWITCH Consulting Services: consulting@freeswitch.org http://www.freeswitchsolutions.com
FreeSWITCH-powered IP PBX: The CudaTel Communication Server http://www.cudatel.com
Official FreeSWITCH Sites http://www.freeswitch.org http://wiki.freeswitch.org http://www.cluecon.com
Join Us At ClueCon - Aug 7-9, 2012
FreeSWITCH-users mailing list FreeSWITCH-users@lists.freeswitch.org http://lists.freeswitch.org/mailman/listinfo/freeswitch-users UNSUBSCRIBE:http://lists.freeswitch.org/mailman/options/freeswitch-users http://www.freeswitch.org
_________________________________________________________________________ Professional FreeSWITCH Consulting Services: consulting@freeswitch.org http://www.freeswitchsolutions.com
FreeSWITCH-powered IP PBX: The CudaTel Communication Server http://www.cudatel.com
Official FreeSWITCH Sites http://www.freeswitch.org http://wiki.freeswitch.org http://www.cluecon.com
Join Us At ClueCon - Aug 7-9, 2012
FreeSWITCH-users mailing list FreeSWITCH-users@lists.freeswitch.org http://lists.freeswitch.org/mailman/listinfo/freeswitch-users UNSUBSCRIBE:http://lists.freeswitch.org/mailman/options/freeswitch-users http://www.freeswitch.org