Spring Cloud Part 7: declarative service call Feign

This is the seventh article of Spring Cloud column. Understanding the contents of the first six articles helps to better understand this article: Introduction to Spring Cloud and its common components Spring Cloud Part 2 use and know Eureka registry Spring Cloud Part 3: building a highly available Eureka registry Spring Cloud Part 4: c ...

Posted by eyekkon on Sat, 14 Dec 2019 02:46:02 -0800

Advanced chapter: dockersurm of docker adjusts micro service and service configuration (29)

>Original article, welcome to reprint. Reprint please indicate: reprint from IT people's story meeting Thank you!>Original link address: Advanced chapter: dockersurm of docker adjusts micro service and service configuration (29) Last time, the swarm cluster environment has been set up. There are three virtual machines, server01, server0 ...

Posted by aclees86 on Sat, 07 Dec 2019 18:12:34 -0800

Zookeeper registry of dubbo

At present, dubbo supports a variety of registration centers: Zookeeper, Redis, Simple, Multicast, Etcd3. This article analyzes how dubbo integrates Zookeeper to register and subscribe services when Zookeeper is used as the registration center. First, Dubbo registers the service with Zookeeper, and the directory structure is as follows: (regist ...

Posted by Tensing on Sun, 01 Dec 2019 08:10:43 -0800

How to play Dubbo Filter

Under resources, create a new META-INF/dubbo/com.alibaba.dubbo.rpc.Filter file (which can be a txt suffix file) Learn about @ Activate annotation in dubbo before rolling code @Activate(group = {Constants.PROVIDER}, value = {"token"},order = -998) group refers to the common parameters of filter users: Constants.PROVIDER, Constants ...

Posted by coalgames on Tue, 26 Nov 2019 14:16:53 -0800

Dubbo springboot entry level demo

1. Dubbo springboot entry level demo 1.1. Preface The last operation and maintenance friend mentioned to me that their company wanted to do a dubbo gray publishing function, and this function fell to him. In my impression, dubbo should be able to realize specific users' routing to specific servers through extended code, so as to realize the gr ...

Posted by keziah on Mon, 25 Nov 2019 14:21:33 -0800

Dubbo source code analysis practice - the mystery of routing Router

The second keyword in cluster fault tolerance is Router, which means routing in Chinese The front-end routing is different from the back-end routing, but the idea is basically the same In view of the fact that many technical articles have a criticism, that is, they only talk about concepts, but not application scenarios. In fact, Router has i ...

Posted by noaksey2000 on Mon, 25 Nov 2019 09:51:42 -0800

Asynchronous programming with completable future

A scenario will be encountered in the development, as follows Object result1 = service1.func1();//Implementation 80 ms Object result2 =service2.func2();//Implementation 50 ms service3.func3(result1,result2); func3() needs to wait for func1 and func2 to execute. If func1 and func2 can be executed at the same time, the minimum waiting ...

Posted by david-remone123 on Wed, 20 Nov 2019 07:43:57 -0800

Injecting Spring Bean into java interceptor Filter

Next, ajax carries Cookie information across domains. After receiving Cookie information, the server in the project needs to query database user information for login verification. According to the usual habit of using the annotation @ Autowired directly, it will report the service null pointer exception. There are many descri ...

Posted by kiranoleti on Thu, 14 Nov 2019 10:31:39 -0800

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