←back to thread

192 points lightlyused | 1 comments | | HN request time: 0s | source
Show context
emdanielsen ◴[] No.41881733[source]
This is so cool! I'm so surprised I've never heard of someone doing this before :)
replies(2): >>41882853 #>>41883749 #
mbrizic ◴[] No.41883749[source]
I did something very similar a while back: https://mbrizic.com/blog/solarhosting/
replies(1): >>41887212 #
bantunes ◴[] No.41887212[source]
What did you use to differentiate green from (I'm guessing) blue links when it's down?
replies(1): >>41887525 #
1. mbrizic ◴[] No.41887525[source]
Each color is a different build running on a different server. And then a load balancer picks which server you'll end up on.

Code-wise, the only difference between the builds is the CSS setting the link color.