Detailed explanation of the past and present life of Spring Boot and its relationship with Spring Cloud

To understand the development background of Spring Boot, we have to start with the release of Spring Framework version 1.0 in 2004. However, we all use the spring framework from the beginning of learning Java, so we don't expand too much.With more and more enterprises and individuals using the Spring Framework for development, Spring has slowly ...

Posted by POGRAN on Wed, 24 Nov 2021 10:25:12 -0800

Personal experience and source code analysis of filter chain of Spring Cloud Gateway

preface: In fact, I just want to understand the construction principle of the Filter linked list in the spring cloud gateway and the timing of injection into the Bean. If the dynamic injection Filter is a Bean, what timing injection will take effect by default. If it cannot take effect for what reason, which method classes can be forced to ...

Posted by Jip on Tue, 23 Nov 2021 15:35:56 -0800

Spring cloud upgrade 2020.0.x version - 40. spock unit test encapsulated WebClient

Code address of this series: https://github.com/JoJoTec/spring-cloud-parent Let's test the previously encapsulated WebClient. From here on, we use spock to write groovy unit tests. The written unit tests are simpler and more flexible. We can see it in the next unit test code. Write spring boot context test based on spock We add the configura ...

Posted by cowboy_x on Mon, 22 Nov 2021 06:00:25 -0800

In depth understanding of Spring Cloud and microservice construction Chapter 10 routing gateway Spring Cloud Zuul

In depth understanding of Spring Cloud and microservice construction Chapter 10 routing gateway Spring Cloud Zuul 1, Introduction to Zuul Zuul, as a network management component of microservice system, is used to build Edge Service and is committed to dynamic routing, filtering, monitoring, elastic scaling and security. Zuul's important r ...

Posted by TreColl on Fri, 19 Nov 2021 04:14:33 -0800

2 - [high concurrency - service] - 1 Hystrix

1 background of hystrix With the improvement of business complexity and the continuous splitting of the system, a user-oriented API has layers of nested RPC calls, and the call chain may be very long. This will cause the following problems: Reduced API interface availability Citing an official example of Hystrix, suppose that an application ...

Posted by warmwind on Tue, 16 Nov 2021 17:13:16 -0800

Spring Cloud Alibaba uses Seata to resolve the whole process of distributed transactions

Why do distributed transactions occur# With the rapid development of business, website system often evolves from single architecture to distributed and micro service architecture, while for database, it changes from stand-alone database architecture to distributed database architecture. At this time, we will split a large application system in ...

Posted by o2cathy on Fri, 12 Nov 2021 08:02:19 -0800

20 - unified Gateway - Global filter

Global filter The gateway provides 31 kinds of filters learned in the previous section, but the function of each filter is fixed. If we want to intercept requests and do our own business logic, we can't do it. 3.5.1. Global filter function The global filter is also used to handle all requests and microservice responses entering the gateway, ...

Posted by grantp22 on Fri, 12 Nov 2021 02:43:23 -0800

Spring cloud upgrade 2020.0.x - 32. Improved load balancing algorithm

Code address of this series: https://github.com/JoJoTec/spring-cloud-parent In the previous section, we combed the ideas of realizing Feign circuit breaker and thread isolation. In this section, we will first discuss how to optimize the current load balancing algorithm without looking at the source code implementation (because the source cod ...

Posted by liljim on Thu, 11 Nov 2021 12:49:31 -0800

A brief introduction to Spring Cloud and a simple introductory example

1 Overview Spring Cloud is based on Spring Boot, which provides several components to help enterprises build micro-service systems. The main functions it provides are: Service Registry/Service Registration/Service Call/Load Balancing/Circuit Breaker, etc. Generally, it uses the existing open source software, which is based on the concept of Spr ...

Posted by colmtourque on Thu, 11 Nov 2021 08:38:49 -0800

User authentication scheme under spring cloud

The commonly used Security frameworks under ava mainly include Spring Security and shiro, which can provide very powerful functions, but the learning cost is high. Under microservice, authentication will be more or less invasive to the service. In order to reduce dependence, reduce intrusion and make the authentication function transparent to t ...

Posted by CrashRoX on Wed, 10 Nov 2021 19:03:13 -0800