Messaging with 0MQ (ZeroMQ)

Поділитися
Вставка
  • Опубліковано 16 вер 2024
  • ZeroMQ (also known as ØMQ, 0MQ, or zmq) looks like an embeddable networking library but acts like a concurrency framework. It gives you sockets that carry atomic messages across various transports like in-process, inter-process, TCP, and multicast. You can connect sockets N-to-N with patterns like fan-out, pub-sub, task distribution, and request-reply. It's fast enough to be the fabric for clustered products. Its asynchronous I/O model gives you scalable multicore applications, built as asynchronous message-processing tasks. It has a score of language APIs and runs on most operating systems.
    This month, Richard Thomson will give us an introduction to ZeroMQ. We'll look briefly at the low-level library libzmq before switching to the higher level C++ library zmqpp. We'll adapt a simple database for comic book issues into a CRUD server that responds to zmq messages.
    ZeroMQ: zeromq.org/
    Future topics: utahcpp.wordpr...
    Past topics: utahcpp.wordpr...

КОМЕНТАРІ • 10

  • @UtahCppProgrammers
    @UtahCppProgrammers  Рік тому +1

    I've uploaded the source code described in this video to github here: github.com/LegalizeAdulthood/comicsdb-zeromq

  • @workflowinmind
    @workflowinmind Рік тому +3

    This video is a statement on how good ZMQ's doc is!

  • @nichitafrunza9059
    @nichitafrunza9059 Рік тому +1

    keep up the great work man. You post some really helpful videos!

  • @hellman431
    @hellman431 Рік тому +1

    Could u make a video where u use zmq with pub/sub patterns aswell? been trying to make a project, but having problems for the sub to read the messages, great video!

    • @UtahCppProgrammers
      @UtahCppProgrammers  Рік тому +1

      Have you tried the examples that are published with ZeroMQ itself?

    • @hellman431
      @hellman431 Рік тому +1

      @@UtahCppProgrammers Yes, I've gotten it to work in the end, but I don't know if it's made with the best practises. Alot of the forum posts on cppzmq is out dated as well, so I think a lot of people wanting to start with cpp stuff of zmq would get help from a video on it.

    • @UtahCppProgrammers
      @UtahCppProgrammers  Рік тому +1

      @@hellman431 It shouldn't be significantly different than what I showed here other than using different socket types. I just uploaded the source code to github; maybe that will help?

    • @hellman431
      @hellman431 Рік тому

      @@UtahCppProgrammers sure, ill take a look!

  • @MegaVikas91
    @MegaVikas91 Рік тому

    Is ZeroMQ a good alternative to dbus?

    • @UtahCppProgrammers
      @UtahCppProgrammers  Рік тому

      I am not familiar dbus, but this article compares them for the Pub-Sub pattern. Hope that helps.
      hackaday.io/project/279-sonomkr-noise-monitoring/log/86364-zeromq-vs-dbus-for-pub-sub-pattern