https://github.com/eavanvalkenburg/azure_durable_function_waitforfilesandprocess
Durable Azure Function that waits for three types of files and then processes them.
https://github.com/eavanvalkenburg/azure_durable_function_waitforfilesandprocess
azure azure-functions azure-functions-v3 azure-python-functions durable-functions python
Last synced: 2 months ago
JSON representation
Durable Azure Function that waits for three types of files and then processes them.
- Host: GitHub
- URL: https://github.com/eavanvalkenburg/azure_durable_function_waitforfilesandprocess
- Owner: eavanvalkenburg
- Created: 2020-06-22T16:25:18.000Z (almost 5 years ago)
- Default Branch: master
- Last Pushed: 2020-06-24T07:15:33.000Z (almost 5 years ago)
- Last Synced: 2025-02-08T21:49:17.371Z (4 months ago)
- Topics: azure, azure-functions, azure-functions-v3, azure-python-functions, durable-functions, python
- Language: Python
- Homepage:
- Size: 3.08 MB
- Stars: 1
- Watchers: 2
- Forks: 2
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# Azure Durable Function - Python sample
A set of python functions built on [the preview](https://github.com/Azure/azure-functions-durable-python/tree/dev) that waits for three types of events, processes them, and finally writes them to CosmosDB. Triggered by Event Grid.
### Client
The Client is the actual listener for events, it is triggered by an [Event Grid Event](https://docs.microsoft.com/en-us/azure/azure-functions/functions-bindings-event-grid-trigger?tabs=python), and uses the information in it to decide which instance this is and raises an event on that instance of a type that matches the incoming event.### Orchestrator
The orchestrator has the main logic, it creates three tasks for the three different event types and waits for the events associated with those, once all three events have taken place it starts the next two activities.### CombineFiles
This activity takes the completed set of files and sends a call to a external API that has the logic for combining the files, it returns that logic to the Orchestrator.### SendToCosmos
This activity takes the dict it gets and sends that to CosmosDB using the [outgoing CosmosDB binding](https://docs.microsoft.com/en-us/azure/azure-functions/functions-bindings-cosmosdb-v2-output?tabs=python).