The 4 algorithms, when to use each:
Token Bucket → allows bursts, good for APIs
Leaky Bucket → smooths traffic, good for queues
Fixed Window Counter → simple, but has boundary spike problem
Sliding Window Log → precise, but expensive on memory
Know the trade-off of each