title: ZMQ: Sync messages between APs
body: <p>Multiple Access Points are in a network. They need to sync client data whenever a client connects to any one of the AP.</p>
  
  <p>I've studied ZeroMQ <a href="http://zguide.zeromq.org/page:all" rel="nofollow noreferrer">documentation</a> for REQ/REP, PUB/SUB and PUSH/PULL patterns. Not quite sure which pattern really works for the above requirement between PUSH/PULL and PUB/SUB.</p>
  
  <p>In the documentation, it is mentioned that,</p>
  
  <blockquote>
    <p>One socket may have many outgoing and many incoming connections.</p>
  </blockquote>
  
  <p>How to achieve this using one of the above patterns so that the data among APs always in sync.</p>
  
  <p><strong>Points to be considered</strong></p>
  
  <ul>
  <li>APs join network arbitrarily.</li>
  <li>If a client connects to an AP, it's data need to be stored in all APs.</li>
  <li>ZeroMQs are for C language.</li>
  </ul>