The Ø in ØMQZero BrokerZero Latency (as close as possible...)
The Ø in ØMQZero BrokerZero Latency (as close as possible...)Zero administration
The Ø in ØMQZero BrokerZero Latency (as close as possible...)Zero administrationZero cost
The Ø in ØMQZero BrokerZero Latency (as close as possible...)Zero administrationZero costZero waste
Sockets
SocketsUnicast transports (inproc, ipc, tcp)
SocketsUnicast transports (inproc, ipc, tcp)Multicast transports (pgm or epgm)
SocketsUnicast transports (inproc, ipc, tcp)Multicast transports (pgm or epgm)connect() and bind() are independent
SocketsUnicast transports (inproc, ipc, tcp)Multicast transports (pgm or epgm)connect() and bind() are independentThey are asynchronous (with queues)
SocketsUnicast transports (inproc, ipc, tcp)Multicast transports (pgm or epgm)connect() and bind() are independentThey are asynchronous (with queues)They express a certain "messaging pattern"
SocketsUnicast transports (inproc, ipc, tcp)Multicast transports (pgm or epgm)connect() and bind() are independentThey are asynchronous (with queues)They express a certain "messaging pattern"They are not necessarily one-to-one
if you have a laptop...http://www.zeromq.org/http://zguide.zeromq.org/
Basic Message Patterns
Server
Client
Demo
Basic Message Patterns
Server
Client
Demo
Publisher SubscriberThe PUB-SUB socket pair is asynchronouswhen you use a SUB socket you must set asubscription using zmq_setsockopt andSUBSCRIBE"slow joiner" symptom
Basic Message Patterns
Ventilator
Worker
Sink
Demo
WorkersAlways synchronize the start of the batchThe ventilators PUSH socket distributestasks to workers (load balancing)The sinks PULL socket collects results fromworkers evenly (fair-queuing)
Fair-Queuing
Basic Message Patterns
Sendmessages back
Demo
Allowed PatternsPUB and SUB DEALER and DEALERREQ and REP ROUTER and ROUTERREQ and ROUTER PUSH and PULLDEALER and REP PAIR and PAIRDEALER and ROUTER
1–1 of 1 previous next