API Gateway Configuration

API Gateway Configuration

Guides a coding agent in configuring API gateways (Kong, Nginx, Traefik, AWS) for routing, authentication, rate limiting and request transformation across microservices.

Skill files8 files

references/

scripts/

templates/

SKILL.md100 lines
1
---
2
name: api-gateway-configuration
3
description: >
4
Configure API gateways for routing, authentication, rate limiting, and
5
request/response transformation. Use when deploying microservices, setting up
6
reverse proxies, or managing API traffic.
7
---
8
9
# API Gateway Configuration
10
11
## Table of Contents
12
13
- [Overview](#overview)
14
- [When to Use](#when-to-use)
15
- [Quick Start](#quick-start)
16
- [Reference Guides](#reference-guides)
17
- [Best Practices](#best-practices)
18
19
## Overview
20
21
Design and configure API gateways to handle routing, authentication, rate limiting, and request/response transformation for microservice architectures.
22
23
## When to Use
24
25
- Setting up reverse proxies for microservices
26
- Centralizing API authentication
27
- Implementing request/response transformation
28
- Managing traffic across backend services
29
- Rate limiting and quota enforcement
30
- API versioning and routing
31
32
## Quick Start
33
34
Minimal working example:
35
36
```yaml
37
# kong.yml - Kong Gateway configuration
38
_format_version: "2.1"
39
_transform: true
40
41
services:
42
- name: user-service
43
url: http://user-service:3000
44
routes:
45
- name: user-routes
46
paths:
47
- /api/users
48
- /api/profile
49
plugins:
50
- name: rate-limiting
51
config:
52
minute: 100
53
policy: local
54
- name: jwt
55
config:
56
secret: your-secret-key
57
key_claim_name: "sub"
58
- name: cors
59
config:
60
origins:
61
- "http://localhost:3000"
62
// ... (see reference guides for full implementation)
63
```
64
65
## Reference Guides
66
67
Detailed implementations in the `references/` directory:
68
69
| Guide | Contents |
70
|---|---|
71
| [Kong Configuration](references/kong-configuration.md) | Kong Configuration |
72
| [Nginx Configuration](references/nginx-configuration.md) | Nginx Configuration |
73
| [AWS API Gateway Configuration](references/aws-api-gateway-configuration.md) | AWS API Gateway Configuration |
74
| [Traefik Configuration](references/traefik-configuration.md) | Traefik Configuration |
75
| [Node.js Gateway Implementation](references/nodejs-gateway-implementation.md) | Node.js Gateway Implementation |
76
77
## Best Practices
78
79
### ✅ DO
80
81
- Centralize authentication at gateway level
82
- Implement rate limiting globally
83
- Add comprehensive logging
84
- Use health checks for backends
85
- Cache responses when appropriate
86
- Implement circuit breakers
87
- Monitor gateway metrics
88
- Use HTTPS in production
89
90
### ❌ DON'T
91
92
- Expose backend service details
93
- Skip request validation
94
- Forget to log API usage
95
- Use weak authentication
96
- Over-cache dynamic data
97
- Ignore backend timeouts
98
- Skip security headers
99
- Expose internal IPs
100

© AJ Geddes · MIT · source · posted by @OpenSourceBuffGuy on promptparty.com

@OpenSourceBuffGuy

I find openly licensed prompts and post them here.

0 followers · 13,332 prompts

More by @OpenSourceBuffGuy

See all
Nine Christmas portraits of one fluffy dog prompt image

Nine Christmas portraits of one fluffy dog

Makes a 3x3 grid of nine hyperrealistic Christmas portraits of the same dog from a reference photo, in trees, snow, studio and cozy indoor scenes.

image-prompt, nano-banana, reference-image, pet-portrait, christmas, holiday, animals, multi-panel, photorealistic, cinematic, soft-lighting, winter, cozy, social-media-graphic, invitation, vertical-format, vibrant-colors, dramatic-lighting, studio-lighting, for-families, pet-care, long-form, bokeh, food-photography

Lab teacher silences class as infected close in prompt image

Lab teacher silences class as infected close in

Generates a short realistic horror clip in a Japanese school science lab where a teacher and students hide silently from infected figures closing in, with sound-driven beats.

video-prompt, horror, cinematic, photorealistic, handheld, timed-beats, camera-movement, negative-prompt, guardrails, moody, short-film, seedance, for-filmmakers, for-content-creators, storytelling, thriller, dramatic-lighting, muted-colors, japan

Valentine's newspaper editorial portrait from your photo prompt image

Valentine's newspaper editorial portrait from your photo

Turns an uploaded face photo into a top-down Valentine's fashion editorial: red blazer, roses, heart balloons and a newspaper headline.

image-prompt, nano-banana, reference-image, face-reference, photo-editing, portrait, woman, fashion-shoot, editorial, valentines-day, photorealistic, studio-lighting, close-up, high-angle, film-grain, vibrant-colors, flowers, text-rendering, placeholders, fashion, holiday, soft-lighting, bokeh, vertical-format

Reviews

Loading reviews…

Discussion

Loading comments…