Omise Interview Question

How do you solve DB concurrency issues?