Tagged articles

spring-cloud-gateway

151 articles · Page 2 of 2
Architect's Tech Stack
Architect's Tech Stack
Jun 1, 2022 · Backend Development

Integrating Alibaba Sentinel for Rate Limiting in Spring Cloud Gateway

This article explains how to integrate Alibaba Sentinel with Spring Cloud Gateway to configure rate‑limiting and circuit‑breaker rules, covering Maven dependencies, Java configuration classes, Sentinel rule definitions, and optional console‑based management for robust backend API protection.

Alibaba SentinelJavarate limiting
0 likes · 10 min read
Integrating Alibaba Sentinel for Rate Limiting in Spring Cloud Gateway
Selected Java Interview Questions
Selected Java Interview Questions
May 27, 2022 · Backend Development

Integrating Alibaba Sentinel with Spring Cloud Gateway for Rate Limiting and Circuit Breaking

This article demonstrates how to integrate Alibaba Sentinel into Spring Cloud Gateway for traffic rate limiting and circuit breaking, covering Maven dependencies, configuration of SentinelGatewayFilter and exception handler, rule definitions via YAML or Java code, and custom API grouping, providing a complete backend gateway protection guide.

Alibaba Sentinelcircuit breakingrate limiting
0 likes · 11 min read
Integrating Alibaba Sentinel with Spring Cloud Gateway for Rate Limiting and Circuit Breaking
Programmer DD
Programmer DD
May 15, 2022 · Information Security

Secure Spring Cloud Microservices with the New Spring Authorization Server

This article explains how to replace the deprecated Spring Security OAuth2 with a modern Spring Authorization Server solution, detailing the authentication flow, required components, configuration examples for Spring Cloud Gateway, Resource Server, and Id Server, and provides step‑by‑step demo instructions.

OAuth2Spring Securityauthorization-server
0 likes · 9 min read
Secure Spring Cloud Microservices with the New Spring Authorization Server
Top Architect
Top Architect
Apr 22, 2022 · Backend Development

Building a Spring Cloud Gateway Service with Dynamic Routing via Nacos and Authentication Filter

This article demonstrates how to set up a Spring Cloud Gateway service using SpringBoot 2.1, configure static routes, implement dynamic routing through Nacos configuration listening, and create a custom authentication GlobalFilter, providing a step‑by‑step guide with Maven dependencies, YAML/JSON examples, and full Java code.

Authentication FilterJavaNacos
0 likes · 12 min read
Building a Spring Cloud Gateway Service with Dynamic Routing via Nacos and Authentication Filter
Programmer DD
Programmer DD
Apr 12, 2022 · Information Security

Secure Microservice Auth with Spring Cloud Gateway & OAuth2

This article explores two common microservice authentication and authorization architectures, compares a dedicated auth server versus gateway‑handled OAuth2 flows, and provides a step‑by‑step implementation using Spring Cloud Gateway, Spring Authorization Server, Spring Security, OpenID Connect, and token relay techniques to secure resources.

OAuth2Token RelayUAA
0 likes · 6 min read
Secure Microservice Auth with Spring Cloud Gateway & OAuth2
Code Ape Tech Column
Code Ape Tech Column
Mar 24, 2022 · Backend Development

Resolving Duplicate Access-Control-Allow-Origin Header Issues in Spring Cloud Gateway

This article explains why Spring Cloud Gateway may return multiple Access-Control-Allow-Origin headers, analyzes the internal processing flow that causes the duplication, and provides two practical solutions—using DedupeResponseHeader configuration or a custom GlobalFilter—to ensure a single, correct CORS header in responses.

CORSHeader DeduplicationJava
0 likes · 11 min read
Resolving Duplicate Access-Control-Allow-Origin Header Issues in Spring Cloud Gateway
Top Architect
Top Architect
Mar 8, 2022 · Information Security

Critical Spring Cloud Gateway Vulnerabilities CVE-2022-22946 and CVE-2022-22947: Description, Impact, and Mitigation

This article explains two high‑severity Spring Cloud Gateway vulnerabilities (CVE‑2022‑22946 and CVE‑2022‑22947), outlines the affected versions, describes how attackers can exploit exposed Actuator endpoints, and provides concrete mitigation steps such as upgrading to safe releases or disabling the gateway actuator.

ActuatorCVE-2022-22946CVE-2022-22947
0 likes · 6 min read
Critical Spring Cloud Gateway Vulnerabilities CVE-2022-22946 and CVE-2022-22947: Description, Impact, and Mitigation
Programmer DD
Programmer DD
Mar 7, 2022 · Backend Development

Why Spring Cloud Gateway Returns Duplicate CORS Headers and How to Fix It

This article explains why Spring Cloud Gateway may emit duplicate Access-Control-Allow-Origin and Vary headers during CORS handling, analyzes the internal processing flow, and provides two practical solutions—using DedupeResponseHeader configuration or a custom GlobalFilter—to eliminate the duplication.

CORSJavaSpring Boot
0 likes · 12 min read
Why Spring Cloud Gateway Returns Duplicate CORS Headers and How to Fix It
Code Ape Tech Column
Code Ape Tech Column
Mar 5, 2022 · Information Security

Spring Cloud Gateway Vulnerabilities CVE-2022-22946 and CVE-2022-22947: Description, Impact, and Mitigation

This article explains two critical Spring Cloud Gateway vulnerabilities (CVE-2022-22946 and CVE-2022-22947), detailing their causes, affected versions, potential impact, and recommended remediation steps such as upgrading to safe releases or disabling the vulnerable actuator endpoint.

CVESpring Bootremote code execution
0 likes · 4 min read
Spring Cloud Gateway Vulnerabilities CVE-2022-22946 and CVE-2022-22947: Description, Impact, and Mitigation
Programmer DD
Programmer DD
Mar 2, 2022 · Information Security

Critical Spring Cloud Gateway Vulnerabilities and How to Mitigate Them

The article outlines two Spring Cloud Gateway CVEs—CVE-2022-22947 (critical code injection) and CVE-2022-22946 (medium HTTP/2 TrustManager issue)—detailing their severity, affected versions, and recommended mitigation steps such as upgrading to 3.1.1+, disabling Actuator, or securing it with Spring Security.

CVEcode injectionhttp2
0 likes · 4 min read
Critical Spring Cloud Gateway Vulnerabilities and How to Mitigate Them
Top Architect
Top Architect
Dec 25, 2021 · Backend Development

Building a Spring Cloud Gateway with Dynamic Routing via Nacos and Implementing Authentication Filters

This tutorial demonstrates how to set up a Spring Cloud Gateway using Spring Boot 2.1, configure static and Nacos‑driven dynamic routes, and create a custom authentication GlobalFilter that validates tokens against Redis, providing a complete guide for backend developers to implement secure, flexible routing.

Authentication FilterJavaNacos
0 likes · 9 min read
Building a Spring Cloud Gateway with Dynamic Routing via Nacos and Implementing Authentication Filters
Alibaba Cloud Developer
Alibaba Cloud Developer
Nov 15, 2021 · Backend Development

Deep Dive into Spring Cloud Gateway: Architecture and Request Flow Explained

This article introduces Spring Cloud Gateway, outlines its core components such as routes, predicates, and filters, and provides a detailed step‑by‑step analysis of the request handling process—including code examples, filter chain execution, routing, and response writing—offering practical insights for backend developers.

API GatewayFiltersJava
0 likes · 10 min read
Deep Dive into Spring Cloud Gateway: Architecture and Request Flow Explained
Code Ape Tech Column
Code Ape Tech Column
Nov 4, 2021 · Backend Development

Integrating Alibaba Sentinel with Spring Cloud Gateway for Rate Limiting

This article demonstrates how to integrate Alibaba Sentinel into Spring Cloud Gateway to implement both route‑level and custom API‑level rate limiting, covering project setup, Maven dependencies, configuration files, custom block responses, and the importance of combining gateway and service‑side throttling for robust microservice protection.

