An overview of Dubbo routing mechanism

In the previous section, we mainly explained how to dynamically modify parameters using dubbo-admin. This section will focus on another implementation detail in cluster implementation: routing mechanism, the main purpose of which is to refresh service providers from all known service providers according to routing rules when making service call ...

Added by spider.nick on Sun, 05 Jan 2020 13:41:28 +0200

One day introduction to java blockchain - jdchain

Jdchain is an open-source blockchain platform of JD science and Technology Co., Ltd. the goal is to realize a general blockchain framework system for enterprise application scenarios, which can serve as enterprise level infrastructure and provide efficient, flexible and secure solutions for business innovation. The reason why jdchain is chosen ...

Added by sigmon on Tue, 10 Dec 2019 22:07:24 +0200

netty set up web chat room group chat

In the last lesson, I completed the back-end construction of netty and completed the simple http request response. Today, I will complete the group chat function with the front-end websocket. If you don't want to talk much, let's start with the picture above: Front-end construction Do not use complex build tools to start static pages directly ...

Added by gojakie on Wed, 04 Dec 2019 11:03:04 +0200

Guide to using RocketMQ ACL

1. What is ACL? ACL is short for access control list, commonly known as access control list.Access control basically involves the concepts of users, resources, privileges, roles, and so on. Which objects do these correspond to in RocketMQ? user User is the basic element of access control, and it is not difficult to understand. RocketMQ ACL will ...

Added by dreamscape on Fri, 15 Nov 2019 04:20:05 +0200

Log replication (propagation) of source code analysis RocketMQ DLedger

This article follows Log Addition Process for Source Analysis RocketMQ DLedger Continue Leader's process of handling client append requests, one of the most critical aspects: log replication. DLedger multi-copy log forwarding is implemented by DLedger Entry Pusher, which will be described in detail next. Warm Tip: Due to the length of this art ...

Added by TheIceman5 on Tue, 24 Sep 2019 06:45:21 +0300

Netty Source Code Analysis--The Mystery of Unpacker

There are many kinds of Netty decoders, such as length-based, divider-based, private protocols. However, the overall thinking is the same. Packet disassembly idea: When the data meets the decoding conditions, it is disassembled. Put it in an array. It is then sent to the business handler for processing. Half-package idea: When the data read i ...

Added by ziong on Thu, 19 Sep 2019 06:40:31 +0300

8. Response to request or response data processing

In the previous section, we analyzed the process of calling an interface. When the interface returns data, Dubbo needs to tell the client which interface it is calling. What happens when Dubbo responds?There is the following code in the com.alibaba.d ...

Added by FMB on Fri, 13 Sep 2019 06:50:35 +0300

5. Resolution of dubbo Request Protocol and Responder for Request or Response Data Processing

In the previous section, we analyzed service exposure. In this section, we analyzed how Dubbo handles consumer requests. Let's review the com.alibaba.dubbo.remoting.transport.netty4.NettyServer#doOpen method protected void com.alibaba.dubbo.remoting. ...

Added by scrypte on Fri, 13 Sep 2019 06:47:47 +0300

Netty Source Code Analysis--read Process Source Code Analysis

In the previous article, we analyzed the accept process in the process SelectedKey method. This article will analyze the read process in the work thread. private static void processSelectedKey(SelectionKey k, AbstractNioChannel ch) { final NioUnsafe unsafe = ch.unsafe(); //Check the SelectionKey Is it valid? If it is invalid, close ...

Added by mrfritz379 on Thu, 12 Sep 2019 06:47:59 +0300

Netty Source Code Analysis--Client Access Acept Process

Read through this article, you will understand1. How netty accepts new requests2. How netty assigns reactor threads to new requests3. How netty adds ChannelHandler to each new connection reactor thread in netty There are two types of reactor threads at the core of netty. They can be regarded as two types of engines in netty, which drive the w ...

Added by Monshery on Wed, 11 Sep 2019 07:08:29 +0300