I have a chat app made in node/socket.io. Scalability factors have made us choose Erlang/Ejabberd/xmpp and it will replace node/socket.

I am still a very naive Erlang programmer.I have a few questions:

1.Currently using MySql for chat storage.Best alternative considering scaling and consistency as major factor? Reason why I am switching : a row for single message is not the best thing to do,but since i am using mysql I am not left with any other option.Growing userbase doesn't help either.

2.how to send my chat msgs from javascript to my erlang code for storing/processing? Node/socket event handler made my job easy.How will server and client interact in this scenario?

can any body share some ideas?

Related posts

Recent Viewed