I have a project actually running on Symfony 3.4, and I use AWS RDS Master/Slaves config on a MySQL database.
Sometimes during the day, I have the replication lag increasing for short period. I would like to know if there was a smart way to disable reads from a replica who have over, let's said 5 minutes, of replication lag.
Let me know if you need more information, and thank you in advance!