Answer the question
In order to leave comments, you need to log in
How to check website uptime?
I am writing an application for a dozen sites (pet-project). I ran into a problem:
when I check through a get / head-request (axios / fetch) - at first everything works as it should. But after a few hours of server operation, they begin to give 5xx errors (a block from the server side, presumably), getaddrinfo ENOTFOUND, ECONNREFUSED and other adjectives. I tried different solutions-libraries from github - the same song. We need a stable solution.
After a couple of days, I solved the problem through Puppeteer - it works fine, you can check the render along the way and many other parameters, but the solution turns out to be very weighty and slow (compared to the request above), because in fact, you only need the response status and a chain of redirects. And the plans are to upload all this to heroku, where the size of dependencies is cut down to <300mb. And with an increase in the number of urls for verification, the total time increases greatly, but you need to fit the verification cycle into ~ 5 minutes.
Question: how to find a middle ground and not get banned by servers?
PS: there is no access to servers, you need an external solution.
Answer the question
In order to leave comments, you need to log in
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question