title: Connect user to socket server based on ip location region
body: <p>I am hosting 3 NodeJS socketio servers on the same AWS EC2 Instance. On that instance, I am using NGinX to load balance them so one of the node servers does not get overloaded depending on the workload and requests it receives.</p>
  <p>Depending on the location, the data is slower to get received by users. For example, this EC2 instance is hosted in US-East-2 region. If you are in europe, it takes a little more time for data to get across to the user due to distance. Is there an easy way to do this with nginx so that if I spin up an instance in Europe region for aws, if your geolocation is in europe, connect to that server? If not NginX is there a way in aws where you can connect to the best available location based on speed?</p>
  <p>Thanks</p>