robvet / AzureServiceBusDemo-.net8

Straightforward demo for implementing a Azure Service Bus Queue or Topic with multiple Subscriptions.

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Simple Demo for Azure Service Bus

Producer Project

Publishes messages to a Topic

Secrets are best placed the VS or VSC User Secrets feature

{
  "AzureServiceBus:ConnectionString": "<Connection string that supports both sending and receiving",
  "AzureServiceBus:QueueName": "<queue name>",
  "AzureServiceBus:TopicName": "<topic name>",
  "AzureServiceBus:FirstSubscriptionName": "<name of first subscrioption>",
  "AzureServiceBus:SecondSubscriptionName": "<name of second subscrioption>",
  "AzureServiceBus:ThirdSubscriptionName": "<name of ..nth subscrioption>",
  "ApplicationInsights:InstrumentationKey": "<Instrumentation Key for App Insights>"
}

Azure Function

Consumes Messages from each Subscription

Secrets are best placed the VS or VSC User Secrets feature

{
"ServiceBusConnection": "<Connection string that supports both sending and receiving",
"TopicName": "<topic name>",
"ClaimSubscriptionName": "<subscrioption name>",
"BillingSubscriptionName": "<subscrioption name>",
"LoggingSubscriptionName": "<subscrioption name>",
"ApplicationInsights:InstrumentationKey": "<Instrumentation Key for App Insights>",
"ConnectionStrings": {
      "ServiceBusDemoDBConnection":"<Connection string that supports both sending and receiving"
   }
}

About

Straightforward demo for implementing a Azure Service Bus Queue or Topic with multiple Subscriptions.


Languages

Language:C# 100.0%