← All Learning Paths

Database Replication Engineer

Keep replicas consistent and promote safely: leader election, quorum, split-brain, failover drills, lag checks, and replica routing.

roleadvanced8 nodes14.92h total

Path overview

This path is generated from the curated resource graph.

  1. Follow "Run a Database Failover Drill" and record "The baseline is stored and the replica is caught up within the acceptable lag." at the step where it should appear, using "Record the baseline: Capture replication lag, current primary, connection counts, and a" as the check.

    Completion criteria: Attach a checklist of "Run a Database Failover Drill"'s steps with the observed state after each one and the verification result from "Record the baseline: Capture replication lag, current primary, connection counts, and a".

    Next step: Run a Multi-Region Failover Drill

    ⏱ 1.5h

  2. Carry out "Run a Multi-Region Failover Drill" on a database replication engineer project, pausing at the "Measure the real recovery time and data loss window when a region fails, and prove that" step to verify "The baseline is stored and the secondary is within the allowed replication lag.".

    Prerequisites: Run a Database Failover Drill

    Completion criteria: Produce a run log for "Run a Multi-Region Failover Drill" that ends at "Measure the real recovery time and data loss window when a region fails, and prove that" and mark every step where "The baseline is stored and the secondary is within the allowed replication lag." was checked.

    Next step: Gate Reads on Replica Lag

    ⏱ 2h

  3. Execute "Gate Reads on Replica Lag" end to end, then repeat the last step with one parameter changed and compare "Prevent stale reads by checking replica lag before routing, and fall back to the primary".

    Prerequisites: Run a Multi-Region Failover Drill

    Completion criteria: Run the steps through "Prevent stale reads by checking replica lag before routing, and fall back to the primary", paste the command output, and mark the line that matches "lag_ms between roughly 5 and 50 on a healthy replica, with caught_up true."; then rerun with one parameter changed.

    Next step: Route Read Queries to a PostgreSQL Replica Safely

    ⏱ 0.5h

  4. Run "Add primary and replica routing for PostgreSQL queries while keeping writes, transactions," from "Route Read Queries to a PostgreSQL Replica Safely" and confirm the documented result "The primary returns f, the replica returns t, and the replication row shows state streaming".

    Prerequisites: Gate Reads on Replica Lag

    Completion criteria: Deliver a transcript of "Route Read Queries to a PostgreSQL Replica Safely" with each step's command and observed state, ending at "Add primary and replica routing for PostgreSQL queries while keeping writes, transactions,".

    Next step: Adopt Quorum Queues for Durable Messaging

    ⏱ 1h

  5. Apply "Adopt Quorum Queues for Durable Messaging" to a database replication engineer task, checking that "The queue replicates via raft on several nodes." appears after the "Migrate a critical queue to a quorum queue and configure delivery limits and expiry." step.

    Prerequisites: Route Read Queries to a PostgreSQL Replica Safely

    Completion criteria: Run "Adopt Quorum Queues for Durable Messaging" twice — once as written and once with a changed input — and attach both transcripts with the observed difference.

    Next step: Implement Leader Election with Leases

    ⏱ 1h

  6. Execute "Implement Leader Election with Leases" end to end, then repeat the last step with one parameter changed and compare "Add leader election so scheduled work runs on exactly one instance without a fixed".

    Prerequisites: Adopt Quorum Queues for Durable Messaging

    Completion criteria: Run the steps through "Add leader election so scheduled work runs on exactly one instance without a fixed", paste the command output, and mark the line that matches "At most one instance sees itself as leader."; then rerun with one parameter changed.

    Next step: Measure Replica Lag from Sequence Gaps

    ⏱ 1h

  7. Build "Measure Replica Lag from Sequence Gaps" for database replication engineer code and verify {maxLagSeconds:1,lagging:[]} against both samples.

    Completion criteria: Show the test run for "Measure Replica Lag from Sequence Gaps" with two passing samples and one deliberately failing input, with the expected error.

    Next step: Capstone: Database Replication Engineer

    ⏱ 0.42h

  8. Build "Build a WAL Replication Manager" through its phases, keeping "Checkpoint store" independently testable.

    Prerequisites: Measure Replica Lag from Sequence Gaps

    Completion criteria: Run the project's test command for "Build a WAL Replication Manager", paste the passing output, and attach the acceptance note for "Checkpoint store" with the test name.

    Next step: Run the capstone's tests, publish the repository, and demo it to a reviewer.

    ⏱ 4h