4 ms·
I'm interested in hearing more. I've been looking into erlang on and off for nearly 14 years now. I think the language is really neat. But the self-healing s
by Verdex 5y ago
I'm interested in hearing more.
I've been looking into erlang on and off for nearly 14 years now. I think the language is really neat. But the self-healing supervisor tree thing is something that I've yet to get my head wrapped around.
Like ... if you have some code that's like "X / 0" then it seems like it's not going to matter how many times you restart the process.
- macintux 5y agoThe general strategy is to test the system to the point where any bug like that is an edge case, some weird input you didn’t expect. So every time you get that input you’ll still crash, but other transactions will continue normally. Hopefully that input is either due to a transitory glitch like a bit flipped in RAM, or a user who isn’t bored enough to keep submitting it, but either way the process isolation means all your other jobs can continue.