October 2016
Intermediate to advanced
320 pages
6h 39m
English
In our small e-commerce example, we are still missing the shipping service. In real-world scenarios, this would be a really complex task, and you would often need to communicate with outside parties and maybe integrate with APIs of external transport service providers. For this reason, we will now build our shipping service as a worker pool using PUSH and PULL sockets and an arbitrary number of worker processes.
A PUB socket publishes each message to all connected subscribers. ZeroMQ also offers the PUSH and PULL socket types - they work similar to PUB/SUB, but each message published on a PUSH socket is sent to only one of potentially many connected PULL sockets. You can use this to implement ...
Read now
Unlock full access