This is in relation to the ongoing discussion in my previous Question
One of issues being discussed was the amount of work needed to distributed algorithms in Erlang using Message Passing vs. Shared state. My viewpoint is that implementing distributed leader election using a shared state (perhaps a Record in DB) is easier than designing an algorithm that is robust to loss of messages. Isn't it?
The problem with implementing message passing based algorithms is that we must either make the distributed algorithm robust to loss of messages or somehow make sure that messages are always delivered even if multiple attempts are required. Of course, distributed leader election is a well-known problem and I think a robust message passing algorithm already exists (may be nancy lynch's book gives it), but I am just taking this problem as an example to drive a point.
Thanks!