- Azure WebJobs is similar to AWS Lambda a serverless technology.
On demand – You trigger it when you need.
Continuously – It will keep on running in background always.
Schedule – You can schedule it to run on specific date and time.
Following file types are accepted:-
- .cmd, .bat, .exe (using windows cmd)
- .ps1 (using powershell)
- .sh (using bash)
- .php (using php)
- .py (using python)
- .js (using node)
- .jar (using java)
The WebJobs SDK does not yet support .NET Core.
Typical use case for Azure WebJobs:-
- Image processing or other CPU-intensive work.
- Queue processing.
- RSS aggregation.
- File maintenance, such as aggregating or cleaning up log files.
- Other long-running tasks that you want to run in a background thread, such as sending emails.
- Any tasks that you want to run on a schedule, such as performing a back-up operation every night.
- Web apps in Free mode can time out after 20 minutes if there are no requests to the scm (deployment) site and the web app’s portal is not open in Azure. Requests to the actual site will not reset this.
- Code for a continuous job needs to be written to run in an endless loop.
- Continuous jobs run continuously only when the web app is up. Check what’s a Web App .
- Basic and Standard modes offer the Always On feature which, when enabled, prevents web apps from becoming idle.
- You can only debug continuously running WebJobs. Debugging scheduled or on-demand WebJobs is not supported.
Azure Crash Course series is created to give you quick snapshot of Azure services. You can check other services in this series over here .