How to speed up API requests?

后端 未结 5 1568
没有蜡笔的小新
没有蜡笔的小新 2020-12-16 02:31

I\'ve constructed the following little program for getting phone numbers using google\'s place api but it\'s pretty slow. When I\'m testing with 6 items it takes anywhere fr

5条回答
  •  鱼传尺愫
    2020-12-16 02:46

    its a matter of latency between client and servers , you can't change anything in this way unless you use multiple server location ( the near server to the client are getting the request ) .

    in term of performance you can build a multithreding system that can handel multiple requests at once .

提交回复
热议问题