System Design: The Distributed Messaging Queue

Lesson 64 of 25610 min readPremium lesson preview
In this lesson3 sections

System Design: The Distributed Messaging Queue

A message queue separates accepting work from completing it. This chapter designs the buffer, ownership, acknowledgement, and retry rules that let producers and consumers run at different rates.

What is a messaging queue?

A messaging queue acts as an intermediary buffer between producers and consumers.

Producers create messages and place them in the queue. Consumers retrieve and process these messages. Multiple producers and consumers can interact with the queue simultaneously.

The following illustration shows two applications interacting via a single messaging queue:

An example of two applications interacting via a single messaging queue
An example of two applications interacting via a single messaging queue

Key components of a messaging queue

A messaging system consists of four main parts:

Producers

The rest of this lesson is for Premium members

Premium opens every lesson in this course, along with all questions and solutions on PracHub.