What is WebJob?
- WebJobs is a feature of Azure App Service that enables you to run a program or script in the same instance as a web app, API app, or mobile app
- WebJobs are not seperate App service
- WebJobs allow to run backgroud tasks on underlaying servers (of App Service)
- WebJobs are similar to windows service running in Cloud
- WebJobs to simplifie many programming tasks
- Azure WebJobs SDK is with to develop WebJobs
Why to use WebJobs
- Part of app service (shares same compute service of web app, functions etc.)
- Reliable (same SLA of app services)
- Can be triggered by outside sources i.e. Queue, Blob, Table, SQL, WebHooks… OR
- Can be triggered manually or scheduled
- Can process triggers in parallel - multiple instances of same webjobs can process multiple task in parallel
- Background Service-as-a-Service
- You can deploy a batch job to be a webjob
Creating a WebJob
WebJob Project strcuture
Publishing a WebJob
WebJobs settings