What happens if a server receives more requests th

2019-08-17 16:27发布

问题:

Say we have a server which can serve only 4 HttpRequests at max at a time.

  1. If 10 Http requests come, what will happen? What are the various options?
  2. Will the new requests be abandoned or kept in waiting ?
  3. Is this configurable? Is this dependent on the framework?
  4. If they are kept in waiting, where are those requests stored?
  5. Does load balancer take care of it?
  6. Does the developer need to take care of this in his code by building some queue?

    These questions were asked to me in an interview recently.