Dynamically Modifying @FeignClient Path at Runtime Using BeanFactoryPostProcessor
This solution covers both Spring Boot 2.x and 3.x implementations.
Problem Description
A common requirement arises where each API interface carries an interfacePath defined in a custom annotation on the interface itself. For instance:
@FeignClient(value = "x-module")
public interface XXXService extends XApi {
}
@XXXMapping("/mem ...
Posted on Wed, 13 May 2026 10:14:33 +0000 by AlanG
Implementing Custom Filters and Error Handling with Spring Cloud Zuul
Understanding Zuul Filter MechanismsThe core functionality of the Zuul API Gateway is driven by its filter system, which intercepts HTTP requests and responses to handle cross-cutting concerns. Filters are constructed to manipulate the RequestContext, which holds the state for the current request, including request and response objects, routing ...
Posted on Wed, 13 May 2026 05:30:47 +0000 by Rupuz
Building Eureka Service Registry and High Availability Clusters with Spring Boot and Spring Cloud
Setting Up Eureka Service Registry
Creating Eureka Server
For multiple Spring Boot projects, use a Maven multi-module structure. Create a main Maven project with Spring Boot and Spring Cloud dependencies in the parent POM:
<?xml version="1.0" encoding="UTF-8"?>
<project xmlns="http://maven.apache.org/POM/4.0.0& ...
Posted on Wed, 13 May 2026 05:20:21 +0000 by vmarellano
Building a Movie Ticketing System with Spring Cloud Microservices
System Architecture Overview
This movie ticketing system employs a microservices architecture with the following components:
Core Services:
Movie Service: Handles movie data operations including creation, retrieval, and search
User Service: Manages ticket purchasing and movie queries
Eureka Server: Service registry for service discovery
Config ...
Posted on Wed, 13 May 2026 02:16:11 +0000 by kaimason1
Eureka Service Discovery: A Comprehensive Guide
1. Introduction to Eureka
Eureka is a service discovery solution open-sourced by Netflix, forming part of the Netflix OSS suite. It is commonly used in microservice architectures, with its core function being service registration and discovery.
When a microservice starts up, it registers its network address (e.g., IP and port) with a Eureka ser ...
Posted on Mon, 11 May 2026 05:48:49 +0000 by maxxd
Introduction to Spring Cloud and Service Governance
1. Today's Content
Introduction to Spring Cloud
Spring Cloud Service Governance
2. Introduction to Spring Cloud
2.1 Microservices Architecture
![1587520885330]
Microservices Architecture:
The term "microservices" originated from Martin Fowler's blog post titled "Microservices", which can be found on his official blog: http ...
Posted on Sun, 10 May 2026 02:24:52 +0000 by del753
Centralized Configuration Management and Hot Reloading with Nacos
Nacos functions not only as a service registry but also as a dynamic configuration management server. This capability allows for centralized configuration control, enabling updates to be pushed to multiple services simultaneously without requiring individual modifications or service restarts. When a service starts, it merges local configuration ...
Posted on Thu, 07 May 2026 19:23:50 +0000 by vomitbomb
Load Balancing and Advanced Configuration in Nacos Service Discovery
Nacos clusters organize microservices into logical groups, defaulting to the DEFAULT cluster. Adjust this behavior via the clusterName property in your configuration file:
spring:
cloud:
nacos:
discovery:
server-addr: 127.0.0.1:8848
username: nacos
password: nacos
clusterName: SH
Services in the same ...
Posted on Thu, 07 May 2026 17:41:58 +0000 by Jyotsna
Implementing Client-Side Load Balancing with Ribbon, Eureka, and RestTemplate
Ribbon operates as a client-side load balancer that distributes incoming requests across multiple service instances within the same JVM proces. This approach shifts routing logic from network infrastructure to the consumer application itself.
Begin by establishing provider services that register with an Eureka discovery server. A representative ...
Posted on Thu, 07 May 2026 01:29:44 +0000 by Fawkman