ZeroMQ is an Open Source Messaging Library designed for a high-performance asynchronous messaging library. In this video I discuss this tech and build a simple queue with this tech
0:00 Intro
1:48 What is ZeroMQ?
4:48 Messaging Patterns
6:42 Socket Types
8:55 Simple Queue
11:00 Code
23:20 ZeroMQ Pros & Cons
29:30 Summary
Source Code
https://github.com/hnasr/javascript_playground/tree/master/zeromq-simplequeue
Resources
https://github.com/booksbyus/zguide/tree/master/examples/Node.js
https://en.wikipedia.org/wiki/ZeroMQ
https://blog.scottlogic.com/2015/03/20/ZeroMQ-Quick-Intro.html
http://zguide.zeromq.org/page:chapter3#advanced-request-reply
Outline
What is ZeroMQ? Message library Message Patterns Broker less Simple you build the components that you need Sockets Types REQ REP PUSH PULL ROUTER DEALER Message PatternS Synchronous Request/Response Asynchronous Request/Response Publish/Subscribe Push/Pull Exclusive Pair Example! (Simple Queue (Push Pull)) Pros & Cons Pros Simple (meh) Efficient lightweight Great for small use cases Cons You have to write customize If you are building a large distributed message queue then you need to implement all features Feels over-engineered Could be simpler. --- Send in a voice message: https://anchor.fm/hnasr/message
Create your
podcast in
minutes
It is Free