Causes and Workarounds for Slave Performance Too Slow with Row-Based Events

Recently I worked on one customer issue that I would describe as “slave performance too slow”. During a quick analysis, I’ve found that the replication slave SQL thread cannot keep up while processing row-based events from the master’s binary log.
For example:
Slave thread example
MySQL
mysql> SHOW SLAVE STATUSG
*************************** 1. row ***************************
[…]