For distributed systems, the main idea is a centralized write ordering journal that is replayed by individual nodes.
Multiple systems write sequentially to the central journal. The journal is simply taking requests like a key value store. The journal is replicated to all the nodes. The nodes read from the journal and performs the complex logic requested.