- 官方地址:https://netty.io/
- Netty is an asynchronous event-driven network application framework
for rapid development of maintainable high performance protocol servers & clients. - Netty is a NIO client server framework which enables quick and easy development of network applications such as protocol servers and clients. It greatly simplifies and streamlines network programming such as TCP and UDP socket server。
-
设计
-
Unified API for various transport types - blocking and non-blocking socket
-
Based on a flexible and extensible event model which allows clear separation of concerns
- Highly customizable thread model - single thread, one or more thread pools such as SEDA
- True connectionless datagram socket support (since 3.1)
-
Performance
- Better throughput, lower latency
- Less resource consumption
- Minimized unnecessary memory copy