Recently in a Java interview I had a question for REST service.
The interviewer asked me to restrict REST service to serve only 100 request parallel for any user. If more than 100 requests arive then they should wait (any waiting response).
Any suggestions for this question, on how can we achieve to restrict our REST service ?