Because my vanity is taking the best of me, I would like to include this on my blog sidebar. However, I would like to know if there is a limit to this method, and if so, what is that limit? Not that the traffic from my blog would be high, but still, I don’t want to make a mess.
I don’t know about exact numbers, but Docker Hub does protect itself against attacks so too many requests from a specific IP can block the IP at least temporarily.
while the limit changes over time depending on load and other factors, it’s in the order of thousands of requests per minute.
If your blog is very popular, you can implement the feature on client side so the IP will be the IP of the user who loads your blog, but thousands of requests per minute is quite a large limit unless your server is in a network which has multiple servers using the same gateway for outgoing traffic. If you don’t need real-time numbers (I’m not sure how real-time the api response is) you could cache the response for some seconds or probably even for a minute if necessary.
Thanks for the reply!
No, it’s not popular at all (most of the traffic comes form robots or hack attempts!), it’s more a vanity feature I want to implement. So it should be good, as it will definitely not be in “thousands of requests per minute”!