Hacker Newsnew | past | comments | ask | show | jobs | submitlogin

erlang has a code_change function in the otp that allows the gen_server to update its current state and start using new code. No connections need be broken with clients, no long running processes need be stopped. Just updated in place.

It's not just a routing change.

https://www.erlang.org/docs/24/man/gen_server



It's a routing change in a sense that gen_server is routing function calls to the new module definition. I know about gen_server and code_change, the point was that conceptually the same mechanism, just on a different level of abstraction.


Routing in progress connections to a new module seems a rather different thing to me than merely routing new ones.




Guidelines | FAQ | Lists | API | Security | Legal | Apply to YC | Contact

Search: