I have 2 instances of MySQL databases and they are being handled by Load Balancer. Now Spring application contacts load balancer with great amount of requests. Some transactions are locking one row in database (exclusive). In some occasions deadlock occurs when I send for example 100 requests in 1 second. Does anybody know what can cause that deadlock? Of course deadlock occurs only when I send the same request that locks same row in database.
This is how system looks now.