<div dir="ltr"><br><blockquote class="gmail_quote" style="margin: 0;margin-left: 0.8ex;border-left: 1px #ccc solid;padding-left: 1ex;">Well, not the most performant, but serializing all db access through one gen_server process
<br>should be the simplest solution.
<br></blockquote><div><br></div><div>Yes, this was the first thing I thought about, but it still does not guarantee consistency in case of a sudden node crash</div><div> </div><div><br></div><blockquote class="gmail_quote" style="margin: 0;margin-left: 0.8ex;border-left: 1px #ccc solid;padding-left: 1ex;"><div>Have you looked at the global module? Specifically <span style="font-size: 12pt; ">global:trans</span></div><div><span style="font-size: 12pt; "><br></span></div></blockquote><div>This was the second thing i thought, I didn't know about this function and wrote its' analog again myself. But again, it does not guarantee consistency in case of node crash</div></div>