What happens if a server receives more requests than it can handle?

白昼怎懂夜的黑 提交于 2019-12-13 03:26:35

问题


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.

来源:https://stackoverflow.com/questions/56389404/what-happens-if-a-server-receives-more-requests-than-it-can-handle

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!