title: Python Web Service vs Socket programming Client/Server Design
body: <p>I need some help, i am on early design stage of a client server software and i don't know which of the 2 options (Web Service or Socket programming) are the right one for my software.</p>
  
  <p>All programming is in python.</p>
  
  <p>The layout:
  <img src="https://i.stack.imgur.com/5nCjJ.png" alt="enter image description here"></p>
  
  <ol>
  <li><p>PC will need to run a server service - this server will get commands from the local computer and will send them to the MiniPC.</p></li>
  <li><p>MiniPC will need to run a client service - when it identify a command (method) he will go to hardware (connection by serial,usb.....), do something and return to the miniPC with result.</p></li>
  <li><p>MiniPC get the Hardware result and sends it to the Logging server and to the Main PC</p></li>
  </ol>
  
  <p>Notes:</p>
  
  <ul>
  <li>PC can controls several MiniPC.</li>
  <li>The amount of data in one hardware response can be up to 10Kb.</li>
  <li>Commands from PC to MiniPC are small (strings)</li>
  <li>Logging data can be up to 10Kb.</li>
  </ul>
  
  <p>Questios:</p>
  
  <ol>
  <li>What is you recomendation for protocol Web (http) or Socket programming?</li>
  <li>Do you have any suggestions for the design?</li>
  </ol>