码迷,mamicode.com
首页 > Web开发 > 详细

Netty

时间:2015-04-17 07:05:27      阅读:212      评论:0      收藏:0      [点我收藏+]

标签:

Netty简介:

  Netty是由JBOSS提供的一个java开源框架。Netty提供异步的、事件驱动的网络应用程序框架和工具,用以快速开发高性能、高可靠性的网络服务器客户端程序。
  Netty 是一个基于NIO的客户,服务器端编程框架,使用Netty 可以确保你快速和简单的开发出一个网络应用,例如实现了某种协议的客户,服务端应用。Netty相当简化和流线化了网络应用的编程开发过程,例如,TCP和UDP的socket服务开发。

新特性:

  • 处理大容量数据流更简单
  • 处理协议编码和单元测试更简单
  • I/O超时和idle状态检测
  • 应用程序的关闭更简单,更安全更
  • 可靠的OutOfMemoryError预防

新的传输方式:处理大容量数据流更简单

  • 基于BIO和NIO的UDP传输
  • 本地传输(又名 in-VM传输)
  • HTTP通道,可绕过防火墙

新的编码器:

  • HTTP客户端和服务器端
  • 用于实现各种专有协议的工具

其他技术整合:

  • Google Protocol Buffers
  • JBoss Microcontainer, OSGi, Guice以及Spring
 

Netty Home 

  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.

  ‘Quick and easy‘ doesn‘t mean that a resulting application will suffer from a maintainability or a performance issue. Netty has been designed carefully with the experiences earned from the implementation of a lot of protocols such as FTP, SMTP, HTTP, and various binary and text-based legacy protocols. As a result, Netty has succeeded to find a way to achieve ease of development, performance, stability, and flexibility without a compromise.

Features

Design

  • 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)

Ease of use

  • Well-documented Javadoc, user guide and examples
  • No additional dependencies, JDK 5 (Netty 3.x) or 6 (Netty 4.x) is enough

Performance

  • Better throughput, lower latency
  • Less resource consumption
  • Minimized unnecessary memory copy

Security

  • Complete SSL/TLS and StartTLS support

Community

  • Release early, release often
  • The author has been writing similar frameworks since 2003 and he still finds your feed back precious!

 

 

参考链接:

  1. Netty project:http://netty.io/
  2. 深入浅出Netty:http://wenku.baidu.com/view/7765bc2db4daa58da0114a4c.html
文章导读:
1
Netty是什么? 2 Netty的架构 3 Netty的特性 4 Netty的使用 5 Netty源码分析 6 Netty事件驱动模型 7 Netty Pipeline流处理 8 Netty 通用通信API 9 Netty Zero-Copy-Capable Buffer 10 Netty数据流分析 11 Netty VS Mina

 

Netty

标签:

原文地址:http://www.cnblogs.com/xymqx/p/4433806.html

(0)
(0)
   
举报
评论 一句话评论(0
登录后才能评论!
© 2014 mamicode.com 版权所有  联系我们:gaon5@hotmail.com
迷上了代码!