Skip to content

Latest commit

 

History

History

tutorial_3

Folders and files

NameName
Last commit message
Last commit date

parent directory

..
 
 

Publish/Subscribe

Delivering messages to multiple consumers.

Exchanges

  • A producer is a user application that sends messages.
  • A queue is a buffer that stores messages.
  • A consumer is a user application that receives messages.

The exchange receives messages from a producer. An exchange is a very simple thing. On one side it receives messages from producers and the other side it pushes them to queues. The exchange must know exactly what to do with a message it receives. Should it be appended to a particular queue? Should it be appended to many queues? Or should it get discarded. The rules for that are defined by the exchange type.