Ecosyste.ms: Awesome

An open API service indexing awesome lists of open source software.

Awesome Lists | Featured Topics | Projects

https://github.com/sandervandevelde/mqtt-client-service-on-azure-container-instances-demonstration

Stateful MQTT client service on Azure Container Instances demonstration
https://github.com/sandervandevelde/mqtt-client-service-on-azure-container-instances-demonstration

event mqtt processor

Last synced: 25 days ago
JSON representation

Stateful MQTT client service on Azure Container Instances demonstration

Awesome Lists containing this project

README

        

# Stateful MQTT client service on Azure Container Instances demonstration

## Introduction

Demonstration of running a stateful MQTT client service within the Azure Container Instances.

## CLI commands and flow

Regarding the Azure Event Grid MQTT support, check the [az-cli-eventgrid-mqtt.md](az-cli-eventgrid-mqtt.md) for building all MQTT related resources upfront.

If you want to play along, check the [az-cli-mqtt-stateful-service.md](az-cli-mqtt-stateful-service.md) file for building and deploying resouces and container instance.

## Environment variables

The following (sample) environment variables are used:

```
eventHubNamespaceUri = 'acs-eventprocessor-service-ehns.servicebus.windows.net'
consumerGroupName = 'aci'
eventHubName = 'messages'
blobStorageUri='https://acseventhubchckpntstor.blob.core.windows.net/messagesacicheckpoints'
brokerHostName='egns-aci-test-mqtt.westeurope-1.ts.eventgrid.azure.net'
brokerPort='8883'
deviceId='client1-authnID'
publishTopic='acitest/client2-authnID/alert'
```

## Credits

This demonstration is based on:

* the [Event Hub processor](https://learn.microsoft.com/en-us/azure/event-hubs/event-hubs-dotnet-standard-getstarted-send?tabs=passwordless%2Croles-azure-portal&WT.mc_id=AZ-MVP-5002324#update-the-code)
* the [first blog post introducing stateful procesing using the ACI](https://sandervandevelde.wordpress.com/2024/08/24/getting-started-with-azure-container-instances/)
* the [blog post introducing the EventHub Eventprocessor running in the ACI](https://sandervandevelde.wordpress.com/2024/09/04/running-the-event-hub-event-processor-in-azure-container-instances/)

## MIT License

This application is made available under the MIT license.