JavaSentinelrate limiting
0 likes · 10 min read
Integrating Alibaba Sentinel with Spring Cloud Gateway for Rate Limiting
Code Ape Tech Column
Code Ape Tech Column
Nov 1, 2021 · Backend Development

Spring Cloud Gateway: Core Concepts, Configuration, Filters, Nacos Integration, and Dynamic Routing

This article explains why a gateway is essential in micro‑service architectures, introduces Spring Cloud Gateway’s core concepts such as routes, predicates and filters, shows step‑by‑step setup with Maven dependencies, demonstrates custom local and global filters, and details integration with Nacos for service discovery, load‑balancing, dynamic routing and global error handling.

FiltersJavaNacos
0 likes · 22 min read
Spring Cloud Gateway: Core Concepts, Configuration, Filters, Nacos Integration, and Dynamic Routing
IT Architects Alliance
IT Architects Alliance
Oct 31, 2021 · Operations

Mastering Rate Limiting: From SLB to Spring Cloud Gateway and Microservices

This article explains how to apply rate limiting at each layer of a modern service architecture—SLB, Nginx, Spring Cloud Gateway, and individual microservices—detailing traffic characteristics, interception methods, isolation techniques, and practical configurations to protect systems from overload, attacks, and cascading failures.

SLBTraffic Managementcircuit breaking
0 likes · 7 min read
Mastering Rate Limiting: From SLB to Spring Cloud Gateway and Microservices
Top Architect
Top Architect
Oct 14, 2021 · Cloud Native

Rate Limiting in Spring Cloud Gateway: Algorithms, Implementations, and Practical Guide

This article provides a comprehensive overview of rate‑limiting techniques for Spring Cloud Gateway, covering common scenarios, classic algorithms such as fixed‑window, sliding‑window, leaky‑bucket and token‑bucket, and practical implementations using Redis, Resilience4j, Bucket4j, Guava and custom local limiters.

RedisResilience4jmicroservices
0 likes · 41 min read
Rate Limiting in Spring Cloud Gateway: Algorithms, Implementations, and Practical Guide
ITFLY8 Architecture Home
ITFLY8 Architecture Home
Oct 9, 2021 · Backend Development

Mastering Rate Limiting in Spring Cloud Gateway: Algorithms, Implementations, and Best Practices

This article explores the evolution of Spring Cloud Gateway, explains common rate‑limiting scenarios and algorithms, reviews open‑source libraries such as Guava, Bucket4j and Resilience4j, and provides detailed guidance for implementing both local and distributed request‑frequency and concurrency limits within the gateway.

Bucket4jJavaResilience4j
0 likes · 40 min read
Mastering Rate Limiting in Spring Cloud Gateway: Algorithms, Implementations, and Best Practices
Top Architect
Top Architect
Sep 30, 2021 · Backend Development

Rate Limiting in Spring Cloud Gateway: Scenarios, Algorithms, Open‑Source Tools, and Practical Implementations

This article comprehensively explains rate‑limiting concepts for Spring Cloud Gateway, covering common throttling scenarios, major algorithms such as Fixed Window, Sliding Window, Leaky Bucket and Token Bucket, reviews popular open‑source libraries, and demonstrates both single‑node and distributed implementations with detailed code examples.

Algorithmsbackendrate limiting
0 likes · 41 min read
Rate Limiting in Spring Cloud Gateway: Scenarios, Algorithms, Open‑Source Tools, and Practical Implementations
Java Interview Crash Guide
Java Interview Crash Guide
Sep 3, 2021 · Backend Development

Mastering Rate Limiting in Spring Cloud Gateway: Algorithms, Implementations, and Pitfalls

This article explores the evolution of Spring Cloud Gateway, explains common rate‑limiting scenarios and algorithms such as fixed‑window, sliding‑window, leaky‑bucket and token‑bucket, reviews open‑source limiters like Guava RateLimiter, Bucket4j and Resilience4j, and provides detailed guidance for implementing both single‑node and distributed rate‑limiting and concurrency‑limiting solutions within the gateway.

