Omise interview question

How do you solve DB concurrency issues?