Netty2 1.8 RELEASED: Event-Driven Nio Framework

xiaoxiao2021-03-06  47

Netty 2 provides an easy event-based API (like Swing) to develop high-performance, maintainable TCP / IP server / client application. Netty provides many essential features such as readiness selection, thread pooling, write buffer DoS prevention, and buffer reuse which are required to build high- performance and capacity network applications.In this release, users can catch internal or uncaught exceptions setting his or her custom ExceptionMonitor implementation and can set timeout for Session.write () to avoid deadlocks when maxQueuedWriteCount is set.Netty 2's interesting features are: (Please request me if there should be more) * Event-based API: Netty handles all low level I / O call * Separation of message format and workflow * Protocol messages are represented as classes: Protocol implementation in object-oriented Way! O Polymorphism Enables 'Pluggable Protocol'. o Inheritance Enables 'Message Part Hierarchy'. * Java Nio: Better Scalability * Built-in T read pool: o I / O and event processing threads are separated o All thread priorities are configurable * Direct byte buffer pooling:.. No direct buffer allocation overhead * Customizable event dispatcher: Flexible thread scheduling * 'Write buffer full'

转载请注明原文地址:https://www.9cbs.com/read-86865.html

New Post(0)