Rate Limiting: Token Bucket vs Leaky Bucket on AWS WAF and API Gateway
Token buckets allow bursts and leaky buckets smooth traffic. WAF rate rules and API Gateway usage plans implement neither perfectly, but both matter for layered defense.
Tagged
Token buckets allow bursts and leaky buckets smooth traffic. WAF rate rules and API Gateway usage plans implement neither perfectly, but both matter for layered defense.
That `user_id` label on every HTTP metric turns Amazon Managed Prometheus into a five-figure line item. This guide explains cardinality mechanics, EMF vs remote write, and Application Signals defaults worth disabling.
FIFO guarantees shrink throughput, and unbounded queues only move backpressure to your AWS bill. Ordering, flow control, and Amazon MQ dead-letter patterns vs Kinesis resharding.
Cluster upgrades and Karpenter consolidation look healthy in the console while PDB-blocked evictions freeze your node drain for 45 minutes. This guide covers minAvailable, maxUnavailable, and EKS managed node group semantics.
Cache-aside without an invalidation story ships stale pricing to 2% of users, and those are the hardest users to debug. This guide layers CloudFront, ElastiCache, and DAX with TTL, event-driven purge, and when write-through beats cache-aside.
Whole-item last-write-wins is how Global Tables lose cart merges. When to use counters, OR-Sets, and conflict-free merges vs when to keep a single Aurora writer.
Why Aurora PostgreSQL loves B-tree indexes on OLTP but DynamoDB feels like an LSM, and how cost-based optimization surprises you when statistics go stale on RDS.
Serializable sounds safest until your checkout times out under row locks. This guide maps READ COMMITTED, REPEATABLE READ, and SERIALIZABLE to RDS/Aurora defaults, and when DynamoDB conditional writes are the BASE alternative.
Local JWT validation is fast until revocation lags bite you. When to introspect at Cognito, use API Gateway JWT authorizers, and add Verified Permissions for fine-grained authz.
Packet loss on mobile networks still punishes HTTP/1.1 head-of-line blocking, but HTTP/3 only helps if CloudFront terminates QUIC and your origin connection pools are sized for multiplexed streams. This guide connects Reno, Cubic, BBR, HPACK, and QUIC to ALB and CloudFront decisions.
Consumer group rebalance storms stall processing longer than broker outages. This guide covers cooperative rebalancing, idempotent producers, and transactional reads on Amazon MSK, and says when SQS FIFO is simpler.
A heap that is too small triggers G1 humongous allocations, and one that is too large balloons pause times on Graviton. Corretto on ECS/EKS/Lambda Java, and when ZGC generational beats G1 for API heaps.