Skip to content

Latest commit

 

History

40 Commits

Folders and files

NameName
Last commit message
Last commit date
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

NServiceBusDemo

This project is based on the NServiceBus Step-by-step tutoriial. I've modified it to use the IHostBuilder to register NServiceBus instead of the default implementation. I have also implemented OpenTelemetry and the docker stack contains both the OpenTelemetry collector as well as some backends.

Getting started

  1. Run the following PowerShell command:

    ('traces', 'metrics', 'logs') | Foreach-Object {New-Item "C:\temp\otel\$_.json"}
  2. Start docker containers.

    docker-compose up
  3. Add this JSON to user secrets for the ClientUI project.

    {
      "ConnectionStrings": {
        "Persistence": "<SqlConnectionString>",
        "Transport": "<RabbitMqConnectionString>"
      }
    }
  4. Connect to the SQL database with the username and password defined in docker-compose.yml.

  5. Add the NServiceBusDemo database.

  6. Run Billing, ClientUI, Sales and Shipping and send messages from the ClientUI window.

  7. Go to http://localhost:16686 to view traces in Jaeger.

  8. Go to http://localhost:9090 to view metrics in Prometheus.

About

NServiceBusDemo

Resources

Stars

0 stars

Watchers

1 watching

Forks

Releases

Packages

Contributors

Languages