Dubbo Getting Started to Actual Warfare

Frontier: Dubbo is a very popular technology in today's popular distributed architecture, allowing days of free time to learn and work on later projects to pave the way for later distributed projects. Introduction to Dubbox Dubbox is a distributed service framework, its predecessor is the Alibaba open source project Dubbo, which is used by dom ...

Added by mepaco on Tue, 14 Jan 2020 19:30:16 +0200

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

On dubbo spi mechanism

For example: private static final Protocol protocol = ExtensionLoader.getExtensionLoader(Protocol.class).getAdaptiveExtension(); First of all, analyze the getExtensionLoader method: it is very simple to query whether the extension "loaders" exist or not, and then new returns public static <T> ExtensionLoader<T> getExten ...

Added by hyperyoga on Sat, 28 Dec 2019 16:53:49 +0200

SPI for Dubbo Source Analysis

1. Overview This is the second article on source analysis of dubbo SPI, followed by the first to continue with analysis of dubbo SPI, focusing on the getDefaultExtension() method for obtaining default extension points. Because this method is simple, we skip the example section and analyze the source code directly. 2. Source Code Analysis Ge ...

Added by bluethundr on Tue, 17 Dec 2019 05:42:18 +0200

Responsibility chain mode of design mode

The responsibility chain mode we usually encounter mainly includes the following scenarios: Filter in servlet Filter in zuul Filter in dubbo Plugin in mybatis Here we will only explain the implementation of Filter, mainly to understand the responsibility chain mode. Filter in Servlet Related instructions There are two roles for a filter in a ...

Added by mbdonner on Sun, 08 Dec 2019 23:55:34 +0200

dubbo source code analysis Directory

First, let's take a look at the implementation classes of directory interface. There are two main implementation classes: StaticDirectory and RegistryDirectory. This paper mainly analyzes RegistryDirectory. StaticDirectoryFrom the Static keywords in the StaticDirectory, we can see that this will not change dynamically. From the figure below, hi ...

Added by kingsol on Sun, 08 Dec 2019 22:08:06 +0200

dubbo source parsing remote call -- rmi protocol

Remote call rmi protocol Objective: to introduce the design and implementation of rmi protocol and the source code of Dubbo RPC rmi. Preface dubbo supports RMI protocol, which is mainly implemented based on the org.springframework.remoting.rmi package encapsulated by spring. Of course, the most primitive is the java.rmi. * package that relies o ...

Added by Riddick on Tue, 03 Dec 2019 17:55:55 +0200

Solving the problem of implicit parameter loss caused by dubbo multiple calls

In the process of using dubbo, if some general parameters are explicitly passed in the interface parameters, it will be inconvenient to use them. For example, if the user information stored in the frequently used session is passed in the parameter, it will be coupled to the business logic. In this case, implicit parameter passi ...

Added by lilsim89 on Sat, 30 Nov 2019 06:45:37 +0200

Java SPI mechanism of JDK source code parsing

1. What is SPI The full name of SPI is Service Provider Interface, which is a set of API s provided by Java to be implemented or extended by a third party. It can be used to enable framework extension and replace components. In object-oriented design, it is generally recommended to program modules based on interfaces, and there is no hard c ...

Added by legio on Wed, 27 Nov 2019 10:40:22 +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