Re:Ask HN: What equivalents of Erlang/OTP exist for other la...
by pron on Saturday July 18, 2015 @11:44PM
(#9909982)
> for example, there will be a separate EventBus for each classloader
Not if you leave the message classes alone.
> Do you know of any frameworks that would make the idea easier to implement?
No, just careful design (JRebel is for development rather than production, as I understand, but I could be wrong) Tooting my own horn (again) but Quasar does hot code swapping for actors (including state preservation)[1]. This is possible (as it is in Erlang) because actors encapsulate their own state.
[1]: http://docs.paralleluniverse.co/quasar/#hot-code-swapping
Re:Ask HN: What equivalents of Erlang/OTP exist for other la...
by icebraining on Saturday July 18, 2015 @04:23PM
(#9908766)
I think the most commonly used framework is JRebel: http://zeroturnaround.com/software/jrebel/
According to the FAQ, it doesn't create multiple class loaders, it just extends the exiting ones.
It's a neat idea though. Do you know of any frameworks that would make the idea easier to implement? It sounds loosely similar to the Unix availability concept of passing off the listening socket to a new instance of the process, while allowing the old processes to linger until they finish serving their requests.
All other things equal, I favor architectural approaches where I can take any machine offline safely and effortlessly since I tend to need to handle that case anyway for availability reasons.