We are building Android Mobile application and a server web application in PHP and Database in MySQL.
We are going to host it online and release the app in Google store, since the number of users using the app is less at the begging, I’m confident that our client server model of implementation will work without any issues.
But when the number of users increases over the time and at a time requests to server increases to thousands/millions how to optimize the server performance?
One of the solution I know is to use Elastic cloud hosting, which adds the infrastructure dynamically as the traffic grows. Other solution I'm thinking is a middleware, which handles number of requests and does some optimization in talking to server and speeds up the process compared to without middleware.
If we need to implement middleware, do we have to WRITE a middleware LOGIC/ CODE on our own?
Can we use any ready made API which acts like middleware and handles huge traffic by optimizing the server performance?
Is there any hosting (Cloud) service which provides automatic middleware software, and we can use it without even knowing about it?