[service gateway] [getway] of spring cloud micro Service -- continuous update

Why use a gateway? All requests can be uniformly standardized and processed through the gateway side, and unified logging, permission verification, flow restriction, interface service security reinforcement, reverse proxy, etc. can also be done. The function of this gateway is equivalent to that you go to the hospital to see a doctor. First ...

Posted by maca134 on Fri, 11 Feb 2022 00:29:16 +0100

SpringCloud Upgrade Path 2020.0.x-45. Implementing Public Logging

This series of code addresses: https://github.com/JoJoTec/sp...This section builds on the previous Publisher factory implementation with link information to implement the GlobalFilter for public logging. Review our needs:We need to record each request at the gateway:HTTP related elements:URL-related informationRequest information, such as HTTP ...

Posted by seventheyejosh on Thu, 02 Dec 2021 04:10:02 +0100

Spring cloud upgrade 2020.0.x - 43. Why is there a link information loss in spring cloud gateway

Code address of this series: https://github.com/JoJoTec/sp...Before we start to write our own log Filter, there is another problem I want to share with you here, that is, the loss of link information may occur in the Spring Cloud Gateway.Main conflict - design conflict between Project Reactor and Java Logger MDCProject reactor is the implementa ...

Posted by CMC on Sun, 28 Nov 2021 03:48:48 +0100

SpringCloud upgrade path 2020.0.x - 34. Verify the correctness of retry configuration

Code address of this series: https://github.com/JoJoTec/sp...In the previous section, we used resilience4j to glue OpenFeign to realize circuit breaker, retry and thread isolation, and used a new load balancing algorithm to optimize the performance of load balancing algorithm during business surge. In this section, we begin to write unit tests ...

Posted by thepeccavi on Sat, 13 Nov 2021 05:21:29 +0100

Spring cloud upgrade 2020.0.x version - 29. Analysis of spring cloud openfeign

Code address of this series: https://github.com/JoJoTec/sp...In many microservices that use cloud native, relatively small-scale ones may directly rely on the load balancer in the cloud service for internal domain name and service mapping, judge the instance health status through the health check interface, and then directly use OpenFeign to ge ...

Posted by newyear498 on Sun, 07 Nov 2021 07:01:04 +0100