Re: [zeromq-dev] twisted/coherence and zmq

2013-11-20 Thread Tom Cocagne
The event loop conflicts you mention can be avoided if you use a wrapper library to integrate zmq sockets into the Twisted event loop. There are two options for doing so that I can think of off-hand: https://github.com/smira/txZMQ https://github.com/cocagne/zpax/blob/master/zpax/network/zed.py tx

Re: [zeromq-dev] Certificate formats

2013-10-06 Thread Tom Cocagne
On Fri, Oct 4, 2013 at 12:44 PM, Tony Arcieri wrote: > > This is a nice start! Some comments: > > - Blocks are good. Yay! > - This looks somewhere in the middle of YAML and TOML/"INI". Would it be > worthwhile to adopt one of these conventions? Perhaps a subset of YAML? > - That said, you have [.

Re: [zeromq-dev] Certificate formats

2013-10-04 Thread Tom Cocagne
true, "parent" : ''d027128d-a0af-48a8-8dfd-65f9ea2e47b1", ...}}, "d027128d-a0af-48a8-8dfd-65f9ea2e47b1" { ... } ], } = On Fri, Oct 4, 2013 at 2:39 AM, Pieter Hintjens wrote: > On Fri, Oct 4, 2013 at 7:13 AM, Tom Cocagne wrote: > >

Re: [zeromq-dev] Certificate formats

2013-10-03 Thread Tom Cocagne
One of the widely accepted failures of the existing TLS security model is that the certificate handling approach is overly complex and easy to get wrong. A while back I spent several days with the OpenSSL book and a bottle of aspirin in an attempt to accomplish a single goal: "Ensure that these two

Re: [zeromq-dev] Draft SRP spec for zeroMQ

2013-09-30 Thread Tom Cocagne
Great start Diego. I've been wanting to work on SRP for ZMQ for months now but the necessary free time has yet to manifest. I'd hoped someone would pick up this torch and start running with it. In case you haven't come across it yet, there's a C implementation of SRP that's intended for direct embe

Re: [zeromq-dev] ZMTP v3.0

2013-04-14 Thread Tom Cocagne
This looks great Pieter. The lack of a good security mechanism has been a stumbling block for me in the past and I'm glad you have a good plan in place to address it. I'll admit though that I was a bit disappointed a couple weeks ago when I announced the proof-of-concept DTLS over ZMQ implementatio

Re: [zeromq-dev] Paxos Consensus over ZeroMQ

2013-03-25 Thread Tom Cocagne
examples where Paxos would solve problems faced by >> developers using 0MQ? >> >> -Pieter >> >> On Sat, Mar 23, 2013 at 7:24 AM, Tom Cocagne >> wrote: >> > At a meetup just short of a year ago I was asked to post to the list >> > about a Paxos ov

Re: [zeromq-dev] Paxos Consensus over ZeroMQ

2013-03-25 Thread Tom Cocagne
> Hi Tom, > > Do you have any examples where Paxos would solve problems faced by > developers using 0MQ? > > -Pieter > > On Sat, Mar 23, 2013 at 7:24 AM, Tom Cocagne wrote: >> At a meetup just short of a year ago I was asked to post to the list >> about a Paxos over

[zeromq-dev] Paxos Consensus over ZeroMQ

2013-03-22 Thread Tom Cocagne
At a meetup just short of a year ago I was asked to post to the list about a Paxos over ZeroMQ side project I'd been working on. At the time, the implementation was roughly alpha quality and the code wasn't particularly clean but it seemed to be fairly well received. For those that are still intere

[zeromq-dev] DTLS over ZeroMQ

2013-03-02 Thread Tom Cocagne
I have a use case coming up that requires secure communication between two remote nodes that have an arbitrary number of message relayers sitting in between them. In this particular case, some of those machines will be using unrouteable IPs so most of the traditional SSL tunneling solutions used in

Re: [zeromq-dev] Distributed Event Bus

2013-02-21 Thread Tom Cocagne
One thing to note with the Paxos option, if you decide to go that route, is that the number of participants in the decision making process doesn't scale all that well. Typically, a sub-set of nodes (< 30 or so) is used as the decision makers and everyone else just listens for the results. Also, tru

Re: [zeromq-dev] Encryption Library

2013-01-08 Thread Tom Cocagne
The hmac module in the Python standard library may be easily used for message authentication and integrity needs. As for encryption, the pycrypto module will probably meet your needs. Assuming that both the publisher and all subscribing nodes share a secret key, it's exceedingly simple (less than 5

[zeromq-dev] PUB/SUB Socket Deletion & Recreation Race Condition

2012-06-05 Thread Tom Cocagne
While attempting to unit test some code based on PUB/SUB sockets (pyzmq 2.1.10 & zmq 2.1.11), I ran into an unfortunate race condition that occasionally breaks the unit tests. Usually the message exchanges work fine but occasionally the unit tests randomly break due to some or all of the nodes comp

[zeromq-dev] Paxos & ZeroMQ

2012-05-19 Thread Tom Cocagne
At today's ZeroMQ meetup in Chicago, a surprising amount of interest was expressed in a Paxos/ZeroMQ side project I've been working on for the past few months. At the request of several of the attendees, I've made the code publicly available on GitHub for the perusal of anyone that's interested. T

Re: [zeromq-dev] Meetup in Chicago on May 19th

2012-04-26 Thread Tom Cocagne
Excellent! Glad to hear it. I'm not sure about Midway but if you're flying into O'Hare, the blue line train will take you directly to our building (Union Station). Tom On Thu, Apr 26, 2012 at 10:33 AM, Ian Barber wrote: > On Wed, Apr 25, 2012 at 6:36 PM, Tom Cocagne wrote:

[zeromq-dev] Meetup in Chicago on May 19th

2012-04-25 Thread Tom Cocagne
This is an announcement and call for speakers for a semi-formal ØMQ meetup in Chicago on May 19th. Ideally this meetup will follow a similar model to that of the recent one held in Portland and will consist of a day-long series of presentations and lightning talks. If you're in the area and have a