JavaResilience4jspring-cloud-gateway
0 likes · 45 min read
Mastering Rate Limiting in Spring Cloud Gateway: Algorithms, Implementations, and Pitfalls
Spring Full-Stack Practical Cases
Spring Full-Stack Practical Cases
Jul 27, 2021 · Backend Development

Mastering Spring Cloud Gateway Filters: Add Header, Parameter, Retry, and More

This guide demonstrates how to configure and test various Spring Cloud Gateway filter factories—including AddRequestHeader, AddRequestParameter, AddResponseHeader, PrefixPath, StripPrefix, Retry, RedirectTo, and default filters—using Spring Boot 2.3.7 with Hoxton.SR9, complete with YAML snippets and code examples.

FiltersJavabackend development
0 likes · 7 min read
Mastering Spring Cloud Gateway Filters: Add Header, Parameter, Retry, and More
Yang Money Pot Technology Team
Yang Money Pot Technology Team
Jul 15, 2021 · Backend Development

Spring Cloud Gateway: Principles and Practical Applications

This article explains the architecture, core concepts, routing mechanisms, configuration options, and extensibility of Spring Cloud Gateway, illustrating how it replaces Zuul with a non‑blocking Netty‑based solution and how to customize routes, predicates, filters, and dynamic updates for microservice environments.

API GatewayFiltersJava
0 likes · 27 min read
Spring Cloud Gateway: Principles and Practical Applications
Architecture Digest
Architecture Digest
Jun 26, 2021 · Backend Development

Design and Technical Specification for a High‑Throughput Messaging Center

This document outlines the technical, business, and product goals, functional requirements, architecture diagrams, technology selections, and detailed design and operational plans for building a highly available messaging center capable of handling 10,000 messages per second upstream and 1,000 messages per second downstream.

messagingspring-cloud-gateway
0 likes · 5 min read
Design and Technical Specification for a High‑Throughput Messaging Center
Ops Development Stories
Ops Development Stories
May 21, 2021 · Backend Development

How to Integrate Sentinel with Spring Cloud Gateway for Flow Control

This guide explains how to use Alibaba Sentinel with Spring Cloud Gateway, covering dependency setup, YAML configuration, gateway startup parameters, and defining flow‑control rules to protect microservice routes, including code examples and a brief summary of customization options.

Flow ControlSentinelmicroservices
0 likes · 4 min read
How to Integrate Sentinel with Spring Cloud Gateway for Flow Control
dbaplus Community
dbaplus Community
May 20, 2021 · Backend Development

Mastering API Gateways with Spring Cloud Gateway: Routing, Rate Limiting, and Dynamic Configuration

This article explains the purpose and principles of API gateways in microservice architectures, introduces Spring Cloud Gateway's core concepts and workflow, and provides step‑by‑step examples for basic routing, weighted routing, rate limiting, and dynamic route management with complete code snippets.

API GatewayDynamic ConfigurationRouting
0 likes · 19 min read
Mastering API Gateways with Spring Cloud Gateway: Routing, Rate Limiting, and Dynamic Configuration
Spring Full-Stack Practical Cases
Spring Full-Stack Practical Cases
May 8, 2021 · Backend Development

How to Configure Spring Cloud Gateway Route Predicates for Precise Routing

This guide explains how to configure various Spring Cloud Gateway route predicates—including After, Before, Between, Cookie, Header, Host, Method, Path, and Query—providing YAML examples, execution flow, and test results to achieve precise request routing in a Spring Boot microservice environment.

microservicesroute predicatesspring-cloud-gateway
0 likes · 9 min read
How to Configure Spring Cloud Gateway Route Predicates for Precise Routing
58 Tech
58 Tech
Jan 20, 2021 · Cloud Native

Design and Implementation of a Spring Cloud Gateway Sidecar for 58 Anjuke Real Estate Platform

This article details the background, selection, sidecar‑based deployment, custom features, performance testing, and production rollout of a Spring Cloud Gateway API gateway used to unify authentication, anti‑scraping, and routing logic across Node.js, Java, and PHP services in the 58 Anjuke second‑hand housing business line.

