RocketMQ upgrade to master-slave switch (DLedger, multi replica) practice

This article mainly introduces how to upgrade RocketMQ cluster from the original master-slave synchronization to the master-slave switch. First, it introduces the core configuration attributes related to the master-slave switch of the DLedger multi replica, that is, the RocketMQ master-slave switch. Then it tries to build a master-slave synchro ...

Posted by amesowe on Sun, 03 Nov 2019 02:22:11 -0800

Talk about dubbo's ClassLoaderFilter

order This paper mainly studies dubbo's ClassLoaderFilter ClassLoaderFilter dubbo-2.7.2/dubbo-rpc/dubbo-rpc-api/src/main/java/org/apache/dubbo/rpc/filter/ClassLoaderFilter.java @Activate(group = CommonConstants.PROVIDER, order = -30000) public class ClassLoaderFilter implements Filter { @Override public Result invoke(Invoker<?> i ...

Posted by binumathew on Thu, 31 Oct 2019 05:42:07 -0700

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