About api-gateway
A skill for API gateway design and configuration, covering routing, authentication, rate limiting, load balancing, and circuit breaker patterns. It outlines stacks including Kong, Traefik, AWS API Gateway, Nginx, and Envoy, with configuration examples.
Key features
- 01Path, header, and canary routing
- 02JWT, OAuth2, and API key authentication
- 03Multiple rate-limiting algorithms
- 04Load balancing and circuit breakers
- 05Kong and Traefik configuration examples
Use cases
- 01Configure API request routing
- 02Add authentication to an API
- 03Set per-user or per-IP rate limits
- 04Plan load balancing and circuit breaking
Install
Copy the command and run it in a terminal.
npx skills add https:/ / github.com/ thebeardedbearsas/ claude-craft --skill api-gatewayAfter installing, type/api-gatewayin Claude Code to confirm it loaded.
Details
From the project READMEAPI Gateway — Kong, Traefik, Patterns
API Gateway moderne pour routing, auth, rate limiting, observabilité.
Responsabilités
| Fonction | Outils |
|---|---|
| Routing (path, header, canary) | Kong, Traefik, Nginx |
| Auth (JWT, OAuth2, API keys) | Kong plugins, Traefik middleware |
| Rate Limiting (per-user/IP) | Redis-backed counters |
| Load Balancing | HAProxy, Traefik |
| Circuit Breaker | Resilience4j, Istio |
Stacks
Kong — Enterprise, plugins riches, K8s-native
Traefik — Cloud-native, auto-discovery
AWS API Gateway — Managed, serverless
Nginx — Performance max, self-hosted
Envoy — Service mesh (Istio), gRPC
Kong Config
services:
- name: payment-api
url: http://payment:8080
routes: [{ paths: ["/api/payments"] }]
plugins: [rate-limiting, jwt, prometheus]
Traefik Config
http:
routers:
payment:
rule: "PathPrefix(`/api/payments`)"
middlewares: [rate-limit, auth]
middlewares:
rate-limit:
rateLimit: { average: 100, burst: 50 }
Rate Limiting Algorithms
Fixed Window — Simple counter, bursty
Sliding Window — Rolling counter, lissé
Token Bucket — Flexible, burst toléré
Leaky Bucket — Output constant, strict
Pour setup : @devops-engineer