API GatewayJavacloud-native
0 likes · 9 min read
Design and Implementation of a Spring Cloud Gateway Sidecar for 58 Anjuke Real Estate Platform
Java Architect Essentials
Java Architect Essentials
Oct 5, 2020 · Backend Development

Implementing Distributed Rate Limiting in Spring Cloud Gateway with Token Bucket and Lua Script

This article explains how Spring Cloud Gateway uses a token‑bucket algorithm backed by Redis and a Lua script to perform distributed rate limiting, reviews common limiting algorithms, provides detailed Java and Lua code examples, and analyzes each step of the implementation for high‑concurrency systems.

Luadistributed systemsrate limiting
0 likes · 7 min read
Implementing Distributed Rate Limiting in Spring Cloud Gateway with Token Bucket and Lua Script
Programmer DD
Programmer DD
Jul 20, 2020 · Backend Development

Master Spring Cloud Gateway: Build High‑Performance API Gateways Quickly

This article introduces Spring Cloud Gateway, explains its core concepts such as routes, predicates, and filters, demonstrates how to quickly set up a gateway with both Java‑based and configuration‑based routing, and shows how to create custom global and route‑specific filters for advanced request handling.

API GatewayJavaSpring Boot
0 likes · 13 min read
Master Spring Cloud Gateway: Build High‑Performance API Gateways Quickly
Java Architecture Diary
Java Architecture Diary
May 25, 2020 · Cloud Native

Mastering Global Exception Handling in Spring Cloud Gateway

This article explains why traditional @ControllerAdvice fails in Spring Cloud Gateway, introduces the built‑in ExceptionHandlingWebHandler and DefaultErrorWebExceptionHandler, and shows how to override them with a custom GlobalExceptionConfiguration for robust reactive error handling.

JavaSpring BootWebFlux
0 likes · 5 min read
Mastering Global Exception Handling in Spring Cloud Gateway
macrozheng
macrozheng
Jan 6, 2020 · Backend Development

How to Fix CORS Errors When Calling Services Through Spring Cloud Gateway

This article explains why a Spring Cloud Gateway‑based microservice project encounters CORS‑related login failures, demonstrates how to reproduce the issue, and provides step‑by‑step configuration changes—including a global CORS filter and removal of duplicate filters—to resolve the problem.

CORSbackend developmentspring-cloud-gateway
0 likes · 5 min read
How to Fix CORS Errors When Calling Services Through Spring Cloud Gateway
macrozheng
macrozheng
Oct 28, 2019 · Cloud Native

Master Spring Cloud Gateway: From Setup to Advanced Routing & Filters

Spring Cloud Gateway provides a powerful, reactive API gateway for Spring Boot applications, offering dynamic routing, predicates, and a variety of filters such as rate limiting, retries, and circuit breaking, with detailed examples of configuration via YAML and Java beans, integration with Eureka, and practical code snippets.

FiltersRoutingSpring Boot
0 likes · 18 min read
Master Spring Cloud Gateway: From Setup to Advanced Routing & Filters
Java Architecture Diary
Java Architecture Diary
Jul 30, 2019 · Backend Development

Mastering Dynamic Rate Limiting in Spring Cloud Gateway with Sentinel

This article examines the limitations of Spring Cloud Gateway's native RequestRateLimiter, introduces Sentinel's flow control integration, provides Maven dependencies, configuration examples, and demonstrates dynamic rate‑limiting adjustments via Nacos, illustrating effective traffic protection for microservice gateways.

NacosSentinelrate limiting
0 likes · 7 min read
Mastering Dynamic Rate Limiting in Spring Cloud Gateway with Sentinel
Programmer DD
Programmer DD
Aug 18, 2018 · Backend Development

How to Implement Multi-Dimensional Rate Limiting in Spring Cloud Gateway

This guide explains how Spring Cloud Gateway replaces Zuul and provides Redis‑based multi‑dimensional rate limiting, covering Maven dependencies, YAML configuration, custom key resolver beans, stress testing, Redis key monitoring, core Java implementation, and the underlying Lua script.

Redisrate limitingreactive
0 likes · 5 min read
How to Implement Multi-Dimensional Rate Limiting in Spring Cloud Gateway