Ribbon Introduction Ribbon is a load balancer for Netfix clients that provides control over the behavior of HTTP and TCP clients. After configuring the service provider address for Ribbon, Ribbon can automatically help service consumers make requests based on a certain load balancing algorithm. Ribbon provides many load balancing algorithms by default, such as polling, […]
Tag: netflix
Springboot removes netflix and disables Eureka
Table of Contents Report an error Solution Method 1: Remove maven dependencies Method 2: Disable eureka directly in the application configuration file (lazy method) Method 3: Check whether the address configured by eureka is correct (you really need to use eureka) Error report If you take over someone else’s project, you will always get this […]
Construction of Netflix Eureka registration and discovery center
Table of Contents 1 Netflix Eureka Registration and Discovery Center 1.1 Create parent project 1.2 Build Eureka service registration center 1.3 Create subprojects and interface development 1.4 Service registration and discovery 1.4.1 Service registration 1.4.2 Service discovery 2 tests 3 Summary It’s not easy to code. If you like it, just follow it? and continue […]
Understanding of SringCloud-Netflix-OpenFeign/Hystrix/Zuul components
1. Client load balancing—OpenFeign 1.What is Feign? Feign is a declarative http client. Feign can be used to implement declarative REST calls. Its purpose is to make Web Service calls simpler. Feign integrates Ribbon and SpringMvc annotations, which makes Feign’s client interface look like a Controller. Feign provides a template for HTTP requests. By writing […]
Microservices Gateway – SpringCloud Netflix Zuul
Overview Spring Cloud Zuul is one of the core components of the Spring Cloud Netflix sub-project. It can be used as an API gateway in a microservice architecture and has the following uses: Authentication: Authenticate requests to access each service and reject requests that fail authentication. Monitoring: Monitor system requests, record request response logs, and […]
Gateway of Spring Cloud Netflix
Gateway A brief introduction Spring Cloud Gateway is a product of Spring Cloud itself. It is developed based on Spring 5 and Spring Boot 2.0. Spring Cloud Gateway appears to replace zuul. In the high version of Spring Cloud, zuul 2.0 is not integrated. Spring Cloud Gateway uses a high-performance Reactor Schema communication framework Netty. […]
SpringCloudNetflix-Hystrix Fuse
Article directory foreword 1. What is Hystrix? 2. Avalanche effect Three, the function of Hystrix 1. Resource isolation (flow control, current limiting) 2. Service circuit breaker 3. Downgrade mechanism 4. Cache Four, Hystrix working mechanism Five, code implementation 1. Import dependencies 2. The configuration class opens Hystrix 3. Method fusing 4 Underpinning methods Six, Hystrix […]
Spring Cloud Netflix
Several core components of springcloud: EurekaServer (service registration and discovery): Eureka is a service discovery component in Spring Cloud, which allows microservice applications to register themselves with the Eureka server at startup, and can obtain other registered services from the server Information. Service consumers can find available service instances through Eureka to realize dynamic service […]
Spring Cloud-Netflix-03
1. Brief introduction of Spring Cloud Gateway 1.1 The difference between ruul and gateway Ruul version 1.0 is a synchronous blocking mode; gateway is an asynchronous non-blocking mode 1.2 gateway composition (1) Filter (filter) Divided into two categories: GatewayFilter and GlobalFilter GatewayFilter–filters requests to access a certain microservice; GlobalFilter filters all requests to access services […]
Feign of Spring Cloud Netflix
Client load balancing – OpenFeign Why use Feign Feign aims to simplify the code development of microservice consumers (callers, clients). When using Ribbon + RestTemplate to make service calls, RestTemplate is used to package and process http requests to form a set of templated calling methods. In actual development, since there are many interfaces provided […]