Search code examples
azureazure-functionsreminders

Is there such a thing as an Azure Function Reminder Trigger?


I would like to write a reminder type system using azure functions. My plan is to create a function with a http trigger which creates the reminder and then a second which would send an email when that reminder is due.

I've looked into timers and I don't believe they will do what I'm after, likewise with queues.

Is there a built in timer which will activate a function at a configurable time (in X hours or at Y:00pm) or should I fall back to my plan to create a timer function which will poll the database?


Solution

  • My approach to this problem was to use Service Bus messages. Every time you schedule a reminder, send a message to your queue with ScheduledEnqueueTimeUTC property set to the time you want (absolute date/time).

    Make an Azure Function which will be triggered by this Service Bus queue. Function will get called soon after that date/time, so you can send the reminder at that point.