Skip to content
This repository has been archived by the owner on Oct 8, 2023. It is now read-only.

gunpuz/MassTransit-direct-exchange-example

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

5 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

MassTransit example using custom direct RabbitMQ exchanges

This repository shows minimal example how to integrate masstransit with other languages like Python via direct exchanges.


DummyApiService
    ↓
    (my-routing-key + correlation_id + reply_to)
    ↓
RabbitMQ(my-exchange)
    ↓
pythonWorker
    ↓
    (reply_to + correlation_id)
    ↓
RabbitMQ(default-exchange)

How to run

  1. run pythonworker.py
  2. build in Debug mode and run DummyApiService
  3. Open https://localhost:5551/swagger/index.html and make request

Prerequisites

RabbitMQ

Install RabbitMQ

helm repo add bitnami https://charts.bitnami.com/bitnami
helm repo update
helm install test --set auth.username=root,auth.password=root,auth.erlangCookie=secretcookie bitnami/rabbitmq
helm delete test

forward ports:

kubectl port-forward --namespace default svc/test-rabbitmq 15672:15672 5672:5672

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published