Netty vs Apache MINA

前端 未结 7 1352
既然无缘
既然无缘 2020-11-27 09:02

They both provide roughly the same functionality. Which one should I choose to develop my high-performance TCP server? What are the pros & cons?

Reference links:

7条回答
  •  悲哀的现实
    2020-11-27 09:27

    In Netty site you can find some performance reports. As expected :-) they point out Netty as the framework with the best performance.

    I never used Netty, but I already used MINA to implement a TCP protocol. The implementation of encoding and decoding was easy, but the implementation of the state machine was not so easy. MINA provides some classes to aid you when implementing the state machine, but I found them kind of hard to use. In the end we decided to ditch MINA and implement the protocol from scratch, and surprisingly we ended with a faster server.

提交回复
热议问题