title: Google geocoding on the fly using laravel queue
body: <p>I have about 100 GPS device sending coordinates periodically on every 10 seconds . My customer want real time reverse geocoding to see his vehicles along with location on a tabular view. I have set up a queue to save all those packets in db before where I have added geocoding script like below</p>
  
  <ol>
  <li><p>Receive TCP IP message using websocket</p>
  
  <pre><code>public function onMessage(ConnectionInterface $conn, $msg) {
   //get the message
   // send the dispatch job to save it in db
   $this-&gt;dispatch(new SavePacketsToDb($key_1, json_encode(
                                          array(
                                              'company_id' =&gt; $key_1,
                                              'vehicle_id' =&gt; $company-&gt;vehicle_id,
                                              'tracker_id' =&gt; $company-&gt;tracker_id,
                                              'lat' =&gt; $lat,
                                              'lng' =&gt; $lng,
                                              'imei' =&gt; $imei,
                                              'datetime' =&gt; $datetime,
                                                                              )
                           )));   
  </code></pre>
  
  <p>}</p></li>
  <li><p>Run  a queue</p>
  
  <pre><code>public function handle(){
          $lat=$obj-&gt;lat;
          $lng=$obj-&gt;lng;
  
  
  
  $url = "https://maps.googleapis.com/maps/api/geocode/json?latlng=" . $lat . "," . $lng . "&amp;key=mykey";
                  $json = file_get_contents($url);
                  $data = json_decode($json);
                  $status = $data-&gt;status;
                  $address = '';
                  if ($status == "OK") {  
                     // echo "from geocode address";
                      echo $address = $data-&gt;results[0]-&gt;formatted_address;
                  }
                  else{
                      $address=NULL;
                  }
  
       //save to db
    }
  </code></pre></li>
  </ol>
  
  <p>I am just worried if it works for 1000 concurrent devices if I include this geocoding on queue, is there any better approach for it?</p>