Dubbo Source Learning-Service Reference (Service Startup Phase)
In the previous article, we looked at the process of publishing a dubbo service, and this article outlined the process of analyzing dubbo service references.
1. What should service consumers do?
Generate proxy objects (help us achieve communication details)
Set up a communication connection (netty)
Get the service provider address (subscript ...
Posted by gooman on Fri, 20 Mar 2020 19:56:52 -0700
netty realizes group chat
[overview]
Implement a group chat tool. The client messages participating in the chat are broadcast through the server.
It mainly consists of two parts: chat server and chat client.
Chat server function overview:
1. Monitor the access and disconnection of all clients
2. When client A accesses the chat room, send the access message to other clie ...
Posted by jonners on Tue, 17 Mar 2020 09:14:13 -0700
redis source code analysis v1.0
Section I. references
https://www.cnblogs.com/davidwang456/articles/9294912.html
https://blog.csdn.net/BigRat_WH/article/details/88640793
https://blog.csdn.net/u011577874/article/details/73000207
https://www.cnblogs.com/gjc592/p/11098047.html
First of all, the source code of redis is elegant and bea ...
Posted by hungryOrb on Mon, 16 Mar 2020 23:54:32 -0700
Flume implements writing es
Flume customized elasticsearch sink source code
Recently, we tried to write messages to elasticsearch through flume, but flume did not provide support for each es version, only kept support for version 0.9. It may be because the ES version changes frequently and there are big differences between different versions, so it is impossible to develo ...
Posted by saikiran on Sun, 15 Mar 2020 22:02:52 -0700
Source code analysis of NettyServer network event dispatch mechanism in Dubbo network communication
This section will focus on how Dubbo uses Netty to achieve network communication.
From the official website, we know that Dubbo protocol uses a single long connection for network transmission, that is to say, the service caller establishes a connection with the service provider for a long time, and all the service call information passes throug ...
Posted by jmandas on Thu, 12 Mar 2020 06:41:22 -0700
Getting started with Netty and unpacking
Netty programming
NIO programming
1. Solve the thread resource limitation
2. Low efficiency of thread switching
3. Resolve that IO read and write are in bytes
Netty programming
1. Introduction to netty
2. Use of netty
Netty package sticking and unpacking:
1. Sticking problem:
2. unpack
Specific ...
Posted by tapdancingtenor on Thu, 12 Mar 2020 05:22:10 -0700
Java NIO implementation of Reactor model
The implementation of Reactor model can be divided into the following three types:
Single thread model
Single Reactor multithreading model
Master slave Reactor multithreading model.
Single thread model
The Reactor single thread model refers to that all IO operations are completed on the same thread. The responsibilities of the thread are as f ...
Posted by nightowl on Sat, 29 Feb 2020 20:44:02 -0800
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