Netty - DefaultEventExecutorGroup feature of concurrent failure cases

In order to improve the performance, if the ChannelHandler implemented by the user contains complex business logic or may cause synchronous blocking, it is often necessary to enhance the concurrency capability through the thread pool. There are two strategies for adding the thread pool: user-defined th ...

Posted by jannoy on Thu, 20 Feb 2020 01:12:50 -0800

RPC - preparation phase

It is a technology that requests services from remote computer programs through the network without understanding the underlying network Complete RPC network call process Service consumer: call the client stub in the local call mode; What is a client stub? Even if the remote method is in the local simu ...

Posted by robman2100 on Sat, 15 Feb 2020 18:49:13 -0800

[Netty] decoder related: DelimiterBasedFrameDecoder

Article directory Preface Experimental code Follow up source code Inheritance relationship of DelimiterBasedFrameDecoder Property of DelimiterBasedFrameDecoder Analysis of construction method decode implementation Preface This section will take a look at the decoder that Netty provides to user ...

Posted by ATS16805 on Sat, 15 Feb 2020 06:11:08 -0800

Dubbo: Deep understanding of the core model of Dubbo Invoker

1. Introduction of Invoker in Dubbo Why is Invoker the core model of Dubbo? Invoker is an entity domain in Dubbo, that is, it really exists.Other models approach it or convert it, and it also represents an executable from which invoke calls can be made.At the service provider, Invoker is used to invoke the service provider class.On the service ...

Posted by jini01 on Fri, 14 Feb 2020 23:45:09 -0800

java architecture road - (netty topic) preliminary understanding of BIO, NIO, AIO

This time, we mainly talk about our IO blocking model. It's just not much, but we must understand that it's very important for us to understand netty later IO model elaboration IO model is to use what kind of channel to send and receive data. Java supports three kinds of network programming IO modes: BI ...

Posted by itsjames on Thu, 13 Feb 2020 04:37:40 -0800

Unpacking and solution of Tcp sticking package

Sticking and unpacking of Tcp 1.TCP is connection oriented, flow oriented, and provides high reliability services. There must be one pair of socket s at both ends of the transceiver. Therefore, in order to send multiple packets to the receiver more effectively, the sender uses the optimization method ...

Posted by jaiswal on Wed, 12 Feb 2020 09:03:53 -0800

ActiveMQ in message middleware: spring boot integrates ActiveMQ

Less nonsense, more dry goods: integration Create an initialization project for springboot Slightly (this can be done) pom.xml is introduced as follows: Note: I use 5.15.11 here, so the imported package should also be the latest 5.15.11 <dependency> <groupId>org.sprin ...

Posted by miltonos on Wed, 12 Feb 2020 07:37:00 -0800

netty implements HTTP server 1

Article directory Summary HTTP server code implementation Verification Summary At present, the mainstream Java web server is implemented by springboot+Tomcat, and the bottom layer is developed based on servlet. Servlet is not asynchronous, so its performance is not very rational and cannot meet ...

Posted by weezil on Sun, 09 Feb 2020 23:40:36 -0800

Netty group chat system based on netty analysis

Preface We explained the basic use of Netty earlier. This time, we will use Netty to complete a group chat system to realize simple data communication between the server and the client; Basic requirements of group chat system: The server can monitor the client online, offline, and forward the client ...

Posted by ryeman98 on Tue, 04 Feb 2020 10:16:41 -0800

Get through the network source code series seven worker group registration NioSocketChannel

Get through the network source code series seven worker group registration NioSocketChannel worker group registration NioSocketChannel Read message doReadBytes writeBytes setBytes internalNioBuffer _internalNioBuffer allocHandle.lastBytesRead(doReadBytes(byteBuf)) pipeline.fireChannelRead(byte ...

Posted by daredevil14 on Mon, 03 Feb 2020 06:30:44 -0800