1 min readAug 30, 2020
Very Good point. Since there is a replication lag between the Write and read replicas, this method is not recommended for the transactions that happen in two different entity manager. One solution is to have a distributed locking mechanism (Ex: Redis) to guaranty the data availability between the replicas.