Generals

Traditional - WebServing, or API

Architectural RolePrimary Focus & LayerWhen to ChooseTop Candidates & ToolsKey Concepts & Recommended Reading
Load BalancerLayer 4 / Layer 7: High availability, horizontal scaling, health checks, and equal traffic distribution across identical servers.You need fault tolerance, failover, and multi-instance distribution for a single service tier.AWS ALB/NLB, HAProxy, Cloudflare LB, F5 BIG-IPβ€’ L4 vs L7 Load Balancing



β€’ HAProxy Architecture Guide



β€’ AWS ELB Deep Dive
Reverse ProxyLayer 7: Edge protection, origin IP masking, SSL termination, static content caching, and URL rewriting.You need to shield backend monoliths/servers, terminate TLS centrally, or cache static assets at the edge.NGINX, Caddy, Traefik, HAProxyβ€’ NGINX Reverse Proxy Guide



β€’ ByteByteGo: Reverse Proxy Basics



β€’ Cloudflare Edge Architecture
API GatewayLayer 7: API governance, authentication (JWT/OAuth), rate limiting, request transformation, and microservice routing.You need to expose diverse backend microservices to public web/mobile clients with unified security and metering.Kong Gateway, Apache APISIX, AWS API Gateway, Envoy, Tyk, KrakenDβ€’ Microservices API Gateway Pattern (Chris Richardson)



β€’ API7 APISIX Architecture Docs



β€’ Kong API Gateway Fundamentals

AI Modeling in 2026, AI-Native Gateway, MCP Routers or Agentic BFFs

2026 Architectural LayerCore Purpose & Native MechanicsProblem SolvedModern Candidates & Native Tools
AI Gateway / LLM ProxyToken-aware rate limiting (TPM vs. RPS), semantic caching via vector embeddings, model fallback chains, and prompt guardrails.Eliminates cost spikes from heavy prompts, guards against provider outages, and reduces latency from seconds to milliseconds on similar queries.Envoy AI Gateway, Apache APISIX (AI Proxy), Gloo AI Gateway, Portkey, LiteLLM
MCP Gateway (Agent Tool Proxy)Multiplexes Model Context Protocol (MCP) tool servers, translates SSE/JSON-RPC streams, and enforces OAuth & tool-level access policies.Enables AI agents to dynamically discover and execute microservice tools securely without exposing direct backend network access.Envoy MCP Gateway, APISIX MCP Bridge, Tailscale Agent Mesh
Agentic BFF (Backend For Frontend)Coordinates bi-directional client streaming (SSE/WebSockets), UI component hydration, and agent session state.Decouples long-lived LLM streams and non-deterministic agent loops from core client rendering code.Next.js AI SDK Actions, FastAPI Agent BFF, GraphQL Subscriptions
Resilient AI MicroservicesWraps external model calls in strict circuit breakers and applies the Saga pattern for compensating actions when multi-step agent runs fail.Prevents cascading system crashes when LLM providers lag or when an autonomous agent fails midway through a sequence.Resilience4j, Temporal, Dapr, LangGraph / CrewAI

Repositories

Documentations

  • ASGI: Asynchronous Server Gateway Interface is a spiritual successor to WSGI, intended to provide a standard interface between async-capable Python web servers, frameworks, and applications.
  • WSGI: the Web Server Gateway Interface
  • Enable CORS: enable cross-origin resource sharing

Articles

Topics

Tool Collections (Curious Version πŸ”­)

API Gateway

  • Apache APISIX: The Cloud-Native API Gateway
  • easegress: A Cloud Native traffic orchestration system
  • Kong: API gateway built for hybrid and multi-cloud, optimized for microservices and distributed architectures 🌟 (Recommended)
  • lura: Ultra performant API Gateway with middlewares
  • tyk: Open Source API Gateway written in Go, supporting REST, GraphQL, TCP and gRPC protocols

WebServer

  • IIS: Window webserver

Tool Collections

WebServer

  • Caddy server: Caddy is a powerful, extensible platform to serve your sites, services, and apps, written in Go 🌟 (Recommended)
  • HAProxy : HAProxy is a free, very fast and reliable reverse-proxy offeringΒ high availability,Β load balancing, and proxying for TCP and HTTP-based applications 🌟 (Recommended)
  • httpd - Apache2 : The Apache HTTP Server Project is an effort to develop and maintain an open-source HTTP server for modern operating systems including UNIX and Windows.
  • Nginx: nginx is an HTTP and reverse proxy server, a mail proxy server, and a generic TCP/UDP proxy server. 🌟 (Recommended - Most powerful)
  • Tomcat: an open source implementation of the JSP Specifications 🌟 (Recommended)
  • Traefik : Traefik is anΒ open-source Edge RouterΒ that makes publishing your services a fun and easy experience 🌟 (Recommended)

ASGI & WSGI

  • gunicorn: A Python WSGI HTTP Server for UNIX 🌟 (Recommended)
  • uvicorn: An ASGI web server implementation for Python