# ZeroMQ

> Episode of [The Backend Engineering Show with Hussein Nasser](https://podistic.com/podcast/the-backend-engineering-show-with-hussein-nasser.md) · Published July 5, 2020 · Duration 29:54

- **Listen on Podistic:** https://podistic.com/episode/zeromq
- **Audio:** https://traffic.megaphone.fm/APO7976904828.mp3 (audio/mpeg)

## About this episode

**ZeroMQ** is an Open Source Messaging Library designed for a [high-performance](https://en.wikipedia.org/wiki/High-throughput_computing) asynchronous [messaging](https://en.wikipedia.org/wiki/Message_passing) 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](https://github.com/hnasr/javascript_playground/tree/master/zeromq-simplequeue)

Resources

[https://github.com/booksbyus/zguide/tree/master/examples/Node.js](https://github.com/booksbyus/zguide/tree/master/examples/Node.js)

[https://en.wikipedia.org/wiki/ZeroMQ](https://en.wikipedia.org/wiki/ZeroMQ)

[https://blog.scottlogic.com/2015/03/20/ZeroMQ-Quick-Intro.html](https://blog.scottlogic.com/2015/03/20/ZeroMQ-Quick-Intro.html)

[http://zguide.zeromq.org/page:chapter3#advanced-request-reply](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.
