Currently under development is the site http://webstagram.ru/, using the Instagram API. The problem is that even at the initial stage we do not fall into the limit of 5000 requests per hour, from which the site stops working. What can be done to remove this limit or limit the number of requests?
Judging by the speed of the site, you redirect all requests directly to the API. It is completely useless.
Cache API responses for a while (matched / calculated from needs). Especially it makes sense to cache responses to the most frequent requests.
For example, “popular” can be cached for 15 minutes, “ratings” can be safely cached for several hours, and “photo of the day” for a day.
At the same time, it is possible to monitor the number of requests, and in the event of a shortfall (all 5000 requests per hour have not yet been selected), make additional requests to the API to update the information in the cache and update popular pages.
However, sooner or later, you will still end up in the limit. Consider using multiple keys or negotiate an increase in limits with instagram.