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

Latest commit

 

History

History
44 lines (32 loc) · 919 Bytes

File metadata and controls

44 lines (32 loc) · 919 Bytes

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