Amazon Interview Question

How to control concurrency in web application