Examples
| Getting Started * Create a Sender * Create a Reciever * Run an Application | Hello World In this simple HelloWorld example, We will create a Sender program that sends messages to a queue and we will create a Reciever program that picks the messages from a queue and consumes it. |
Direct Exchange in AMQP![]() * A Producer sends a message to an Exchange. * A Queue binds to an Exchange using a routing key. * The message sent to the Exchange contains a routing key. * Consumers subscribe to the Queue receives the message and processes it. | Topic Exchange in AMQP![]() * A message Queue binds to an Exchange with a routing key pattern (P). * A publisher sends a message with a routing key (K) to the Topic Exchange. * The message is passed to the Queue if P matches with K. T * The consumer subscribing the Queue receives the message. |
Headers Exchange in AMQP![]() * One or more Queues bind (linked) to a Headers Exchange using header properties( H ). * A Producer sends a message to this Exchange with a Header property (MH). * If MH matches with H, the message is forwarded to the Queue. The Headers matching algorithm is discussed next. * The consumers listening to the Queue receives the message and processes it. | Fanout Exchange in AMQP![]() * One or more Queues bind to the Fanout exchange with no routing keys. * A publisher sends the Exchange a message. * The Exchange then forwards the message to the Queues unconditionally. |




