Concurrency · Real-world situation · Experienced
Deadlock between app lock and database lock
Your service sometimes hangs because one thread holds an in-memory lock and waits for a database row lock, while another holds the row lock and waits for the in-memory lock. How do you fix it?
2:00