api-gateway
$
npx mdskill add TheBeardedBearSAS/claude-craft/api-gatewayAPI Gateway moderne pour routing, auth, rate limiting, observabilité.
SKILL.md
.github/skills/api-gatewayView on GitHub ↗
---
name: api-gateway
description: API Gateway patterns (Kong, Traefik, AWS API Gateway) — rate limiting, auth, routing, versioning. Use when implementing API gateway, reverse proxy, or API management.
triggers:
files: ["**/kong*", "**/traefik*", "**/gateway*", "**/nginx*"]
keywords: ["api gateway", "kong", "traefik", "nginx", "rate limiting", "api management", "reverse proxy", "load balancer", "circuit breaker"]
auto_suggest: true
---
# API 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
```yaml
services:
- name: payment-api
url: http://payment:8080
routes: [{ paths: ["/api/payments"] }]
plugins: [rate-limiting, jwt, prometheus]
```
## Traefik Config
```yaml
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`
More from TheBeardedBearSAS/claude-craft
- adapter-developmentErstellen Sie eine Paperclip-Extension — ein Plugin via @paperclipai/plugin-sdk oder einen Built-in-Adapter unter packages/adapters. Verwenden Sie dies beim Hinzufügen von AI-Runtimes oder Feature-Plugins.
- aggregatesRègle 05 : Aggregates et Aggregate Roots. Use when implementing DDD patterns.
- architecture-clean-dddArchitecture Clean + DDD + Hexagonal - Atoll Tourisme. Use when designing architecture or reviewing code structure.
- architecture-paperclipPaperclip-Two-Layer-Architektur (Control-Plane + Adapter). Verwenden Sie dies beim Entwerfen oder Reviewen von Paperclip-Modul-/Adapter-Grenzen.
- asyncArchitecture async-first avec messaging et queues (Symfony Messenger, Laravel Queue, Ecotone). Use when working with async processing, queues, workers, background jobs.
- atomic-tasksPattern GSD (Get Shit Done) - découper en tâches atomiques avec contextes subagent frais pour combattre le context rot. Use when planning complex work or working past 50% context usage.
- coding-standards-tsPaperclip-TypeScript-Coding-Standards — Strict-Modus, Kebab-Files, kein any, strukturierte Logs. Verwenden Sie dies beim Schreiben oder Reviewen von Paperclip-TS-Code.
- cqrsCQRS - Command Query Responsibility Segregation. Use when implementing DDD patterns, separating read/write models, event sourcing, or building scalable architectures with heterogeneous performance requirements.
- ddd-patternsPatterns DDD - Atoll Tourisme. Use when implementing DDD patterns.
- debug-methodicalDebugging méthodique en 4 phases (reproduce → isolate → fix → verify). Use when investigating a bug, regression, flaky test, or unexpected behavior.