Geographic Information Systems Asked by Abdelaziz on August 2, 2021
I am using Google geocoding API service with their Java client, and my dev Key,
The problem is when I run up to 40 requests it does slow to 600ms. I am using it in a webservice that is supposed to run faster than that. How can I speed things?
I already set up the QPS in my code but it doesn’t improve performance.
GeoApiContext context = new GeoApiContext().setApiKey("AI....");
context.setQueryRateLimit(100);
GeocodingResult[] results = GeocodingApi.geocode(context,Adresse).await();
What do you suggest to improve the performance?
we could speed up the requests to Google API by network tweaking : separate route to Google (remove filtering and DPI rule on the firewall for that specific route). From 550-600 to 350ms. Some days we don't know why we can reach and keep an average of 150ms. But I assume this is all in the hands of Google then ... But as the comment says 600ms is not so bad already. NB : The next plan we studied if we need more speed would be to take a VM on GoogleCloud (kubernetes or appEngine) and fetch the results from there. But it requires some OPS skills (especially kubernetes) and a GoogleCloud account.
Answered by Laurent Berti on August 2, 2021
Get help from others!
Recent Answers
Recent Questions
© 2024 TransWikia.com. All rights reserved. Sites we Love: PCI Database, UKBizDB, Menu Kuliner, Sharing RPP