[spring cloud] spring cloud is the correct way to deal with all registry clusters after they are down
Correct handling method after registry downtime
Microservice is a major trend at present. The registry is not only the most basic component of microservice, but also the most core component. It provides the client with a list of all callable services. Because of this, the availability of the registry is highly required in the microservice ...
Added by nileshkulkarni on Tue, 23 Nov 2021 03:35:31 +0200
[Spring Cloud Alibaba] routing Gateway gateway
1. Introduction
Spring Cloud gateway is a new project of Spring Cloud. The project is a gateway developed based on Spring 5.0, Spring Boot 2.0 and Project Reactor. It aims to provide a simple and effective unified API routing management method for microservice architecture.
As a gateway in the Spring Cloud ecosystem, the goal of Spring Cloud ...
Added by Lashiec on Sun, 21 Nov 2021 10:54:05 +0200
SpringClould microservice Architecture Construction -- unified response, input parameter verification and exception handling
preface
For an interface provided by the back end, it is essential to have a unified response format to facilitate parameter verification and unified exception handling. Today, we integrate these three basic functions into the project to make the project closer to the actual development scenario.
Unified response
In project development, gene ...
Added by eves on Thu, 18 Nov 2021 04:23:17 +0200
God, updating a small registry is so complicated? [hand torn eureka source code NO.2]
Through the previous study, we know that Eureka client actively reports its communication address to Eureka server. This process is completed by calling the service registration interface.
Now Eureka server can get the communication addresses of all Eureka clients, but how does Eureka client get the communication addresses of other Eureka clie ...
Added by xexmple on Wed, 17 Nov 2021 07:14:46 +0200
Spring cloud upgrade 2020.0.x version - 31. FeignClient's idea of realizing circuit breaker and thread isolation and current limiting
Code address of this series: https://github.com/JoJoTec/spring-cloud-parent
In the previous section, we implemented the Retry of FeignClient resilience4j. Careful readers may ask why the circuit breaker and thread current limiting are not added together in the implementation here:
@Bean
public FeignDecorators.Builder defaultBuilder(
...
Added by paruby on Wed, 10 Nov 2021 19:27:53 +0200
FeignClient file upload and download of spring cloud
Use feignClient to upload and download files, and compatible with data transmission
The communication between microservices can use feign interface to communicate and transfer data content, but if there is file transfer between services, it will be very clumsy to use httpClient to transfer.feign interface actually transmits data through http r ...
Added by suomynonA on Tue, 09 Nov 2021 12:28:41 +0200
The third day of spring cloud learning is the Silicon Valley version
11 zuul routing gateway
After skipping ~ a brain map will be sent, and zuul gateway can be seen on the brain map
12 Gateway next generation gateway
12.1 introduction
First, create a new module cloud gateway gateway 9527 pom
<dependencies>
<!--gateway-->
<dependency>
<groupId>org.sp ...
Added by peeps on Sat, 06 Nov 2021 15:54:18 +0200
Build JVM micro service monitoring based on docker (Prometheus+Grafana)
1, JVM monitoring
Installing node based on docker_ exporter+prometheus+grafana
Download Image package:
docker pull prom/node_exporter
docker pull prom/prometheus
docker pull grafana/grafana
docker pull timonwong/prometheus-webhook-dingtalk
1. Start node exporter
docker run -d --name node_exporter -p 9100:9100 \
-v "/proc:/host/proc:ro ...
Added by bodzan on Tue, 02 Nov 2021 09:27:38 +0200
[Spring Cloud Alibaba reviews the past and knows the new] Alibaba Nacos
catalogue
4.1.1 basic architecture and concept of Alibaba Nacos
Alibaba Nacos basic architecture
Service, configuration service, name service Interpretation of Alibaba Nacos concept
Service registry: it is the database of services, instances and metadata; The service registry may call the health check API of the service instance to ve ...
Added by johnthedeveloper on Thu, 28 Oct 2021 19:30:27 +0300
openFeign deadly serial 9 question
Today, we will introduce a component of service invocation: OpenFeign, which is also a cruel role beyond its predecessors (Ribbon and Feign).
The article contents are as follows:
2. What is Feign?
Feign is also a tough role. Feign aims to make Java Http clients easier.
Feign integrates Ribbon and RestTemplate to realize load balancing and ...
Added by co.ador on Mon, 25 Oct 2021 13:24:38 +0300