pjf / exobrain

Automate your life with Exobrain
218 stars 25 forks source link

Migrate to ZMQ.pm #24

Open pjf opened 10 years ago

pjf commented 10 years ago

The ZMQ module for Perl supports both ZMQ2 and ZMQ3. While there's a little work that's needed to do version-sniffing for things like send() and recv(), most of it's generic. It should be pretty easy for what we're doing to use it.


Word on the street is the ZMQx::Class will probably end up being the way to go eventually, as it should support both ZMQ3 and the freshly released ZMQ4, but that can be done later.

--- Want to back this issue? **[Post a bounty on it!](https://www.bountysource.com/issues/1406108-migrate-to-zmq-pm?utm_campaign=plugin&utm_content=tracker%2F347315&utm_medium=issues&utm_source=github)** We accept bounties via [Bountysource](https://www.bountysource.com/?utm_campaign=plugin&utm_content=tracker%2F347315&utm_medium=issues&utm_source=github).
pjf commented 10 years ago

(Originally brought up in #22 )

pjf commented 10 years ago

Leaving this open for now, because while travis is testing on ZMQ3, I don't think we're pushing packets yet.

techman83 commented 10 years ago

52 Covers off a lot of discussion about ZMQ3/4. I read through ZMQ.pm at the time and it had taken into consideration the differences (I think the big one is multipart packets from memory). Either way, with #53 I can reliably push packets across both version 3 and 4. So in theory it "Just Works".