Spring Cloud load balancing and service invocation (Ribbon)

Table of Contents Ribbon Introduction load balancing Introduction Load balancing method Server-side load balancing working principle Features Client load balancing working principle Features Compared accomplish Load balancing strategy Switch load balancing strategy Customized load balancing strategy Timeouts and retries Single service configuration Global configuration service call Example Ribbon Introduction Ribbon is an open source component […]

[Middleware] Practice of mixed invocation of multi-language services

Practice of mixed invocation of multi-language services Foreword For Java services, the microservice framework is already very mature. From service registration to service discovery, RPC calls between various microservices have open source implementation logic. However, the author recently needs to deploy Java and Python microservices in the cluster at the same time and implement mutual […]

[Spring Cloud] Understand the microservice architecture and split a simple demo to implement remote invocation of services

Article directory Preface 1. Understanding microservices 1.1 The evolution of service architecture: from monolith to microservices Monolithic architecture Distributed architecture Microservice architecture 1.2 Comparison of microservice technologies: Dubbo, Spring Cloud, Spring Cloud Alibaba Technology comparison Choice of company needs 1.3 Spring Cloud: The essence of microservice framework What is Spring Cloud Spring Cloud features Version […]

Dapr-6 Dapr service invocation building blocks

Chapter 6 Dapr Service Invocation Building Block https://docs.microsoft.com/en-us/dotnet/architecture/dapr-for-net-developers/service-invocation Throughout distributed systems, services often need to communicate with other services to complete business operations. The Dapr service invocation building block can help simplify communication between services. 6.1 What kind of problem is solved Calling between services in a distributed system may seem simple, but it involves […]

Error reporting java.lang.reflect.InvocationTargetException after the new environment is packaged

Background: Business scenario: The MySQL database periodically synchronizes a small amount of data from the Oracle database, every few minutes Version information: server jdk1.8.0_171, development and compilation environment jdk1.8.0_181 idea2023.1.2 Technical framework: Maven was used to manage dependencies, and no traces of frameworks such as spring were found Description of the problem After a small […]

The ExposeInvocationInterceptor interceptor function in the chain call of Spring AOP source code exploration

Article directory ExposeInvocationInterceptor sample code Source code analysis extendAdvisors makeAdvisorChainAspectJCapableIfNecessary Add the call chain of the extended interceptor Function example Summarize Related Learning Paths JAVA Senior Architect Growth Route -> Open Source Framework Interpretation -> Spring Framework Source Code Interpretation ExposeInvocationInterceptor From the English name, as the name implies, it exposes the interceptor of the […]

The Thirty-seventh chapter of Spring’s Road to God: @EnableAsync & @Async implements method asynchronous invocation

1. Content of this article Explain @EnableAsync & amp; @Async in detail, mainly in the following points. Action Usage Get asynchronous execution results Customize the thread pool for asynchronous execution Custom exception handling Thread isolation Source code & amp; principle 2. Function The asynchronous invocation of the bean method is implemented in the spring container. […]

Nacos, seata 1.5.2 installation integration and error message, Exception in thread “main” java.lang.reflect.InvocationTargetException.

seata download website download center (seata.io) The version I installed this time is seata.1.5.2 because the version of spring-cloud used in my project is 2021.0.4. I originally wanted to use seata1.6.1, but after my search, it is not compatible with the version I am currently using. My version is: <spring-cloud.version>2021.0.4</spring-cloud.version> <spring-cloud-alibaba.version>2021.0.4.0</spring-cloud-alibaba.version> After downloading, I uploaded […]

Installation and command usage of Redis database and invocation of python

Introduction to Redis Redis is completely open source and free, and is a high-performance key-value database. Redis and other key-value cache products have the following three characteristics: Redis supports data persistence, which can save the data in the memory to the disk, and load it again when restarting. Redis not only supports simple key-value type […]

Service Invocation/Communication – OpenFeign Best Practices

Spring Cloud OpenFeign is a declarative service call and load balancing component officially launched by Spring. Its bottom layer is based on Netflix Feign, which is an open source declarative WebService client designed by Netflix to simplify communication between services. Spring Cloud openfeign enhances Feign to support Spring MVC annotations, and integrates Ribbon and Nacos, […]