On the failure of refresh configuration from the implementation principle of RefreshScope
preface
In spring IOC, the well-known BeanScope includes singleton and prototype. The scope of the Bean affects the creation method of the Bean. For example, when creating a Bean with Scope=singleton, the IOC will save the instance in a Map to ensure that the Bean has only one instance in an IOC context. Spring cloud adds a scope of refresh ra ...
Posted by sajy2k on Wed, 02 Feb 2022 07:21:22 +0100
4. Consul service registration and discovery
1. About Consul
What is consol?
Consul official website: Official websiteConsul is an open source distributed service discovery and configuration management system developed by HashICorp in Go language. It provides service governance, configuration center, control bus and other functions in the microservice system. Each of these function ...
Posted by Ilyes on Wed, 02 Feb 2022 04:09:09 +0100
[spring cloud] interpretation of the implementation of spring cloud loadbalancer
preface
In this chapter, I will explain the specific load balancing rules. First, I will express my personal understanding of the spring cloud loadbalancer load balancing rules:
Get the corresponding instance collection according to the service ID, which contains some rules: get from the registry? Same region priority? Cache? etc.Select t ...
Posted by larissahn on Tue, 01 Feb 2022 02:57:59 +0100
Chapter 4 Alibaba cloud integrates Ribbon to realize load balancing
1. What are load balancing and common solutions
What is Load Balance A very important concept in distributed system. When the accessed service has multiple instances, it needs to decide which node the request is sent to according to a "balanced" strategy. This is the so-called load balancing. The principle is to allocate the data tr ...
Posted by robpoe on Mon, 31 Jan 2022 23:44:43 +0100
Spring Cloud learning notes -- 10 Spring Cloud bus message bus
In SpringCloud Config, if multiple microservice clients obtain configuration information from the service configuration center, once the configuration file in the remote library is modified, the service configuration center can update synchronously, but the modification of configuration information cannot be synchronized to each microservice im ...
Posted by NS on Sun, 30 Jan 2022 16:17:36 +0100
Spring cloudalibaba learning series Nacos - Introduction
catalogue
1, Introduction
2, Nacos service setup
3, Actual combat of configuration center
4, Dynamic service discovery practice
A. Magic provider project
B. Magic consumer project
C. Verify
1, Introduction
Nacos is an open source project of Alibaba, which is used to realize dynamic service discovery and service configuration managemen ...
Posted by jonex on Sat, 29 Jan 2022 20:58:33 +0100
4 fuse Spring Cloud Hystrix
catalogue
1 Introduction
2 fuse principle
2.1 three states of fuse
2.2 conditions for fusing
3. Fuse case
4 service degradation method
1 Introduction
Background, why fuse:
In microservices, a request may require multiple microservice interfaces to be implemented, which will form a complex call link.If a service has an exception, the r ...
Posted by cedtech23 on Fri, 28 Jan 2022 19:24:22 +0100
Java Cglib dynamic agent principle source code analysis
Environment: Java 8
Cglib agent usage
System.setProperty(DebuggingClassWriter.DEBUG_LOCATION_PROPERTY, "E://cglib");
Enhancer enhancer = new Enhancer() ;
enhancer.setSuperclass(PersonDAOImpl.class) ;
enhancer.setCallback(new MethodInterceptor() {
@Override
public Object intercept(Object obj, Method method, Object[] args, MethodProxy pr ...
Posted by Chesso on Fri, 28 Jan 2022 05:51:53 +0100
Spring cloud foundation - basic understanding and initial creation of spring cloud (2020)
1. Version selection of springcloud and SpringBoot
The versions of SpringBoot and SpringCloud are specified in the official documents, Official location ; You can also enter the web address in the browser https://start.spring.io/actuator/info , put the obtained JSON string into the online JSON parsing tool. Once parsed, you can see the re ...
Posted by kernelgpf on Thu, 27 Jan 2022 17:30:56 +0100
Demonstration of Spring Cloud Alibaba integrated architecture
Spring Cloud is a comprehensive microservice framework set, which integrates the implementation of functions such as service registration and discovery, configuration center, message bus, load balancing, circuit breaker, API gateway and so on. On the Internet, it is often found that Spring Cloud and Alibaba's Dubbo make a choice and comparis ...
Posted by tapdancingtenor on Thu, 27 Jan 2022 14:29:27 +0100