Reputation: 29537
I'm interested in trying to see how I might leverage the Akka/ZeroMQ module in my project.
In that document, 4 so-called "messaging patterns" are identified but only 1 (Pub-Sub) are explained in detail. They are:
To me (a messaging greenhorn), I don't understand how there could be anything more than Pub-Sub
: you have a message, you publish it to a broker, and another process (subscriber) consumes it from the broker.
So my specific question is: what are some concrete use cases for each message ZeroMQ pattern, and why would I ever want to utilize each pattern if Akka already has a mechanism for communicating between threads?
I ask this because the documentation linked above simply states "More documentation and examples will follow soon." for all patterns except Pub-Sub.
Upvotes: 0
Views: 1843
Reputation: 1
Before going into more details right for your question, kindly check another Answer almost identical to your one >>> https://stackoverflow.com/a/25742744/3666197
Q: What are some concrete use cases for each message ZeroMQ pattern
A: Best proceed with the book, you will find many indispensable comments and remarks there
Q: .. don't understand how there could be anything more than Pub-Sub
A: Oh yes, there is a complete new Universe behind that. ZeroMQ is broker-less, zero-copy, incredibly fast to touch just a few ( read below )
Q: why would I ever want to utilize each pattern if Akka already has a mechanism for communicating between threads?
A: Well, it depends. If you are happy with message passing performance for just a few localhost threads ( not much above a few tens ), no need to invest your time into ZeroMQ. If going for high perormance, distributed, (almost) linear scaleability and heterogenous portability, well, then there might be the right time to start reading into ZMQ.
worth for shaping one's mind before moving into details from the ZeroMQ evangelists Pieter Hintjens & Martin Sústrik
An initial view on PUB/SUB
from http://250bpm.com/blog:39 ( check and do not miss Martin's cool notes on unit-testing & other gems in his collection )
A very indepth must-have & must-read is a book ( available as pdf ) "Code Connected, Volume 1" If going seriously in for messaging, this is a basis to work with.
A collection of good whitepapers is on http://zeromq.org/area:whitepapers
Upvotes: 1