Prompt Api Gateway
# Prompt — API Gateway for microservices > [🇷🇺 Русский](../ru/prompt-api-gateway.md) · 🇬🇧 **English** [← Index](./README.md) · [Standards](./standards.md) · [Template](./template.md) tags: #prompt #api-gateway #microservice #security #devops #single-shot **Status:** `🟢 Ready` **Owner:** Pandamy619 **Last edit:** 2026-05-20 **Version:** v1 **Source idea:** [LogicBalls — API Gateway Architecture Configurator](https://logicballs.com/ai-prompt/prompts/api-gateway-configurator) **Delta from original:** added explicit edge-concerns / domain-concerns split, requirement to compare gateway options, and the canonical "behavior when context is missing" block. --- ## When to use - When you need to design a gateway for a set of backend services - When auth, rate limits, routing, and observability must be considered up front - When the team is choosing between Kong, NGINX, Traefik, Envoy, or a managed gateway ## What to substitute - `{{gateway_type}}` — enum: `kong | nginx | traefik | envoy | aws_api_gateway | apisix | other` - `{{infrastructure_context}}` — string, e.g. `EKS in AWS, ALB in front of the gateway` - `{{traffic_patterns}}` — string, e.g. `~500 RPS, bursts 2k RPS, 70% reads` - `{{security_requirements}}` — string, e.g. `OAuth2 + mTLS for service-to-service; PCI scope` - `{{backend_services}}` — list, e.g. `payments-api; user-api; notifications-api` - `{{special_requirements}}` — string, e.g. `canary routing 5%; WebSocket for /ws` ## Definition of done Universal minimum — see [Definition of done](./standards.md#2-definition-of-done). Specific criteria: - Explicitly stated which policies live on the gateway and which inside the services - If multiple gateway options are viable — a short comparison is provided - The configuration or IaC fragments are shown in full, not "example config for one route" - The observability section covers access logs, metrics, and tracing headers — all three ## Prompt
fill the variables
This prompt has 6 variables. Pro fills them into a ready-to-paste prompt for you — no manual find-and-replace.
{{gateway_type}{{infrastructure_context}{{traffic_patterns}{{security_requirements}{{backend_services}{{special_requirements}
Unlock with Pro →when to use it
Community prompt sourced from the open-source GitHub repo pandamy619/Promts (MIT). A "Prompt Api Gateway" style prompt — adapt the placeholders and specifics to your task. Imported as-is and not independently retested here, so check the output before relying on it.
tags
codingcommunitydeveloper
source
pandamy619/Promts · MIT
more in Coding
Coding✓ tested
Senior code review (strict mode)
senior staff engineer running a merciless but fair review
Coding✓ tested
Debug by hypothesis, not by guessing
debugging partner who forms theories before touching code
Coding✓ tested
Generate tests from described behavior
test engineer who writes tests that would actually catch regressions