Netty vs Apache MINA

前端 未结 7 1310
既然无缘
既然无缘 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:45

    I've only ever used MINA to build a small http like server. The biggest problems I've run into with it so far:

    1. It will hold your "request" and "response" in memory. This is only an issue because the protocol I choose to use is http. You could use your own protocol however to get around this.
    2. No option to provide a stream off disk in case you want to serve up large files. Again can be worked around by implementing your own protocol

    Nice things about it:

    1. Can handle a lot of connections
    2. If you choose to implement some sort of distributed work system then knowing when one of your nodes goes down and loses connection is useful for restarting the work on another node.
    0 讨论(0)
提交回复
热议问题