Atitit. Software Development--socket Framework selection--netty vs Mina J

Source: Internet
Author: User

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

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.