Better HN
top
new
best
ask
show
jobs
Log in
Sign up
Better HN
Comment
by
Spivak
· 8y ago · 0 comments
Are you worried about that endpoint being used for DoS or is it light enough?
Comments
[–]
iw0
8y ago
The way i do it is running the checks in a background every x minutes and add the result in a json file. It’s fast and safe.
[–]
petecoop
8y ago
I'd guess you'd then also want to return a timestamp in the response and then fail if the timestamp is older than x minutes too
[–]
philip1209
8y ago
It's rate-limited and behind Cloudflare. But, the checks are like "can I connect to Redis", so it is pretty lightweight.