Dubbo Service Reference Principle

Dubbo Service Reference Principle   Service reference principle, first look at the code call logic, and then step-by-step debug. Consumer References: ReferenceBean.getObject() -->ReferenceConfig.get() -->init() -->createProxy(map) -->refprotocol.refer(interfaceClass, urls.get(0)) ...

Posted by inosent1 on Thu, 31 Oct 2019 04:11:05 -0700

Problems in dubbo registering jvm to close hook

dubbo performs its elegant downtime by registering the jvm to close the hook during downtime. However, when dubbo runs with spring, because spring also closes the hook registration through the jvm: public abstract class AbstractApplicationContext: @Override public void registerShutdownHook() { if (th ...

Posted by Branden Wagner on Sun, 27 Oct 2019 02:24:49 -0700

Java microservices: load balancing, serialization, fusing

This article follows the previous one< Java microservices (2): service consumer and provider building >The last article mainly talks about the construction and simple realization of consumers and service providers. The focus is on several pits in the configuration file. This chapter introduces some scattered contents: load balancing, ser ...

Posted by rofl90 on Mon, 21 Oct 2019 13:17:35 -0700

dubbo - integrate spring boot, simple annotation based instance

I. Guide Package: <dependencies> <dependency> <groupId>com.alibaba.boot</groupId> <artifactId>dubbo-spring-boot-starter</artifactId> <version>0.2.0</version> </dependency> <dependency> <groupId>org. ...

Posted by ricoche on Sun, 20 Oct 2019 09:25:06 -0700

Installation of Dubbo monitoring center

You need to install tomcat and then deploy the monitoring center. If the monitoring center and the registry are on the same server, no configuration is required. Step 1: install tomcat in linux first Step 2: decompress Step 3: import dubbo-admin-2.5.4.war registry file. If you can't find it, you can send it to me personally. Step 4 ...

Posted by kevdoug on Fri, 18 Oct 2019 08:28:09 -0700

6. 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 implement ...

Posted by putraaridana on Tue, 08 Oct 2019 21:32:49 -0700

dubbo provider does not print error log resolution

Reason analysis: By default, dubbo uses log4j as its logging framework. If you use a different logging framework, you may not have a log. Solve: It can be resolved by configuring the logger attribute of the application //slf4j,jcl,log4j,jdk,log4j2 <dubbo:application logger="log4j2" /> T ...

Posted by jesirose on Tue, 08 Oct 2019 14:45:01 -0700

Dubbo Registry

1. The role of registries With the registry, service providers can dynamically add and delete services, and service consumers can pull up the latest services to achieve synchronization after receiving update notifications. Unified configuration can be achieved in the registry, and dynamic adjustment of parameters can be automatically notified t ...

Posted by Rangana on Mon, 07 Oct 2019 06:43:30 -0700

1. Integration of Dubbo and Spring to parse configuration files

1. Dubbo consumer invocation service provider example public class Consumer { public static void main(String[] args) { ClassPathXmlApplicationContext context = new ClassPathXmlApplicationContext(new String[]{"META-INF/spring/dubbo-demo-consumer.xml"}); context.start(); DemoService demoService = (DemoSer ...

Posted by silas101 on Sun, 06 Oct 2019 22:05:58 -0700

10. Introduction of Dubbo Services

1. Introduction of Dubbo Service Introduction The first two articles Export of Dubbo's Service Export 1 to Local,Export of Dubbo's Service Export 2 to Remote The process of service export is analyzed in detail. In this article, we will continue to analyze the Service Citation process. In Dubbo, we can refer to remote services in two ways. The f ...

Posted by rushenas on Sun, 06 Oct 2019 12:42:49 -0700