Ali Netty knowledge and know how much you

 

Foreword

Netty is a rapid development of network applications NIO framework that greatly simplifies network programming TCP or UDP server. Netty simple and rapid development does not mean that the program will lose its development maintainability or a performance issue, it's designed with reference to implement many protocols, such as FTP, SMTP, HTTP, and various binary and text-based tradition protocol, Netty successful realization of the right mix of rapid development, performance, stability, flexibility as a whole, do not need to consider one reason to compromise other aspects. Netty is quite a wide range of applications, such as Ali Baba open source Dubbo and Sofa-Bolt framework underlying network communication is implemented based on Netty.

In this article said learning problems and interview questions about netty to learn how to say it's a high-performance netty frame and a number of important points!

Netty basis of relevant issues

Netty's talk about features?

BIO, NIO and AIO difference?

What is the composition of NIO?

How to use Java NIO build a simple client and server network communication?

Netty how to build a simple client and server network communication?

Netty talk about the underlying operating with Java NIO operation correspondence relationship?

What is the relationship with Socket Channel, Channel and EventLoop What is the relationship, Channel and ChannelPipeline What is the relationship?

EventLoop and EventLoopGroup What is the relationship?

Netty what to talk about several important objects, what the relationship between them?

What Netty threading model?

Half a pack with stick package delimiters and related issues

What is the stick pack and half a pack a problem?

Why stick package and there will be half a pack?

How to avoid sticky bag and half a pack a problem?

How to use fixed-length packets FixedLengthFrameDecoder stick package to solve the problem and half a pack? What is the principle?

How to use the package to solve the stick package delimiter DelimiterBasedFrameDecoder and half a pack a problem? What is the principle?

Dubbo using Netty time as a network communications package and how to avoid sticking half a pack a problem?

Netty framework exists package stick package half the problem itself?

When do I need to consider sticking with the pack half a pack a problem?

WebSocket protocol development-related issues

Talk about how to achieve long WebSocket connection?

Talk about understanding WebSocket frame structure?

Browser, the server supports the case for the WebSocket

How to receive and send information about the wide use WebSocket?

How to use WebSocket receive and transmit binary information?

Netty source code analysis related problems

How to initialize the server?

When accepting client requests?

When registered and registered to the accepting Socket Selector EventLoop management of the corresponding?

How to initialize a client?

When to create DefaultChannelPipeline?

Netty talk about zero copy?

Learning how to properly frame Netty

To understand the underlying framework of principles to master is the most common principle. Auxiliary frame is part of the code has been completed we developed helped us achieve some functions we grasp the main principle is actually inside the frame, which is the framework for some of the provisions of our internal requirements, with these provisions can be efficiently the development of our code, in accordance with the provisions will be greatly improved efficiency. In fact, a lot of times we do not pay attention to these things, a function can be achieved in many ways, but we follow the framework for us to achieve a prescribed rule, then we should be more correct option. Therefore, a systematic study Netty framework to share knowledge mind map to a friend in need, hoping to help you!

 

 

Guess you like

Origin www.cnblogs.com/shoshana-kong/p/11228610.html