Amazon interview question

How to control concurrency in web application