Long Running Umbraco Tasks With Azure Service Bus and functions
Why? We want our webserver to serve up pages fast Certain things don’t need to happen right away Separation of “webby” and non “webby”
Azure Service Bus Receives a “message” (JSON) Waits for something to receive and process Durable – hold messages if subscribers are offline Multiple subscribers Not like a London Bus
Azure Functions “Serverless” .NET – or many other languages Various triggers: Timer, Webhook, Service Bus etc Runs in Azure App service Can scale to demand
Real World usages Scgeduled Tasks Unversioning Daily Notifications Migrations Third party API calls (members)
The Demo An Umbraco content item is published Placed on the Service Bus as JSON A function subscribes and sends email Simple case
Azure Setup Create a service bus Grab the connection string Create a functions app
Questions? If we have time?
Thanks darren@moriyama.co.uk @darrenferguson