Comment

Comment by benjaminwootton

I view this the opposite way around. Message queues and asynchronicity are an alternative to backpressure as described.

If I synchronously hit some service then I need to build facilities into the service to say that it's too heavily loaded, and perhaps handle those responses on the client.

If I pop some job onto a message queue or asynchronous endpoint, things will just slow down for a while. Which is normally as good a way as any as soaking up load.

Discussion

Live from the official Hacker News API

A modern reader for Hacker News · SvelteKit + Skeleton