[erlang-questions] Desing of MVC models

Dmitry Kolesnikov <>
Fri Sep 13 13:01:55 CEST 2013


Hello,

On Sep 13, 2013, at 12:59 PM, Jesper Louis Andersen <> wrote:

> In Erlang, you have options. Safety is had due to isolation, so you don't have to push data onto stable storage as often. And you can quickly communicate in the same memory space between processes, so you don't need a mediating DB layer.

This is precisely true… However, if we are talking about MMO gaming I see one potential issue which requires some clarification. Often, the data availability is important. Player would not forgive you if they "almost" win the battle but they status rolled back due to server crash or other failure that impact your "live" data. 

What would be possibilities to achive desired HA for transient data in Erlang and recover node failures. HA is required for millions of processes (e.g. process per user, process per ship, etc). 

 * Keep copies of same data on two distinct nodes. Basically you spawn two "ship" management processes on node A and B. However, you as app developer is responsible to implement state conflict resolution, rollback, recovery, etc.  

 * Use Mnesia, Riak as HA transient storage but this does not differ for my taste as any other mediating DB layer at some respect.   
  
 * Use external DB layer but make asynchronous checkpoint of process status 

Did I miss something?

Best Regards, 
Dmitry
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://erlang.org/pipermail/erlang-questions/attachments/20130913/62af73c9/attachment.html>


More information about the erlang-questions mailing list