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

[Netty learning notes] X. use of codec

Basic explanation Component design of Netty: the main components of Netty are Channel, EventLoop, ChannelFuture, ChannelHandler, ChannelPipe, etc. ChannelHandler acts as a container for application logic that processes inbound and outbound data. For example, to implement the ChannelInboundHandler inte ...

Posted by itsjareds on Wed, 29 Jan 2020 20:16:37 -0800

Construction of [Netty] NioEventLoop

review stay Last section We have a general understanding of the creation process and function of threadpertakexcutor, but this is just to build an executor, which has not been really used yet, because before using, we need to build NioEventLoop, and the newChild method in this section is to do this. ...

Posted by tmyonline on Wed, 29 Jan 2020 04:50:07 -0800

netty creates and starts new thread process analysis

This article mainly shares the creation process of NioEventLoop thread bound by server socketchannel In the server startup process, when the registration operation is executed, it will determine whether the current thread is the thread in NioEventLoop bound by ServerSocketChannel. If not, it will encaps ...

Posted by scotthoff on Sun, 19 Jan 2020 22:49:35 -0800