Atitit. Software Development --socket Frame Selection --netty vs Mina J
.
Netty is a Java open-source framework provided by JBoss
Apache Mina
Third, document comparison
Mina documents more than,,, several times ...
Author:: Old Wow's paw attilax Ayron, email:[email protected]
Reprint please indicate source: Http://blog.csdn.net/attilax
Iv.UDP Protocol transmission
1, netty the UDP non-connected features exposed, and Mina to UDP Advanced level of abstraction, you can think of UDP as a " connection-oriented " protocol, Netty requires manual processing order, packet loss detection, re-sending, and so on.
V. Agreement support
Netty Architecture:
Mina Architecture
not found, but there should be similar technical support.
Online Evaluation:
1. Mina the connection between the kernel and some features is too close, so that users do not need these features can not be detached, compared to performance will be reduced;Netty solves this design problem.
2. Netty the basic architecture and the Mina are almost identical, using the same thinking, but there are a lot of details to improve (such as mina Iosession call Flip () every time you read and write , Netty 's channel is not used and supports zero copy ).
3. Netty is easier to use than Mina .
4.about theUDPLinks:MinaputTCPand theUDPlike when"have connection"the processing, aUDPThe request will followAddressto produce a newiosession, the expiration time is1minutes, the benefits of doing so are obvious, but for projects with performance requirements It's not good, for a disconnected thingCache 1minutes, most of the time may be whiteCache, did not work hard. MinaThis may also have a purpose of continuous decoding, such as a packet is too large, divided by two transmission, but the design should beUDPbig bogey.
Russia's conclusion::: or Mina
Reference
Netty understanding and small try-eggplant _2008-Blog Park
Working with JAVA netty Framework - story - iteye technology website
Netty vs Mina-java programming language Program Development technical Articles - Red and Black Alliance
Atitit. Software Development--socket Framework selection--netty vs Mina J