Vote for the best protocol for the given scenario

后端 未结 9 2182
时光取名叫无心
时光取名叫无心 2021-02-08 22:04

I have a design decision to make. I need your advice.

Requirements:

  • A server and a client. client is typically a mobile phone.
  • Connected through t
9条回答
  •  有刺的猬
    2021-02-08 22:31

    I'd recommend option 3, and don't worry about the threading issues. If you are hosting this in a servlet container, the container will almost certainly make use of thread pools to optimize the processing of incoming requests and control the number of threads in the application.

    Also HTTP/1.1 supports pipeline and reuse of connections for subsequent requests. This reduces the burden on the server for setting up and tearing down connections.

提交回复
热议问题