One thread per client. Doable?

后端 未结 10 1762
走了就别回头了
走了就别回头了 2020-12-15 18:43

I\'m writing a Java server which uses plain sockets to accept connections from clients. I\'m using the fairly simple model where each connection has its own thread reading f

10条回答
  •  青春惊慌失措
    2020-12-15 19:23

    Try Netty.

    the "one thread per request" model is the way most Java app servers are written. Your implementation can scale as well as they do.

提交回复
热议问题