Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
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
- Host: GitHub
- URL: https://github.com/sandervandevelde/mqtt-client-service-on-azure-container-instances-demonstration
- Owner: sandervandevelde
- License: mit
- Created: 2024-09-06T08:03:01.000Z (2 months ago)
- Default Branch: main
- Last Pushed: 2024-09-13T09:40:43.000Z (about 2 months ago)
- Last Synced: 2024-10-12T23:20:10.850Z (25 days ago)
- Topics: event, mqtt, processor
- Language: C#
- Homepage:
- Size: 47.9 KB
- Stars: 1
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE.txt
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.