Introduction and use of Eureka

catalogue Introduction to Eureka Spring Cloud introduces Eureka 1. Create cloud Eureka server7001 subproject Dependency needs to be introduced (indicates eureka server): Write yml: For main startup, add the annotation @EnableEurekaServer 2.The cloud-consumer-order80 of Eureka client will register into Eureka server and become a consume ...

Posted by stig1 on Sat, 13 Aug 2022 21:17:34 +0300

IV. source code analysis of nacos Registry -- health detection

I. core principle flow chart II. The client monitors the server 2.1 implement udp listening The constructor of PushReceiver will trigger the initialization of listener public PushReceiver(HostReactor hostReactor) { try { this.hostReactor = hostReactor; this.udpSocket = new DatagramSocket(); thi ...

Posted by spitfire_esquive on Thu, 30 Jun 2022 16:41:17 +0300

Microservice Load Balancing Component - Ribbon

What is Ribbon Ribbon is an open source project released by Netflix, and its main function is to provide client-side load balancing algorithms. The Ribbon client component provides a series of complete configuration items such as connection timeout, retry, etc. Ribbon will automatically help you connect to these machines based on certain rule ...

Posted by robburne on Wed, 25 May 2022 03:25:07 +0300

Detailed explanation of spring cloud Config service configuration

Spring Cloud Config summaryConfig server configuration and testConfig client configuration and testingDynamic refresh of Config client summary Configuration problems faced by distributed systems What is it? What can I do Centrally manage profiles Different environments have different configurations, dynamic confi ...

Posted by Mr_jmm on Wed, 25 May 2022 03:22:01 +0300

[spring cloud] Hystrix fuse

Hystrix fuse summary Problems faced by distributed systems Problems faced by distributed systems Applications in complex distributed architecture have dozens of dependencies, and each dependency will inevitably fail at some time Service avalanche When calling between multiple microservices, suppose that microservice A calls microservice B and ...

Posted by jakeklem on Sat, 21 May 2022 21:32:40 +0300

[Hoxton.SR1 version] detailed explanation of Filter in Spring Cloud Gateway

catalogue 1, Introduction 2, Detailed explanation of commonly used Gateway Filter 3, Custom filter 4, Custom filter factory 5, Summary 1, Introduction In the last article, we introduced the Gateway Predicate in detail. Let's take a look at the description of the Predicate on the official website: the Predicate assertion determines which ...

Posted by turdferguson on Sat, 21 May 2022 07:03:25 +0300

Spring cloud learning -- Spring Cloud OpenFeign service call

1. Introduction 1.1 general Feign is a declarative web service client. It makes writing web service clients easier. To use Feign create an interface and annotate it. It has pluggable annotation support including Feign annotations and JAX-RS annotations. Feign also supports pluggable encoders and decoders. Spring Cloud adds support for Spring M ...

Posted by Someone789 on Fri, 20 May 2022 21:15:35 +0300

Spring Cloud: Hystrix service blown

fuse The circuit breaker mechanism is a microservice link protection mechanism to deal with the avalanche effect. When a microservice of the fan-out link fails or the response time is too long, the service will be degraded, and then the microservice call of the node will be blown. Returns the appropriate information for the error. In Spring Clo ...

Posted by NoMansLand on Wed, 18 May 2022 14:22:01 +0300

Architecture design | based on Seata middleware, transaction management under microservice mode

Source address: GitHub · click here || GitEE · point here 1, Introduction to Seata 1. Seata assembly Seata is an open source distributed transaction solution, which is committed to providing high-performance and easy-to-use distributed transaction services. Seata will provide users with AT, TCC, SAGA and XA transaction modes to cr ...

Posted by TheAngst on Tue, 17 May 2022 17:14:15 +0300

The service Gateway of Spring Cloud integrates Swagger components

Spring Cloud's service gateway gateway (II) integrates Swagger components summary Swagger is a visual API testing tool, which can effectively build powerful Restful API documents and save interface document management If the code is modified, the API document will be updated in real time And it can partially replace Postman to debug the inte ...

Posted by Gomesh on Tue, 17 May 2022 11:37:00 +0300