Fading Coder

One Final Commit for the Last Sprint

Using Reactive Feign in Spring Cloud Gateway

Problem Root Cause Spring Cloud Gateway relies on a fully reactive, non-blocking thread pool. Attempting to use standard OpenFeign— which executes synchronous, blocking I/O calls—triggers an IllegalStateException with a message indicating block()/blockFirst()/blockLast() operations are disallowed on...

Building API Gateways with Spring Cloud Gateway, Nacos, and Custom Filters

Dependencies Add the following starters to your pom.xml (or equivalent Gradle coordiantes): <dependency> <groupId>com.alibaba.cloud</groupId> <artifactId>spring-cloud-starter-alibaba-nacos-discovery</artifactId> </dependency> <dependency> <groupId>org....

API Routing and Common Pitfalls with Spring Cloud Gateway and Nacos

Dependency management utilizes the following technology stack versions: <properties> <spring-cloud.version>2020.0.1</spring-cloud.version> <spring-cloud-alibaba.version>2.2.1.RELEASE</spring-cloud-alibaba.version> <maven.compiler.source>11</maven.compiler.sourc...

Internal Mechanics of Spring Cloud Gateway: Auto-Loading Predicates and Filters

Auto-Configuration Entry Point Spring Cloud Gateway acts as a routing proxy that directs incoming requests to downstream services based on defined rules. When working with Gateway, configurations typically involve defining routes with specific predicates and filters. A standard Maven dependency setu...