- Challenge 4 - Run the app on Azure should be done successfully.
Imagine if you had this requirement: After each game is played, a notification should be sent to someone about who won the game. Guess what? That is what this challenge is all about!
- You want to automate sending the winner notification after every game is played.
- You need to build this feature using Azure's serverless capabilities to make sure it's done quickly and to keep costs at a minimum.
- The application is already wired-up to raise an event when the game completes. The event contains details about the winner. Can you use this event to complete the Winner Notification feature?
- After a game is played, a person gets a notification that includes
- Team Name
- Server Name
- Winner Name
- Game Id
- The notification comes automatically and relatively quickly after the game is played (within 30 seconds).
- This feature was previously implemented with this architecture
- Event Grid Topic --> Event Grid Subscription (Webhook to Azure Function)
- Azure Function Initiates a Logic App HTTP trigger.
- The Logic App has a step that sends an email.
- You can see an example of the Azure Function in the Func folder in this repository.
- Note that this requires a Windows-based Azure Function.
- If you're sending emails as the notifications, don't bombard your own inbox. Use a free service like maildrop.cc to create dummy email accounts.