I have a domain (let's call it one.com
) that contains:
- A website
- A MySQL DB + a REST API service written in PHP to access the data
The API service is used by a mobile platform that calls it through the url one.com/api
. The contents that come in/out the API are simply JSON data.
Everything is hosted by a famous service which guarantees a very generous bandwidth. Anyway, we never had problems reaching the limit since the amount of transferred data and the usage of the app are relatively low.
For a couple of reasons, we decided to move the entire DB and API infrastructure to another domain, call it two.com
, with its API endpoint two.com/api
, leaving only the website.
For this, the requests that the mobile app sends to one.com/api
must be redirected to the new two.com/api
. We successfully did that using the Apache's htaccess "mod_rewrite" way.
Now that the generous hosting plain for one.com
became too much for just the website, we are going to downgrade it to a cheaper shared hosting, but this time we read that "an approximated load of 10.000 visits each month is suitable for this shared plan".
It's obviously a reference, and it should be fine for our website, but what about the REST API service? I mean, does the one.com
bandwidth will be still affected by calls to one.com -> two.com
requests, introducing a possible bottleneck if the usage of our app will increase in the future?