I&#x27;ve written something similar for PostgreSQL using Paxos: <a href="https:&#x2F;&#x2F;github.com&#x2F;citusdata&#x2F;pg_paxos" rel="nofollow">https:&#x2F;&#x2F;github.com&#x2F;citusdata&#x2F;pg_paxos</a> . It can replicate tables across a set of PostgreSQL servers.<p>pg_paxos is an extension that uses PostgreSQL&#x27;s query execution hooks so it doesn&#x27;t require any external components. An advantage of pg_paxos is that you can do reads and writes on any node. Would love to know what people think and whether it&#x27;s something you would use (if rigorously tested). Small warning: it replicates SQL queries and doesn&#x27;t stop you from using volatile functions like now() yet, which would give inconsistent results.<p>A possible application is a reliable cron service. Each cron node tries to add an entry to a replicated locks table with the same primary key on any of the PostgreSQL nodes. Only one will succeed and then runs the cron job.<p>Some more details in these slides: <a href="http:&#x2F;&#x2F;www.p2d2.cz&#x2F;files&#x2F;pg_paxos.pdf" rel="nofollow">http:&#x2F;&#x2F;www.p2d2.cz&#x2F;files&#x2F;pg_paxos.pdf</a>