#distributed-systems
in blog posts
Designing a Distributed Rate Limiter: GCRA, Hybrid Coordination, and Production Gotchas
An API key has a limit of 100 requests/min. The gateway passes a load test with one replica. Then you add a second replica, rerun the test, and the same key can make 200 requests/min if traffic is distributed evenly. Nothing is wrong with either counter: the bug is that each replica thinks it owns the whole budget.
Apache Kafka vs RabbitMQ: When You Need a Log and When You Need a Queue
An order gets paid. Analytics needs to count the sale, the warehouse needs to release the order, and the customer needs a receipt. These requirements sound like three subscribers to the same message until something breaks: analytics needs to replay a week of orders, but nobody wants to email a week’s worth of receipts again.