About this episode
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.
- Pros
More from The Backend Engineering Show with Hussein Nasser
I discuss the state of what will be happening in the coming few years and why I encourage the 3 of you who want to be elite engineers to keep their critical thinking sharp. To pause and think before p…
This is a conversation with Rashed Hasan, a PhD Candidate from the University of Nebraska. We chatted about databases, ORMs and how to use AI without losing yourself. Rashed pagehttps://www.mdrashedul…
I discuss loops engineering and how it will numb creative thinking and critical system design for engineers.
I like SQL but the standard should have included ways to hint instead of the abstraction of "let me do it for you"
In this episode I explore why you should take some time to examine the operation you are caching before doing so. And why caching is a cop-out
