Getting started with Spring cloud-5: Service Registry Eureka Service Discovery & self protection mechanism

1. Service discovery   in the last blog post, Eureka cluster environment has been built. As shown in the figure above, three services have been registered in the eureka cluster: order service (80018002) and consumption order module 80. At this time, we want to check how many services have been registered in the service registry. What ...

Posted by danielle on Sat, 08 Jan 2022 12:37:57 +0100

Eureka Server source code startup process and REST interface analysis

catalogue EurekaBootStrap initEurekaEnvironment initEurekaServerContext ApplicationInfoManager Create EurekaClient Create a registry of application instance information Initialize EurekaServerContext EurekaBootStrap Eureka server # startup entry: this class implements ServletContextListener. When the Servlet container (such as Tomca ...

Posted by victordb on Wed, 05 Jan 2022 01:50:16 +0100

Eureka Client service discovery principle

  1, Eureka Client's work Application startup phase Read the configuration information interacting with Eureka Server and package it into Eureka clientconfigRead its own service instance configuration information and package it into EurekaInstanceConfigPull the registry information from Eureka Server and cache it locallyService registrat ...

Posted by surreal5335 on Mon, 03 Jan 2022 18:32:49 +0100

Stop using BeanUtils. Isn't this PO VO DTO conversion artifact fragrant?

Click on "end of life", pay attention to the official account. Daily technical dry goods, delivered at the first time! 1. Foreword Are old fellow owners often troubled by writing some original code of entity conversion, especially when there are many physical fields. Introduce an open source project mapstruct, which can easily ...

Posted by Prismatic on Fri, 31 Dec 2021 21:17:54 +0100

Spring Cloud Open Feign series [6] ribbon configuration class source code analysis

Ribbon auto configuration class Based on the automatic configuration function provided by Spring Boot, the Ribbon automatically configured classes are available at org.com springframework. cloud. netflix. The RibbonClientConfiguration and RibbonAutoConfiguration configuration classes of the Ribbon package. RibbonAutoConfiguration Ribbon ...

Posted by Love_Daddy on Tue, 28 Dec 2021 15:36:26 +0100

SpringCloud Alibaba Nacos service registration and configuration center

1, Introduction to Nacos Why Nacos The first four letters of Nacos are the first two letters of Naming and Configuration respectively, and the last s is Service What is Nacos A dynamic service discovery, configuration management and service management center that is easier to build cloud native applications Nacos: Dynamic Naming and Configura ...

Posted by idire on Tue, 28 Dec 2021 13:03:01 +0100

Application practice of 04 Nacos service registry

Introduction to registration center Background analysis In microservices, the first problem we need to face is how to find services (software is a service), and the second is how to communicate between different services? How to manage each service in the application better and more conveniently, and how to establish the link between various ...

Posted by SergiuGothic on Mon, 27 Dec 2021 17:44:50 +0100

Eureka cluster deployment and pit stepping records (attention, attention!!!)

1, Eureka cluster deployment It is recommended to deploy in strict accordance with the steps first, otherwise it is easy to cause problems. The possible problems will be described below 1. Create a maven project, pom example is as follows <?xml version="1.0" encoding="UTF-8"?> <project xmlns="http://maven.apache.org/POM/4.0.0" ...

Posted by kingman65 on Wed, 22 Dec 2021 01:40:50 +0100

4: Spring cloud ribbon, Feign load balancing

1.Ribbon meaning Spin cloud ribbon is a set of client load balancing tools based on NetfixRibbon is a set of open source projects released by Netfix. Its main function is to provide the client software load balancing method to connect the middle tier services of Netfix. Ribbon's client provides a series of complete configuration items: connect ...

Posted by NL_Rosko on Sun, 19 Dec 2021 13:32:27 +0100

Spring Cloud learning Eureka service registration and discovery

Establishment of Eureka service registry New module Modify POM xml <dependencies> <dependency> <groupId>org.springframework.cloud</groupId> <artifactId>spring-cloud-starter-netflix-eureka-server</artifactId> </dependency> <!-- Introduce custom a ...

Posted by Hades on Thu, 16 Dec 2021 14:37:08 +0100