Masstransit + Rabbitmq + ElasticSearch + Kibana
In this project, you will see an implementation of pub/sub and request/response using MassTransit and RabbitMQ as a broker.
Requirements
- Docker-desktop
- .Net 5.0 sdk
- Visual studio (optional)
How to run
-
Run this command on the root folder:
dotnet dev-certs https -ep https/aspnetapp.pfx -p yourpassword
Replace "yourpassword" with something else in this command and the docker-compose.override.yml file. This creates the https certificate.
-
Run docker-compose up -d in the root directory, or, in visual studio, set the docker-compose project as startup and run. This should start both the consoleapp and the webapi, and also RabbitMQ, ElasticSearch and Kibana.
-
Visit https://localhost:5001/swagger/index.html to access the application's swagger.
-
To see your logs on Kibana, go to http://localhost:5601/.
- Click on the Hamburger button (☰) on the upper left, then go to Discover, under Analytics.
- Click on
Create index pattern
. On the text field, enterconsumerapp-*
and pressNext step
. - On the time field, select
@timestamp
and pressCreate index pattern
. - On the left side, click on
Index Patterns
, underKibana
. - Repeat steps 2 and 3, but on the text field, enter
webapi-*
. - After that, click on Hamburger button (☰) and go to discover. You should see some logs. You can select each application logs by changing the dropdown on the left, changing the index pattern.