muni-town / weird

Weird web pages
https://weird.one
Other
49 stars 11 forks source link

Redirect in case of unresponsiveness #202

Open erlend-sh opened 1 month ago

erlend-sh commented 1 month ago

If a personal weird-page stalls for more than 3.5 seconds, we should redirect the visitor to the Backup Redirect, if one is set.

My personal Backup Redirect would be set to https://github.com/erlend-sh

zicklag commented 1 month ago

Just to do the smart redirect we would have to have some proxy service running highly available in front of Weird anyway, so what I'm thinking is that we can build this into the same service we were thinking of having that would just serve the pages from cache, even if the main site is not available.

Squid, a very common reverse proxy can do this natively, so it is probably just a matter of us deploying squid or maybe a more cloud native caching proxy like it.