InfoQ

InfoQ

News

My Bookmarks

Login or Register to enable bookmarks for unlimited time.

The content has been bookmarked!

There was an error bookmarking this content! Please retry.

JBoss Netty 3.1 Released

Posted by Craig Wickesser on Aug 02, 2009

Sections
Operations & Infrastructure,
Process & Practices,
Development,
Architecture & Design
Topics
Release ,
Performance & Scalability ,
Java

Netty 3.1.0 was recently released by the JBoss Community and is another option when writing client/server network applications. Netty is self-described as,

an asynchronous event-driven network application framework and tools for rapid development of maintainable high performance and high scalability protocol servers and clients. In other words, 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.

As far as categorizing Netty, it falls in the same arena as Apache Mina and Grizzly. This latest release includes a host of features and enhancements to performance and API usability. Some of the features include:

The HTTP Tunneling feature was just one of the highly requested features and was briefly summarized in an earlier set of release notes,

HTTP Tunneling Transport (in org.jboss.netty.channel.socket.http) is a socket transport which allows any existing socket applications to be proxied over HTTP. This transport is particularly useful when you need to bypass a firewall without modifying an existing server application. To illustrate how this works, it looks like the following:

HttpTunnelingClientSocketChannel --> HTTP-friendly Firewall --> Servlet Container (e.g. Tomcat, Jetty) --> HttpTunnelingServlet --> Your Server Application

Of course when selecting a framework for developing network applications performance and scalability can be major factors in the final decision. The Netty team has performance information available from their site. You can also find performance information on the Apache Mina site. Lastly, Nicholas Hagen posted a series of blog posts describing his exploration into choosing Mina, Grizzly or Netty. At the end he decides to choose Netty but closes with the following statement:

Overall, I have come to prefer Netty over both Mina and Grizzly for performance, memory, and feature usage. Note that you should undergo your own analysis to decide which library suits your requirements.

The next version of Netty, 3.2.0, is under development with the road map both viewable and editable by the community.

Related Sponsor

In today’s hyper-competitive world, later may be too late to adopt Agile development and this Roadmap for Success will help you get started. Download "Agile Development: A Manager's Roadmap for Success" now!

No comments

Watch Thread Reply

Educational Content

Jesper Boeg on Priming Kanban

In this interview, Jesper Boeg, author of the new InfoQ book – Priming Kanban, discusses the keys to using Kanban effectively, and how to get started if you are currently using other approaches.

New-age Transactional Systems - Not Your Grandpa's OLTP

John Hugg discusses high volume transaction processing applications with high and low frequency profiles, and how VoltDB can be used for that purpose.

Cool Code

Kevlin Henney examines code samples to see what can be learned from them starting from the premise that one won’t write great code unless he knows how to read it.

Collaboration: At the Extremities of Extreme

Jason Ayers share the observations he made watching a team of developers collaborating in real time on the same code base, pushing XP, pair programming and continuous integration to their extremes.

Yesod Web Framework

Michael Snoyman presents Yesod, a web framework written in Haskell and containing a web server, templating, ORM, libraries (templating, gravatar, etc.).

Transactions without Transactions

Richard Kreuter and Kyle Banker on how to avoid classical RDBMS transactional systems by using compensation mechanisms, transactional messaging or transactional procedures.

Attila Szegedi on JVM and GC Performance Tuning at Twitter

Attila Szegedi talks about performance tuning Java and Scala programs at Twitter: how to approach GC problems, the importance of asynchronous I/O, when to use MySQL/Cassandra/Redis, and much more.

10 tips on how to prevent business value risk

One category of risk that project teams need to ensure they address is business value failure – delivering a product that fails to provide value for the business investor.