Content-Length: 296844 | pFad | http://github.com/berkanserbes/rabbitmq-exchange-types-demo

29 GitHub - berkanserbes/rabbitmq-exchange-types-demo: This repository demonstrates the message routing mechanisms of different RabbitMQ exchange types through C# and Node.js implementations.
Skip to content

This repository demonstrates the message routing mechanisms of different RabbitMQ exchange types through C# and Node.js implementations.

License

Notifications You must be signed in to change notification settings

berkanserbes/rabbitmq-exchange-types-demo

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

20 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

RabbitMQ Exchange Types Demo

This repository contains implementations of various RabbitMQ exchange types, demonstrating different message routing patterns. The project includes both C# and Node.js implementations for different exchange types.

📚 Navigation

Exchange Type Node.js Producer Node.js Consumer C# Producer C# Consumer
Direct Exchange Producer Consumer Producer Consumer
Fanout Exchange Producer Consumer Producer Consumer
Topic Exchange Producer Consumer Producer Consumer
Headers Exchange Producer Consumer Producer Consumer
Dead Letter Exchange Producer Consumer Producer Consumer
Alternate Exchange Producer Consumer Producer Consumer

Project Structure

The project is organized into two main directories:

C# Implementations

  • Located in the c-sharp directory
  • Contains implementations of different RabbitMQ exchange types in C#

Node.js Implementations

  • Located in the nodejs directory
  • Contains implementations of different RabbitMQ exchange types in Node.js

Exchange Types Demonstrated

The project demonstrates several RabbitMQ exchange types:

  1. Direct Exchange

    • Routes messages to queues based on exact matching of the routing key
  2. Fanout Exchange

    • Broadcasts messages to all bound queues regardless of the routing key
  3. Topic Exchange

    • Routes messages based on pattern matching of the routing key
  4. Headers Exchange

    • Routes messages based on message headers rather than routing keys
  5. Dead Letter Exchange

    • Routes messages to a dead letter queue when they cannot be delivered to the intended queue
  6. Alternate Exchange

    • Routes messages to an alternate exchange when they cannot be delivered to the intended exchange

Getting Started

Prerequisites

  • Cloud RabbitMQ server
  • Node.js (for Node.js implementations)
  • .NET SDK (for C# implementations)

Running the Examples

Each exchange type implementation contains both producer and consumer components. The specific setup and running instructions can be found in each implementation directory.

Implementation Details

Node.js Implementation

  • Uses the amqplib package for RabbitMQ communication
  • Each exchange type has its own producer and consumer implementation
  • Configuration is handled through environment variables

C# Implementation

  • Uses the RabbitMQ .NET client library
  • Implements different exchange types with proper error handling
  • Includes examples of message publishing and consuming

Contributing

Feel free to submit issues and enhancement requests!

License

This project is licensed under the terms of the MIT license.

About

This repository demonstrates the message routing mechanisms of different RabbitMQ exchange types through C# and Node.js implementations.

Topics

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published








ApplySandwichStrip

pFad - (p)hone/(F)rame/(a)nonymizer/(d)eclutterfier!      Saves Data!


--- a PPN by Garber Painting Akron. With Image Size Reduction included!

Fetched URL: http://github.com/berkanserbes/rabbitmq-exchange-types-demo

Alternative Proxies:

Alternative Proxy

pFad Proxy

pFad v3 Proxy

pFad v4 Proxy