Messaging
Passing work between services.
Words
All learned. See them in History.
-
Backpressure
A way for a slow consumer to make a fast producer slow down, instead of letting work pile up until memory runs out.
-
Dead-letter queue
A side queue where a message goes after it has failed a set number of times, so one broken message stops looping in the main queue.
-
Fan-out
Sending one incoming message or request out to many receivers at once.
-
Pub/sub
A publisher sends an event to a topic without knowing who listens, and every subscriber to that topic gets its own copy.
-
Queue
A list of jobs that producers add to and workers take from, so slow work happens in the background instead of inside the request.