title: How to implement inter-process communication in Go?
body: <p>I’m writing a load balanced server system in Go.</p>
  <p>The load balancing server will communicate with several application servers and process requests. These servers can both, be running on the same machine or on the network.</p>
  <p>I already figured the networking out but now I need to find an optimal way for the load-balancer to communicate with a local application server. Using <code>localhost</code>-networking seems far from optimal.</p>
  <p>I’m trying to share memory via the <code>shmget</code> and <code>shmat</code> system-calls but haven’t found any working examples and the <code>syscall</code> package is also completely undocumented.</p>
  <p>Can someone provide me with an example of how to use these calls or a realistic alternative that works on Go for doing IPC?</p>