<?xml version="1.0" encoding="utf-8" standalone="yes"?>
<rss version="2.0" xmlns:atom="http://www.w3.org/2005/Atom">
  <channel>
    <title>ZeroMQ on Living Systems_</title>
    <link>https://livesys.se/tags/zeromq/</link>
    <description>Recent content in ZeroMQ on Living Systems_</description>
    <generator>Hugo</generator>
    <language>en-us</language>
    <lastBuildDate>Wed, 13 Nov 2019 11:56:00 +0100</lastBuildDate>
    <atom:link href="https://livesys.se/tags/zeromq/index.xml" rel="self" type="application/rss+xml" />
    <item>
      <title>Basic PUB/SUB connection with ZeroMQ in Python</title>
      <link>https://livesys.se/posts/pub-sub-with-zeromq-in-python/</link>
      <pubDate>Wed, 13 Nov 2019 11:56:00 +0100</pubDate>
      <guid>https://livesys.se/posts/pub-sub-with-zeromq-in-python/</guid>
      <description>&lt;p&gt;&lt;a href=&#34;https://zeromq.org&#34; target=&#34;_blank&#34; rel=&#34;noopener&#34;&gt;ZeroMQ&lt;/a&gt;&#xA; is a great way to quickly and simply send messages&#xA;between multiple programs running on the same or different computers. It is&#xA;very simple and robust since it doesn&amp;rsquo;t need any central server. Instead it&#xA;talks directly between the programs through sockets, TCP-connections or&#xA;similar.&lt;/p&gt;&#xA;&lt;p&gt;ZeroMQ has client libraries for basically all commonly used programming&#xA;languages, but when testing out that a connection works between e.g. two&#xA;different machines, it might be good to keep things simple and test just&#xA;the connection, as simply as possible. For this purpose, I have came to&#xA;use the following two python scripts, where one sets up a &amp;ldquo;publisher&amp;rdquo;,&#xA;and the other a &amp;ldquo;subscriber&amp;rdquo; process. I&amp;rsquo;m documenting them here since&#xA;I tend to forget the syntax from time to time, and also some details,&#xA;such as that you have to make sure the subscriber subscribes to one or&#xA;all topics.&lt;/p&gt;</description>
    </item>
  </channel>
</rss>
