1/20
Vocabulary flashcards covering key concepts, algorithms, architectural patterns, and industry implementations of API gateway caching and throttling.
API Gateway
A critical intermediary layer that acts as a unified entry point for client requests in microservices and distributed systems, handling cross-cutting concerns such as request routing, protocol translation, authentication, authorization, and traffic management.
Caching
A performance optimization mechanism that temporarily stores frequently requested data at the gateway level, allowing subsequent requests to be served directly without querying backend services to reduce latency and server load.
Throttling
A traffic control mechanism that enforces rate limits on incoming requests system-wide or per consumer to prevent backend resources from being overwhelmed by unexpected traffic surges or malicious activity.
In-Memory Caching
A caching approach that stores key-value pairs directly in a process's local memory or a shared in-memory store such as Redis or Memcached to achieve extremely low access latencies.
Distributed Caching
A multi-node caching architecture that provides consistency across multiple gateway instances and incorporates automatic cache scaling and self-healing to maintain high availability under dynamic workloads.
Edge Caching
A technique that positions cache nodes in geographically distributed locations close to end-users (such as in CDNs) to minimize round-trip network latency.
Time-to-Live (TTL)
A time-based cache expiration policy that designates a specific duration after which a cached response is marked invalid and must be re-fetched or refreshed.
Event-Based Invalidation
A cache invalidation technique where cached items are immediately updated or purged in response to changes in the underlying data source, typically through a push or subscription mechanism.
ETag (Entity Tag)
A version-based cache freshness mechanism that matches resource identifiers between the client and server to verify cache validity and prevent serving stale content.
Fixed Window Algorithm
A rate-limiting algorithm that counts the number of incoming requests within distinct, fixed time blocks (e.g., every 60seconds) and resets the counter to zero at the start of each new window.
Sliding Window Algorithm
A precise rate-limiting technique that logs timestamps for individual requests within a rolling timeframe, eliminating burst vulnerabilities at window boundaries at the cost of higher memory overhead.
Token Bucket Algorithm
A rate-limiting algorithm in which tokens accumulate in a bucket at a steady rate; each incoming request consumes a token, allowing short bursts of traffic up to the bucket capacity while maintaining a stable average rate.
Leaky Bucket Algorithm
A traffic-shaping rate-limiting mechanism that queues incoming requests and releases or processes them at a constant, steady rate regardless of incoming traffic burstiness.
Adaptive Throttling
A dynamic traffic management approach that automatically modifies rate-limiting thresholds at runtime based on live system metrics such as CPU utilization, memory usage, or error rates, sometimes utilizing machine learning models.
Microcaching
A technique of caching dynamic responses for extremely brief intervals (e.g., 1 to 5seconds), significantly reducing backend load during rapid traffic spikes while preserving relative data freshness.
Bypassing Throttling on Cache Hits
An orchestration pattern in which requests satisfied entirely by the caching layer do not increment the consumer's rate-limiting or throttling counters.
Throttling Pre-Check
An orchestration pattern where the gateway validates whether an incoming request exceeds rate limits before initiating caching lookups, avoiding unnecessary cache processing for rejected calls.
limit_req_zone
An NGINX configuration directive used to allocate shared memory zones for tracking request rates and enforcing rate limits along with burst capacities.
EVCache
A custom distributed caching solution based on Memcached developed by Netflix to cache catalog data at the edge and maintain service availability during backend microservice throttling.
QoS-Aware Caching
A caching strategy that factors quality-of-service parameters, such as client priority tiers, into cache retention and routing decisions to guarantee lower latencies for premium consumers.
API Gateway Reference Architecture
A layered pipeline framework composed of a Request Parser, Authentication & ACLs, a Caching Layer (splitting traffic into cache hits and cache misses), a Throttling & Rate Limit layer, and Backend Services.
