Message Queues

Last updated

What is Message Queues?

Message queues receive, hold, and deliver messages. If an operation is too slow to perform inline, you can use a message queue with the following workflow:

  • An application publishes a job to the queue, then notifies the user of job status
  • A worker picks up the job from the queue, processes it, then signals the job is complete

The user is not blocked and the job is processed in the background. During this time, the client might optionally do a small amount of processing to make it seem like the task has completed. For example, if posting a tweet, the tweet could be instantly posted to your timeline, but it could take some time before your tweet is actually delivered to all of your followers.

Free resources to learn Message Queues

More in stage 14: Asynchronism

Message Queues: common questions

Can I learn Message Queues in Hindi?

This lesson is written in English. Once you sign in, open it in the interactive course and ask the AI tutor to explain Message Queues in Hindi or Hinglish. The tutor answers from this lesson’s own text, so it stays on the syllabus, and it runs on your own Google, OpenAI or Anthropic key.

Is this Message Queues tutorial for beginners?

It is lesson 43 of 147 in the free System Design roadmap, in stage 14, Asynchronism. If you are new to System Design, start from stage 1 and come back here in order; if you already know the earlier stages, this lesson stands on its own.

Still confused? Ask me