Publishers Blocked
Easy · system design problem
Order placement starts failing — at the API. Nothing is wrong with the API: RabbitMQ hit its memory alarm because the consumers slowed down.
orders-api publishes 6,000 orders/s to RabbitMQ; order-workers fraud-check each order with a vendor and store it. At T+20s the fraud vendor gets 10× slower for the rest of the day (it keeps enough capacity). Orders must still be fraud-checked. RabbitMQ’s memory high watermark is fixed by the broker’s RAM, and orders may be processed up to two minutes late.
Topics
More
Codelays runs in your browser: turn on JavaScript to use it.