Outline: (1) why a cluster and what it does not solve; (2) the WAL and streaming replication; (3) async × sync, CAP; (4) architecture and failover, by hand × automated, split brain; (5) Docker Compose: files, the role of each node, start, check; (6) Replication: experiments 1–6; (7) Failover: planned, lost write, consensus, connecting the platform; (8) the simulator.
The page's sequence diagram "Asynchronous or synchronous?" shows the same two paths step by step.
The same flow plays step by step on the Docker Compose page, in "How it works".
The page draws the same fork as a step-by-step diagram in "Unplanned failover: a lost write".