Theory and applications of state machine replication in distributed databases | Synapse