PromptsVault AI is thinking...
Searching the best prompts from our community
Searching the best prompts from our community
Prompts matching the #api-security tag
Deploy and manage API gateways with rate limiting, authentication, and security controls for microservices architecture. API Gateway features: 1. Request routing: path-based routing, host headers, query parameters, weighted routing for A/B testing. 2. Protocol translation: REST to GraphQL, HTTP to gRPC, WebSocket support. 3. Response transformation: data format conversion, header modification, CORS handling. 4. Caching: response caching (5-minute TTL), cache invalidation, edge caching integration. Rate limiting strategies: 1. Throttling levels: per-API key (1000 req/min), per-IP (100 req/min), global limits. 2. Rate limiting algorithms: token bucket, sliding window, fixed window approaches. 3. Burst handling: temporary burst allowance, graceful degradation during spikes. Authentication methods: 1. API key management: key rotation, expiration policies, usage analytics. 2. OAuth 2.0/JWT: token validation, scope-based authorization, refresh token handling. 3. mTLS: certificate-based authentication, client certificate validation. Security controls: 1. Input validation: request size limits (10MB), content type validation, schema enforcement. 2. WAF integration: SQL injection prevention, XSS protection, bot detection. 3. DDoS protection: rate limiting, IP blocking, geographic restrictions. Monitoring and analytics: 1. Request metrics: latency percentiles (P50, P95, P99), error rates, throughput tracking. 2. API usage: top consumers, endpoint popularity, quota utilization. Load balancing: upstream health checks, circuit breaker pattern, retry mechanisms with exponential backoff.