News for hackers. Stuff that matters.
Re:Get to Know the Actor Model with JavaScript by sprt on Wednesday September 06, 2017 @04:55AM (#15182149)
What happens when the process is bound to fail on start? (eg. trying to bind a port that's already being used) Never used that model so I'm curious.
Re:Get to Know the Actor Model with JavaScript by mercer on Wednesday September 06, 2017 @10:02AM (#15183713)
It depends on how you set things up, but one possible approach is that the supervisor, after a few retries, would also shut down, which would trigger the supervisor above that to restart the whole thing with a different port. This wouldn't make sense, probably, but maybe it illustrates how you can go about these things.
Re:Get to Know the Actor Model with JavaScript by zzzcpan on Wednesday September 06, 2017 @08:19AM (#15183011)
If it fails on start you try again and again until it succeeds. There is a submission on the front page that dives in into this: https://news.ycombinator.com/item?id=15182626