It falls behind
The usual cause is one big transaction or one long ALTER. The primary ran it in parallel with everything else, but the replica has to apply it as a unit. MySQL applies transactions in parallel since 8.0.27 (replica_parallel_workers defaults to 4), but one huge transaction is still one transaction. On a PostgreSQL standby, a long report query can also hold back replay: with max_standby_streaming_delay set high, replay waits for the query. Set it low, and the query gets cancelled instead. You choose which one loses.
MySQL stops on error 1062 or 1032
A duplicate key (1062) or a row that is not there (1032) means the replica's data is already different from the source. Someone wrote to the replica directly, or a past skip left it drifted. The tempting fix is to skip the event and move on. Do not make that a habit: every skip makes the drift bigger and invisible. Find out how it drifted (check super_read_only), measure it with pt-table-checksum, and if it is more than one row, rebuild the replica with a clone.
Errant transactions
A write made directly on a MySQL replica gets that replica's own GTID, which the source never had. Nothing breaks until failover. Then the new primary tries to send that transaction to the others, or refuses to join. Check for it before you ever need it, with the query in the next box. An empty result is healthy.
A dead replica fills the primary's disk
A PostgreSQL replication slot promises to keep WAL until the replica reads it. If the replica is gone, the slot keeps that promise forever, and the primary's disk fills with WAL. Set max_slot_wal_keep_size (PostgreSQL 13+) so a dead slot is invalidated instead of taking down the primary. Then alert on inactive slots, and drop slots for replicas you have retired.
The log it needs is already gone
PostgreSQL without a slot or an archive says "requested WAL segment has already been removed". MongoDB says the member is too stale, because it fell off the end of the oplog. Either way the replica cannot catch up from the log any more and must be rebuilt. The prevention is the same in both: keep enough log to cover your worst outage. In PostgreSQL that means a WAL archive. In MongoDB, check the oplog window shown by rs.printReplicationInfo() and grow it with replSetResizeOplog if it is shorter than a long weekend.
-- MySQL, on a replica: transactions the source never had (empty is healthy)
SELECT GTID_SUBTRACT(@@GLOBAL.gtid_executed, '<paste the source gtid_executed here>') AS errant;