Giter VIP home page Giter VIP logo

rabbitmq's Introduction

Logo

How it works?

Scheme

Publisher ๐Ÿ“จ

The publisher is responsible for sending messages to the message broker. The publisher creates messages and publishes them to specific message queues or exchanges within RabbitMQ, allowing other components, known as consumers, to receive and process those messages.

Exchange โš™๏ธ

Exchange is a message routing agent that receives messages from publishers and routes them to the appropriate message queues based on certain rules. It acts as a mediator between publishers and consumers within the messaging system.

Types of exchanges:

  • Direct โš–๏ธ
    • A direct exchange routes messages based on a matching routing key. When a message is published to a direct exchange, it is delivered to the queue(s) whose binding key exactly matches the routing key of the message. In other words, the routing key serves as a filter for message routing.
  • Fanout ๐Ÿ”—
    • A fanout exchange broadcasts messages to all queues that are bound to it. It ignores the routing key and simply copies the message to all the queues it knows. This exchange type is useful when you want to deliver the same message to multiple consumers or distribute messages for parallel processing.
  • Topic ๐Ÿ›ƒ
    • A topic exchange routes messages based on wildcard patterns defined in the routing keys. The routing key is a string containing multiple words separated by dots. Queues are bound to the exchange using routing patterns that use "*" (wildcard for one word) or "#" (wildcard for zero or more words) to match specific routing keys.

Queue ๐ŸŸฅ ๐ŸŸง ๐ŸŸจ ๐ŸŸฉ ๐ŸŸฆ

The queue is a buffer that holds messages until they are consumed by a consumer application. It acts as a temporary storage location for messages within the messaging system. The messages in a queue can be consumed in a first-in, first-out (FIFO) order.

Consumer ๐Ÿ“ฎ

The consumer is an application or component that receives and processes messages from a message queue. It plays a crucial role in the messaging system by subscribing to specific queues and consuming messages that are published by producers.

Try RabbitMQ

You can simulate the types of exchanges on the ๐Ÿ”—Try RabbitMQ. Examples bellow:

Direct Direct

Fanout Fanout

Topic Topic

rabbitmq's People

Contributors

gustavo-f-b avatar

Stargazers

Alison Ramos da Silva avatar

Watchers

 avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.