API Gateway patterns for routing, authentication, rate limiting, and service composition in microservices architectures. Use when implementing API gateways, building BFF layers, or managing service-to-service communication at scale.
Detected risks:
The 'api-gateway-patterns' skill provides expert guidance for implementing API gateways within microservices architectures. It addresses the common challenges faced when managing service-to-service communication at scale, such as routing, security, rate limiting, and service composition. This skill is designed to help teams implement efficient API gateway infrastructure, ensuring that services communicate effectively while maintaining scalability, security, and reliability in distributed systems.
This skill covers a range of capabilities, including routing requests based on various parameters (path, header, or host), centralized authentication and authorization management, and traffic management techniques like rate limiting, circuit breakers, and retry logic. It also addresses service composition, where multiple backend services can be aggregated into a single unified response. Additionally, it provides insights on implementing these patterns in various API gateway solutions such as Kong, Nginx, Envoy, and AWS API Gateway, making it adaptable to different environments.
The target users of this skill include DevOps engineers, software architects, and backend developers who are responsible for managing API gateways, implementing backend-for-frontend (BFF) layers, and overseeing microservices-based applications. It is especially useful for those looking to improve their service-to-service communication patterns, manage authentication at the gateway level, and ensure robust traffic management and observability in distributed systems.
The architecture depends on your use case. A single gateway works for simpler setups, while the BFF pattern is ideal for different clients (e.g., mobile, web). If you need efficient data fetching and aggregation, the GraphQL Gateway is a good option. A service mesh pattern can be used when you require distributed communication with sidecar proxies.
This skill covers a variety of gateway solutions including Kong, Nginx, Envoy, and AWS API Gateway. Each solution has its strengths depending on your infrastructure and requirements.
Yes, the skill includes patterns for implementing centralized authentication (such as JWT and OAuth) and traffic management strategies like rate limiting, circuit breakers, and retry logic.
You'll need to understand your service landscape, define client types (e.g., mobile, web), and choose an appropriate API gateway solution. Familiarity with concepts like authentication, traffic management, and service composition will be beneficial.
Yes, service discovery is often essential for dynamic routing and ensuring that the gateway can direct requests to the correct backend services, especially in microservices architectures.
Quick Setup:
.claude/skills/Repository
NickCrew/claude-cortex