Introduction to the Netty concept

Source: Internet
Author: User

Netty is a high-performance, asynchronous event-driven NIO framework that provides support for TCP, UDP, and file transfer, and as an asynchronous NIO framework, Netty All IO operations are asynchronous and non-blocking, through the future-listener mechanism, The user can take the initiative to obtain or obtain the IO operation result by the notification mechanism conveniently.

Can be summed up as: (1) is jboss a jar package; (2) Objective: To quickly develop high-performance, highly reliable network server and client programs, (3) Advantages: To provide asynchronous, event-driven Network application framework and tools.

Similar products are: Mina,grizzly

Characteristics of Netty
Design a unified API, suitable for different protocols (blocking and non-blocking) a highly customizable threading model based on flexible, scalable event-driven models reliable connectionless data socket support (UDP) performance better throughput, low latency, more provincial resources minimizing unnecessary memory copies secure complete ssl/ TLS and STARTTLS support can run well with applets and Android limitations no longer due to too fast, too slow, or hyper-load connections, OutOfMemoryError no longer have the problem of inconsistent reading and writing frequency of NIO in high speed network environment Easy-to-use Javadoc, User Guide and sample simple simplicity only rely on the application of JDK1.5 Netty 1.   Internet industry: After vertical architecture split, the system adopts distributed deployment, requiring remote service invocation between nodes, and the High-performance RPC framework is essential, Netty as an asynchronous high-performance communication framework, often used as the basic communication component by these RPC frameworks. Typical applications are: Ali Distributed Service Framework Dubbo RPC Framework uses Dubbo protocol to communicate between nodes, Dubbo protocol uses Netty as the basic communication component to implement the internal communication between each process node by default. Taobao's message middleware ROCKETMQ between the message producer and the message consumer, also uses Netty for high-performance, asynchronous communication. Gaming industry: The Java language has been used more and more widely, whether it is a hand tour service or a large network game. As a high-performance base communication component, Netty itself provides TCP/UDP and HTTP protocol stacks, which facilitates the customization and development of private protocol stacks. Account login server, Map server can easily through the Netty for high-performance communication. 2. Gaming industry: The Java language has been used more and more widely whether it is the service side of the hand or the large network game. As a high-performance base communication component, Netty itself provides TCP/UDP and HTTP protocol stacks, which facilitates the customization and development of private protocol stacks. Account login server, Map server can easily through the Netty for high-performance communication.

3. Large data areas: Classic Hadoop high-performance Communications and serialization components Avro RPC framework, by default Netty for cross node communication, its Netty Service based on the Netty Framework two encapsulation implementation. Large data computing often uses a number of compute nodes and A/N summary node for distributed deployment, there is a huge amount of data exchange between the nodes. Because the comprehensive performance of Netty is the highest in all mature NIO frameworks, it is often chosen to be used as communication between nodes of large data.
4. Enterprise software: Enterprise and IT integration needs Esb,netty support for multi-protocol, customization of private protocols, and high performance are the preferred communication components of the ESB RPC framework. In fact, many enterprise bus vendors will choose Netty as the basic communication component for enterprise IT integration.
5. Communications industry: The advantages of Netty asynchronous high-performance, high reliability and high maturity, so that it in the communications industry has been a large number of applications.

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.