Skip to content

Latest commit

 

History

History
40 lines (27 loc) · 1.83 KB

SendWinnerNotification.md

File metadata and controls

40 lines (27 loc) · 1.83 KB

Challenge 11 - Send a Winner Notification

Prerequisities

  1. Challenge 4 - Run the app on Azure should be done successfully.

Introduction

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!

Challenges

  1. You want to automate sending the winner notification after every game is played.
  2. 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.
  3. 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?

Success criteria

  1. After a game is played, a person gets a notification that includes
    1. Team Name
    2. Server Name
    3. Winner Name
    4. Game Id
  2. The notification comes automatically and relatively quickly after the game is played (within 30 seconds).

Tips

  1. 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.
  2. 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.
  3. 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.

Learning resources

Next challenge (Run a Load Test) >