How does a server handle web service requests from multiple clients

前端 未结 4 2081
野的像风
野的像风 2020-12-31 19:19

I just completed an Android application that uses web services to connect to a remote database. I was working on localhost.

Now, I plan to host my web services on a

4条回答
  •  天涯浪人
    2020-12-31 19:52

    Your question is not really related to Android but to mobile development with web backend.

    I don't know how to use .NET for server app development but if you take the example of a Apache/PHP/MySQL, each requests are run in a separated thread.

    There might be small latency delays while the request reach the server but this shouldn't affect the time taken by your server to process the request and the data.

    One of the thing to think about is to avoid sending multiple requests from one same client. This is a common implementation problem : since you have no data already returned, you think there are no pending request and you launch a new request. This can basically create unnecessary load on your server.

    Hope that helps !

提交回复
热议问题