Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/tomkerkhove/azure-container-apps-demos-keda-scenario
Demo on how to deploy KEDA's .NET Worker scenario on Azure Container Apps
https://github.com/tomkerkhove/azure-container-apps-demos-keda-scenario
azure azure-container-apps keda
Last synced: 3 months ago
JSON representation
Demo on how to deploy KEDA's .NET Worker scenario on Azure Container Apps
- Host: GitHub
- URL: https://github.com/tomkerkhove/azure-container-apps-demos-keda-scenario
- Owner: tomkerkhove
- License: mit
- Created: 2021-11-08T06:47:48.000Z (about 3 years ago)
- Default Branch: main
- Last Pushed: 2022-06-01T13:46:47.000Z (over 2 years ago)
- Last Synced: 2024-10-06T14:24:11.102Z (3 months ago)
- Topics: azure, azure-container-apps, keda
- Homepage:
- Size: 140 KB
- Stars: 20
- Watchers: 3
- Forks: 10
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- Funding: .github/FUNDING.yml
- License: LICENSE
- Codeowners: .github/CODEOWNERS
Awesome Lists containing this project
README
# Azure Container Apps Demos - .NET Core worker processing Azure Service Bus Queue
This application is a .NET Core Worker that is processing an Azure Service Bus queue and provides an ASP.NET Core Web application to visualize the queue depth.
![Scenario](./media/scenario.png)
This is a port of [Kubernetes Event-driven Autoscaling's (KEDA) '.NET Core worker processing Azure Service Bus Queue' sample](https://github.com/kedacore/sample-dotnet-worker-servicebus-queue).
## Deploy
Before you deploy, make sure to configure the required information in `deploy/service-bus-queue.parameters.json`
To deploy the scenario, run the following command to deploy the ARM template:
```cli
az deployment group create -n service-bus-queue -g $RESOURCE_GROUP_NAME --template-file deploy/service-bus-queue.template.json --parameters deploy/service-bus-queue.parameters.json
```It will automatically create the Azure Service Bus namespaces with an orders queue which is being processed by the .NET Worker. The ASP.NET Core website will be deployed to the same resource group and visualize the information related to the pending messages to be processed.
## Test it out
The official KEDA sample provides a message generator that sends messages to the queue, feel free to learn more about it on [GitHub](https://github.com/kedacore/sample-dotnet-worker-servicebus-queue/blob/main/connection-string-scenario.md#publishing-messages-to-the-queue).
## Delete the application
Run the following command to delete the application:
```cli
az containerapp delete -g "$RESOURCE_GROUP_NAME" --name "$CONTAINER_WORKER_APP_NAME"
az containerapp delete -g "$RESOURCE_GROUP_NAME" --name "$CONTAINER_PORTAL_APP_NAME"
```