azure webjobs azure webjobs... · 2017. 12. 9. · azure webjobs steef-jan wiggers. steef-jan...
TRANSCRIPT
![Page 1: Azure WebJobs Azure WebJobs... · 2017. 12. 9. · Azure WebJobs STEEF-JAN WIGGERS. Steef-Jan Wiggers Microsoft Integration Consultant • Microsoft Azure MVP • Published Author](https://reader036.vdocuments.mx/reader036/viewer/2022070922/5fbadda2452b8f71a0691aa6/html5/thumbnails/1.jpg)
Azure WebJobs
STEEF-JAN WIGGERS
![Page 2: Azure WebJobs Azure WebJobs... · 2017. 12. 9. · Azure WebJobs STEEF-JAN WIGGERS. Steef-Jan Wiggers Microsoft Integration Consultant • Microsoft Azure MVP • Published Author](https://reader036.vdocuments.mx/reader036/viewer/2022070922/5fbadda2452b8f71a0691aa6/html5/thumbnails/2.jpg)
Steef-Jan Wiggers
Microsoft Integration Consultant
• Microsoft Azure MVP
• Published Author
• (Inter)national Speaker
• TechNet Wiki Author
• Blogger
• Forums
• Runner
• 12th Man
DutchWorkz B.V.
![Page 3: Azure WebJobs Azure WebJobs... · 2017. 12. 9. · Azure WebJobs STEEF-JAN WIGGERS. Steef-Jan Wiggers Microsoft Integration Consultant • Microsoft Azure MVP • Published Author](https://reader036.vdocuments.mx/reader036/viewer/2022070922/5fbadda2452b8f71a0691aa6/html5/thumbnails/3.jpg)
Agenda
![Page 4: Azure WebJobs Azure WebJobs... · 2017. 12. 9. · Azure WebJobs STEEF-JAN WIGGERS. Steef-Jan Wiggers Microsoft Integration Consultant • Microsoft Azure MVP • Published Author](https://reader036.vdocuments.mx/reader036/viewer/2022070922/5fbadda2452b8f71a0691aa6/html5/thumbnails/4.jpg)
What are WebJobs?
![Page 5: Azure WebJobs Azure WebJobs... · 2017. 12. 9. · Azure WebJobs STEEF-JAN WIGGERS. Steef-Jan Wiggers Microsoft Integration Consultant • Microsoft Azure MVP • Published Author](https://reader036.vdocuments.mx/reader036/viewer/2022070922/5fbadda2452b8f71a0691aa6/html5/thumbnails/5.jpg)
![Page 6: Azure WebJobs Azure WebJobs... · 2017. 12. 9. · Azure WebJobs STEEF-JAN WIGGERS. Steef-Jan Wiggers Microsoft Integration Consultant • Microsoft Azure MVP • Published Author](https://reader036.vdocuments.mx/reader036/viewer/2022070922/5fbadda2452b8f71a0691aa6/html5/thumbnails/6.jpg)
How are they stored and started?
![Page 7: Azure WebJobs Azure WebJobs... · 2017. 12. 9. · Azure WebJobs STEEF-JAN WIGGERS. Steef-Jan Wiggers Microsoft Integration Consultant • Microsoft Azure MVP • Published Author](https://reader036.vdocuments.mx/reader036/viewer/2022070922/5fbadda2452b8f71a0691aa6/html5/thumbnails/7.jpg)
Many Options for Deploying
![Page 8: Azure WebJobs Azure WebJobs... · 2017. 12. 9. · Azure WebJobs STEEF-JAN WIGGERS. Steef-Jan Wiggers Microsoft Integration Consultant • Microsoft Azure MVP • Published Author](https://reader036.vdocuments.mx/reader036/viewer/2022070922/5fbadda2452b8f71a0691aa6/html5/thumbnails/8.jpg)
Publish WebJobs
![Page 9: Azure WebJobs Azure WebJobs... · 2017. 12. 9. · Azure WebJobs STEEF-JAN WIGGERS. Steef-Jan Wiggers Microsoft Integration Consultant • Microsoft Azure MVP • Published Author](https://reader036.vdocuments.mx/reader036/viewer/2022070922/5fbadda2452b8f71a0691aa6/html5/thumbnails/9.jpg)
Connection
![Page 10: Azure WebJobs Azure WebJobs... · 2017. 12. 9. · Azure WebJobs STEEF-JAN WIGGERS. Steef-Jan Wiggers Microsoft Integration Consultant • Microsoft Azure MVP • Published Author](https://reader036.vdocuments.mx/reader036/viewer/2022070922/5fbadda2452b8f71a0691aa6/html5/thumbnails/10.jpg)
Settings
![Page 11: Azure WebJobs Azure WebJobs... · 2017. 12. 9. · Azure WebJobs STEEF-JAN WIGGERS. Steef-Jan Wiggers Microsoft Integration Consultant • Microsoft Azure MVP • Published Author](https://reader036.vdocuments.mx/reader036/viewer/2022070922/5fbadda2452b8f71a0691aa6/html5/thumbnails/11.jpg)
Deploy
![Page 12: Azure WebJobs Azure WebJobs... · 2017. 12. 9. · Azure WebJobs STEEF-JAN WIGGERS. Steef-Jan Wiggers Microsoft Integration Consultant • Microsoft Azure MVP • Published Author](https://reader036.vdocuments.mx/reader036/viewer/2022070922/5fbadda2452b8f71a0691aa6/html5/thumbnails/12.jpg)
Kudu• Engine behind git deployments and WebJobs
• Can be run outside of Azure
• Provides dashboard functionality for a website
Project Site
https://github.com/projectkudu/kudu
![Page 13: Azure WebJobs Azure WebJobs... · 2017. 12. 9. · Azure WebJobs STEEF-JAN WIGGERS. Steef-Jan Wiggers Microsoft Integration Consultant • Microsoft Azure MVP • Published Author](https://reader036.vdocuments.mx/reader036/viewer/2022070922/5fbadda2452b8f71a0691aa6/html5/thumbnails/13.jpg)
Paths & FilesFile/Path
disable.job Existence of file stops the job. Deleting it starts the job.
settings.job Allows you to indicate: is_singleton to scale with website.{ “is_singleton”: true } or { “is_singleton”: false }
site\wwwroot\App_Data\jobs\continuous Path for continuous web jobs
site\wwwroot\App_Data\jobs\triggered Path for on demand and scheduled web jobs
data\jobs Data directories for jobs
job_log.txt Text file of web job log
status_{hash} Status file
WebJobsSDK.marker Singleton lock file
![Page 14: Azure WebJobs Azure WebJobs... · 2017. 12. 9. · Azure WebJobs STEEF-JAN WIGGERS. Steef-Jan Wiggers Microsoft Integration Consultant • Microsoft Azure MVP • Published Author](https://reader036.vdocuments.mx/reader036/viewer/2022070922/5fbadda2452b8f71a0691aa6/html5/thumbnails/14.jpg)
![Page 15: Azure WebJobs Azure WebJobs... · 2017. 12. 9. · Azure WebJobs STEEF-JAN WIGGERS. Steef-Jan Wiggers Microsoft Integration Consultant • Microsoft Azure MVP • Published Author](https://reader036.vdocuments.mx/reader036/viewer/2022070922/5fbadda2452b8f71a0691aa6/html5/thumbnails/15.jpg)
WebJob SDK
![Page 16: Azure WebJobs Azure WebJobs... · 2017. 12. 9. · Azure WebJobs STEEF-JAN WIGGERS. Steef-Jan Wiggers Microsoft Integration Consultant • Microsoft Azure MVP • Published Author](https://reader036.vdocuments.mx/reader036/viewer/2022070922/5fbadda2452b8f71a0691aa6/html5/thumbnails/16.jpg)
WebJob SDK – Triggers and Bindings
https://github.com/Azure/azure-webjobs-sdk
![Page 17: Azure WebJobs Azure WebJobs... · 2017. 12. 9. · Azure WebJobs STEEF-JAN WIGGERS. Steef-Jan Wiggers Microsoft Integration Consultant • Microsoft Azure MVP • Published Author](https://reader036.vdocuments.mx/reader036/viewer/2022070922/5fbadda2452b8f71a0691aa6/html5/thumbnails/17.jpg)
Real world scenario - 1
Self-Service Portal
API Management
Outbound Inbound
WebAPI WebAPI
VIP
Web Job
Azure cache
(REDIS)
To Redis
Storage (Azure)
Web Job Dashboard
Administrator/Developer Portal
DatastoreNuon
(Windows) Service (Windows) Service
Inbound
Web Job
Azure cache
(REDIS)
![Page 18: Azure WebJobs Azure WebJobs... · 2017. 12. 9. · Azure WebJobs STEEF-JAN WIGGERS. Steef-Jan Wiggers Microsoft Integration Consultant • Microsoft Azure MVP • Published Author](https://reader036.vdocuments.mx/reader036/viewer/2022070922/5fbadda2452b8f71a0691aa6/html5/thumbnails/18.jpg)
Real world scenario (POC)- 2
.VEE filesEDI format
MPR
WebJob(Parsing)
EDI to JSON
Storage blob
Push
Storage blob
![Page 19: Azure WebJobs Azure WebJobs... · 2017. 12. 9. · Azure WebJobs STEEF-JAN WIGGERS. Steef-Jan Wiggers Microsoft Integration Consultant • Microsoft Azure MVP • Published Author](https://reader036.vdocuments.mx/reader036/viewer/2022070922/5fbadda2452b8f71a0691aa6/html5/thumbnails/19.jpg)
![Page 20: Azure WebJobs Azure WebJobs... · 2017. 12. 9. · Azure WebJobs STEEF-JAN WIGGERS. Steef-Jan Wiggers Microsoft Integration Consultant • Microsoft Azure MVP • Published Author](https://reader036.vdocuments.mx/reader036/viewer/2022070922/5fbadda2452b8f71a0691aa6/html5/thumbnails/20.jpg)
WebJob SDK Extensions
https://github.com/Azure/azure-webjobs-sdk-extensions
![Page 21: Azure WebJobs Azure WebJobs... · 2017. 12. 9. · Azure WebJobs STEEF-JAN WIGGERS. Steef-Jan Wiggers Microsoft Integration Consultant • Microsoft Azure MVP • Published Author](https://reader036.vdocuments.mx/reader036/viewer/2022070922/5fbadda2452b8f71a0691aa6/html5/thumbnails/21.jpg)
Alternatives
![Page 22: Azure WebJobs Azure WebJobs... · 2017. 12. 9. · Azure WebJobs STEEF-JAN WIGGERS. Steef-Jan Wiggers Microsoft Integration Consultant • Microsoft Azure MVP • Published Author](https://reader036.vdocuments.mx/reader036/viewer/2022070922/5fbadda2452b8f71a0691aa6/html5/thumbnails/22.jpg)
![Page 23: Azure WebJobs Azure WebJobs... · 2017. 12. 9. · Azure WebJobs STEEF-JAN WIGGERS. Steef-Jan Wiggers Microsoft Integration Consultant • Microsoft Azure MVP • Published Author](https://reader036.vdocuments.mx/reader036/viewer/2022070922/5fbadda2452b8f71a0691aa6/html5/thumbnails/23.jpg)
Wrap up
![Page 24: Azure WebJobs Azure WebJobs... · 2017. 12. 9. · Azure WebJobs STEEF-JAN WIGGERS. Steef-Jan Wiggers Microsoft Integration Consultant • Microsoft Azure MVP • Published Author](https://reader036.vdocuments.mx/reader036/viewer/2022070922/5fbadda2452b8f71a0691aa6/html5/thumbnails/24.jpg)
Resources
http://bit.ly/1KdUkIH
https://github.com/Azure/azure-webjobs-sdk-samples