spring-cloud-gateway
An API Gateway built on Spring Framework and Spring Boot providing routing and more.
💡 Why It Matters
This project provides a Java-based API Gateway built on Spring Framework 6 and Spring Boot 3, focusing on dynamic routing and fine-grained route matching using Spring Handler Mapping. It supports HTTP request attributes like path, method, headers, and host for routing decisions, with filters scoped to each route that can modify requests and responses, including header manipulation, path rewriting, and circuit breaking. It integrates with Spring Cloud DiscoveryClient for service discovery-driven routing. Backend and platform engineers benefit most from its deep integration with the Spring ecosystem, simplifying gateway configuration in microservice architectures already using Spring. With nearly 5,000 stars and recent commits, it is mature and stable but shows slow growth, reflecting its established nature. It is not ideal for teams outside the Java/Spring ecosystem or those needing a lightweight, polyglot gateway; alternatives like Kong or Envoy offer broader language support and more extensive proxy features in those cases.
🎯 When to Use
Choose this gateway when your microservices are built with Spring Boot and you want routing and filtering tightly integrated with the Spring ecosystem. If your environment is polyglot or requires advanced L7 proxy features beyond Spring's scope, consider Kong or Envoy, which provide richer protocol support and language neutrality.
👥 Team Fit & Use Cases
Commonly deployed in microservice architectures where services are Spring Boot applications, handling dynamic routing and request manipulation within cloud-native Java environments. Typical use cases include API gateways for internal microservices communication, routing requests based on HTTP attributes, and applying route-specific filters such as circuit breakers or header transformations.
🎭 Best For
🏷️ Topics & Ecosystem
📊 Activity
Latest commit: 2026-11-23. Over the past 372 days, this repository gained 152 stars (+3.2% growth). Activity data is based on daily RepoPi snapshots of the GitHub repository.