1. 1.11 Distributed-System Communicationhistorical

    After a monolith is split into subsystems, they must communicate to deliver a service together. These notes compare synchronous calls, asynchronous communication, and related implementations.

  2. 1.12 Distributed-System Service Statehistorical

    State consists of program context or data. Requests to a stateful service may need the same node; these notes use this distinction to compare stateful and stateless services.

  3. 1.13 Distributed-System Upgrade and Rollbackhistorical

    Distributed services have multiple instances that must be replaced during releases and rolled back when problems occur. These notes compare deployment and rollback strategies.

  4. 1.14 Distributed-System Failureshistorical

    Node failures and network outages can disrupt distributed systems. These notes organize responses such as failover and fault tolerance and their effects on callers.

  5. 1.15 Distributed-System Node Communicationhistorical

    Distributed nodes exchange metadata such as leader-follower relationships and data placement. These notes organize node discovery, communication, and information propagation.

  6. 2. Distributed Transactionshistorical

    Distributed transactions span multiple database nodes and may involve other data sources such as Redis or MongoDB. These notes organize coordination approaches for cross-node operations.

  7. 2.1 Distributed Transaction Solution: 2PChistorical

    Two-phase commit asks databases to prepare, then commits or rolls back according to the participants' responses. These notes also discuss its use cases and problems.

  8. 2.2 Distributed Transaction Solution: TCChistorical

    TCC first uses Try to check a business operation and reserve resources, then invokes Confirm or Cancel according to the outcome.

  9. 2.3 Distributed Transaction Solution: Reliable-Message Eventual Consistencyhistorical

    Reliable messaging coordinates local transactions across services toward eventual consistency. These notes introduce local message tables and transactional messages through the process diagram.

  10. 2.4 Distributed Transaction Solution: Best-Effort Notificationhistorical

    Best-effort notification is an eventual-consistency transaction approach. These notes use process diagrams to examine notifications, queries, retries, and usage scenarios.