DGen - A distributed GenServer

There is no such a dichotomy in there.

The error might be provoked by wrong message sent to the process, not by the project inner state in the first place. In such a case it makes total sense to restart preserving the latest state.

The error might be provoked by a wrong state+message combination.

Andalso, the error might be provoked by the wrong state indeed, but the previous state was all right and it might make sense to rollback to this “previous” state rather than to the point blank one.

2 Likes