Skip to content

A simple example to showcase Azure container apps capabilities using a TechTalks demo with native integration for Dapr and KEDA

License

Notifications You must be signed in to change notification settings

NileshGule/techtalks-azure-container-apps-demo

Repository files navigation

techtalks-azure-container-apps-demo

This repository is a demo for the Azure Container Apps. It showcases how to deploy a simple .Net core application consisting of two microservices a RabbitMQ Producer and a RabbitMQ Consumer.

The application architecture along with the main components used are shown below.

Application Architecture

Azure container apps have native integration with Dapr and KEDA open source projects. this demo shows how to use Dapr and KEDA to scale the consumer app based on the messages in the RabbitMQ queue.

Pre-requisites:

Note: I am using a Azure Container Registry (ACR) to publish the container images. You can use any container registry of your choice.


Steps to build and deploy the application

Follow the steps mentioned in the build container images to build the container images for TechTalks Producer and Consumer applications.

Push the docker images to the container registry

Follow the steps mentioned in the publish container images to registry to push the container images to the container registry.

We are now all set to deploy the application to Azure Container Apps.


Deploy the application to Azure Container Apps

1 - Create RabbitMQ cluster

Follow the steps mentioned in the create RabbitMQ cluster to create a RabbitMQ cluster.

If you have an existing RabbitMQ cluster, you can skip this step. In this case you will need to update the configuration for the Dapr Pubsub component to point to your RabbitMQ cluster. The same configuration needs to be updated for the KEDA autoscaler configuration.

2 - Configure the RabbitMQ queue

Follow the steps mentioned in the configure RabbitMQ queue to configure the RabbitMQ queue.

3 - Enable Azure Container Apps for your subscription

Follow the steps mentioned in the enable Azure Container Apps to enable Azure Container Apps for your subscription.

4 - Deploy RabbitMQ Producer and Consumer applications to Azure Container Apps

Follow the steps mentioned in the Deploy RabbitMQ Producer and Consumer applications to Azure Container Apps to deploy the RabbitMQ Producer and Consumer applications to Azure Container Apps.

5 - Test the applications

Follow the steps mentioned in the Test the Producer and Consumer apps to test the applications.

Enable KEDA for the Azure Container Apps

Follow the steps mentioned in the autoscale consumer using KEDA to enable KEDA for the Azure Container Apps.

Delete resources

Refer to the cleanup resources to delete the resources created for this demo.


Public talks / YouTube videos linked to this project

  • AzureTar YouTube channel by Jorge Arteiro - Microservices developement with Azure Container Apps, Keda and Dapr
  • Festive Tech Calendar - Getting started with Azure Container Apps
  • YouTube video about creating RabbitMQ VM using Bitnami Marketplace image and Azure Portal
  • YouTube video about creating RabbitMQ VM using Bitnami Marketplace image and Azure CLI

About

A simple example to showcase Azure container apps capabilities using a TechTalks demo with native integration for Dapr and KEDA

Topics

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published