9. SPI mechanism analysis of Dubbo 5-Activate
1. Dubbo's @Activate example
@SPI
public interface ActivateExt {
String echo(String msg);
}
@Activate(group = {"default"})
public class ActivateExtImpl1 implements ActivateExt {
@Override
public String echo(String msg) {
return msg;
}
}
@Activate(group = {"group1", "group2"})
public class GroupActivateExtImpl implements ...
Posted by Charles Wong on Sat, 05 Oct 2019 19:26:38 -0700
Hello World: Introduction to dubbo
Links to the original text: http://www.cnblogs.com/JAYIT/p/9642389.html
dubbo official documents: http://dubbo.apache.org/zh-cn/docs/user/quick-start.html
demo based on spring coloud: http://start.dubbo.io
The introduction of dubbo ...
Posted by acidglitter on Sat, 05 Oct 2019 08:51:21 -0700
Talk about dubbo's dubbo Component Scan Registrar
order
This article focuses on dubbo's dubbo Component Scan Registrar.
DubboComponentScanRegistrar
dubbo-2.7.3/dubbo-config/dubbo-config-spring/src/main/java/org/apache/dubbo/config/spring/context/annotation/DubboComponentScanRegistrar.java
public class DubboComponentScanRegistrar implements ImportBeanDefinitionRegistrar {
@Override
pub ...
Posted by firecat318 on Mon, 30 Sep 2019 13:53:09 -0700
Dubbo consumer catches custom exceptions thrown by service provider provider
Define an exception class in a common package that inherits from RuntimeException.
public class BusinessException extends RuntimeException {
/**
* Abnormal code
*/
private String code;
public BusinessException() {
super();
}
public BusinessException(String message) {
super(message);
...
Posted by echo64 on Wed, 25 Sep 2019 00:58:17 -0700
13. Consumer Method Call Procedures for Service Introduction (Cluster Fault Tolerance and Load Balancing)
The previous section analyses the logic of provider directory refresh and connection between consumers and providers introduced by services, and analyses the following major packaging levels, which I divide into three layers
MockClusterInvoker
in ...
Posted by adambedford on Mon, 16 Sep 2019 01:25:18 -0700
12. Renewal of Registered Directory Introduced by Services and Connection of Services
The last section talks about the configuration and parameter subscription of service introduction. After parameter subscription, the consumer obtains the provider url, the configurer url, and the routing URL under the corresponding interface classifi ...
Posted by rtown on Mon, 16 Sep 2019 01:24:09 -0700
SpringBoot 2.0 + Apache Dubbo 2.7.3 Latest Version Integration Scheme
Preface
On February 16, 2018, Apache Dubbo joined the Apache Foundation incubator. On May 16, 2019, the board of directors of the Apache Software Foundation approved the graduation application of Apache Dubbo, which means that Apache Dubbo has officially become Apache's top project.
To configure
When Dubbo donates sperm to Apache, it means tha ...
Posted by Diceman on Sun, 15 Sep 2019 22:43:18 -0700
Dubbo Custom Load Balancing
Want to know the implementation strategy of Dubbo custom load balancing,
First of all, we need to understand the SPI mechanism. See the article.( https://www.jianshu.com/p/46b42f7f593c)
Understanding the SPI mechanism, we extend Dubbo's load balancing strategy based on Dubbo's SPI mechanism
In brief, dubbo's SPI has been extended and impleme ...
Posted by han2754 on Thu, 12 Sep 2019 00:56:27 -0700
dubbo service link tracking
At present, many businesses use micro-service architecture. There are two ways to divide service modules:
Service Function Division
Business Division
Either way, an interface call requires multiple services to be completed in collaboration. A ...
Posted by rahulroy on Fri, 06 Sep 2019 01:33:47 -0700
Dubbo: Integrated Spring Cloud
1. Overview
In this article, let's share Spring Cloud Alibaba Dubbo Source Parsing for the project to see how Dubbo is integrated into Spring Cloud.
_Spring Cloud and Dubbo have never been competitive, so fat friends need to understand them we ...
Posted by Mathy on Wed, 04 Sep 2019 18:25:03 -0700