Registration and discovery of Pigeon service
Last article: What happened to a call to the server of Pigeon
In the previous section, we introduced the process of the request calling of Pigeon, so how is the service of Pigeon perceived by the caller? We know that RPC usually has a registry to store the information of service testing (ip, port, etc.) ...
Posted by hmiller73 on Sun, 19 Jan 2020 00:59:17 -0800
Using netty to build a simple http server
Article directory
netty overview
netty architecture model
Manually rolling an http server
Introducing netty into pom.xml
Write netty server
Operation test
Summary
netty overview
Netty is a network programming framework based on java NIO encapsulation, which can help us develop network applicat ...
Posted by dubhcat on Mon, 13 Jan 2020 01:36:59 -0800
Alibaba cloud ant contract experience chain Quick Start
Summary
Alibaba cloud ant blockchain provides a contract experience chain, which is convenient for users to quickly experience the blockchain, and can quickly test and experience the functions of the blockchain free of charge. The following describes the use of contract experience step by step from three aspects: portal creation and related con ...
Posted by flashman on Fri, 10 Jan 2020 06:38:44 -0800
Handwritten MQ Framework - combing with netty transformation
1. Background
Copy above Handwritten MQ Framework (3) - Client Implementation , which previously implemented mq as a server and client via the web, now plans to use netty to transform it.A while ago, I learned how to use netty (https://www.w3cschool.cn/netty4userguide/52ki1iey.html).There are probably some ideas.
netty encapsulates the use of s ...
Posted by iankent on Thu, 02 Jan 2020 16:10:04 -0800
RocketMQ source code: Producer startup analysis
This paper mainly analyzes the startup process of Producer in RocketMQ.
The version of RocketMQ is: 4.2.0 release.
1, Sequence diagram
According to the source code, the timing of the Producer startup process is drawn once:
2, Source code analysis
1 start(): DefaultMQProducer starts.
The main functions of DefaultMQProducer are impl ...
Posted by pjleonhardt on Wed, 01 Jan 2020 06:57:01 -0800
Basic concepts of Netty
Boot
BossGroup and WorkerGroup: the former is responsible for receiving client connections, and the latter is responsible for network reading and writing. All types are NioEventLoopGroup
NioEventLoopGroup is equivalent to an event loop group, which contains multiple event loops. Each event loop is NioEventLoop
NioEventLoop refers to a thr ...
Posted by jaco on Fri, 27 Dec 2019 11:43:42 -0800
Source code analysis Dubbo service provider startup process - Part 2
This article continues the above process of Dubbo service provider startup. In the previous article, I combed the configuration mode based on dubbo spring file in detail. How Dubbo loads the configuration file and how dubbo:service Tag service exposes the whole process. This section focuses on the call of doLocalExport method in registryprotoco ...
Posted by Phasma Felis on Thu, 19 Dec 2019 12:21:37 -0800
Talk about the start of storm supervisor
order
This paper mainly studies the start-up of storm supervisor
Supervisor.launch
storm-core-1.2.2-sources.jar!/org/apache/storm/daemon/supervisor/Supervisor.java
/**
* Launch the supervisor
*/
public void launch() throws Exception {
LOG.info("Starting Supervisor with conf {}", conf);
String path = ConfigUtils ...
Posted by RobbertvanOs on Mon, 16 Dec 2019 14:04:35 -0800
2. Sticking and unpacking of netty (I)
Netty sticking and unpacking
1. What is unpacking and sticking
(1) introduction to unpacking and sticking
TCP is a "flow" protocol. The so-called flow is a string of data without boundary. You can think of the running water in the river, which is connected in one piece, and there is no boundary between them. The bottom layer of TCP d ...
Posted by pagegen on Mon, 16 Dec 2019 11:46:30 -0800
netty source code analysis: unveiling reactor thread
Last two blog posts( netty source code analysis: unveiling reactor threads (1),netty source code analysis: unveiling reactor threads (2) )The first two steps of the reactor thread of netty have been described. Here, we use this picture to review:
A brief summary of reactor thread Trilogy
1. Polling out IO events
2. Handle IO events
...
Posted by plex303 on Wed, 11 Dec 2019 02:00:31 -0800