manu-chroma / username-availability-checker

Live at : https://username-check.herokuapp.com/
95 stars 37 forks source link

Detect and inform to user if the website is down #71

Closed seeeturtle closed 6 years ago

seeeturtle commented 6 years ago

This will detect and inform to user if website is down. It detects the status by checking if constant username which is probably taken forever is available.

Closes #66

and some more commits

manu-chroma commented 6 years ago

The changes look good to me.

@jayvdb can also review once, after you get the travis passing :+1:

seeeturtle commented 6 years ago

@manu-chroma , it pass now. I think there was some problem with travis

jayvdb commented 6 years ago

I am a little worried that regularly running the same check on a static username is going to cause websites to suspect that this service is a bot and block it.

We could possibly reduce the number of times the check is run.

e.g. only run the check if the user supplied username is available.

e.g. cache the website status for a few minutes, which means the 'usable' check isnt run multiple times when a user trying a few different usernames in quick succession .

manu-chroma commented 6 years ago

caching here is a great idea 👍

events like site going down is rare in itself.