Postgres streaming replication: primary streams WAL records to replicas. Replicas apply them. If apply rate < write rate, lag (measured as bytes or time behind) grows.
Watch pg_stat_replication.replay_lag. Common causes of lag: replica I/O bottleneck,
long replica queries blocking apply (with hot_standby_feedback), network saturation.