Main Content

Netty project

Netty

Documentation

The Netty project is not part of JBoss.org anymore, and moved to http://netty.io/.

Get started with the user guide and the API reference below. Also, feel free to join the community to get more information.


Examples

There are several examples to help your experience with Netty. It is recommended to start from the first one and to finish to the last one.

Fundamental
  • Echo - the very basic client and server
  • Discard - prevent OutOfMemoryError which is caused by writing too fast
  • UpTime - implement reliable client-side reconnection
Text protocols
  • Telnet - a classic line-based network application
  • Quote of the Moment - broadcast UDP/IP client and server
  • SecureChat - an SSL-based chat server derived from the Telnet example
Binary protocols
  • ObjectEcho - exchange serializable Java objects
  • Factorial - write a stateful client / server based on custom binary protocol
HTTP
Cool stuff
Advanced

         

Testimonial

Netty proved instrumental in the architecture of a replacement of an existing high-speed server that parses and caches live streaming quotes. Under stress tests, the new server could parse and store in excess of 260,000 quotes/sec, a figure not remotely possible with blocking I/O. Netty's well-documented API, excellent examples and first-class support made development a pleasure and unlocked the power of Java NIO. It is, hands-down, my first choice for a networking library.
Greg Haines Ned Davis Research, Inc.

Desktop wallpaper | Project Swag