erljs icon indicating copy to clipboard operation
erljs copied to clipboard

Crazy Idea

Open Licenser opened this issue 14 years ago • 2 comments

How about using web sockets to pass messages between browser VM's and Erlang VM's? Of cause it would mean you'd need to have some kind of gateway process to handle web socket connections but think about the applications: You have a calculation heavy website and the more people connect the more workers you can spawn ^^

Licenser avatar Dec 02 '11 10:12 Licenser

Yes, I have already some code for this functionality. It is not crazy, it makes message passing extremely simple. It is implemented exactly as you said, there is gateway process(es) on BEAM VM on server, and it actually translates all Pids on the fly, so it is transparent for both sides! I just need to clean it up, and also make sure that it still works if I have load ballanced HTTP backed, or when reconnection will take place (including handling of links beetween processes, and monitoring processes and nodes).

baryluk avatar Dec 03 '11 16:12 baryluk

awesome :)

Licenser avatar Dec 06 '11 20:12 Licenser