architecture
3 posts tagged with "architecture"
Designing Idempotent APIs: Why Your Payment Endpoint Charges Twice
Your user clicked 'Pay' twice and got charged twice. Here's how to design APIs that handle retries, network failures, and duplicate requests without duplicating side effects.
API Rate Limiting Done Right: Algorithms and Implementation
Rate limiting protects your API from abuse. Here's how the major algorithms work and which one to pick for your use case.
Redis Beyond Caching: Queues, Pub/Sub, and Rate Limiters
Redis is not just a cache. I've used it as a message queue, a rate limiter, a leaderboard engine, and a real-time event bus. Here's how, and when to stop.