SlideShare a Scribd company logo
Azure Web Jobs
Introduction.
Agenda
 Definitions and Assumptions
 Creating a Web Job
 Running a Web Job
 Web Jobs Vs Workkflows
Definitions and Assumptions
 Azure: it’s Microsoft’s cloud platform: a growing collection of integrated services—
compute, storage, data, networking, and app
 Infrastructure-As-A-service (IAAS) and Platform-as-a-service (PaaS).
 Services:
 Web sites:Azure Websites enables you to deploy web applications on a scalable and
reliable cloud infrastructure.
 Virtual Machines : Azure Virtual Machines enable you to deploy a Windows Server or
Linux image in the cloud.
 Cloud Services: Azure Cloud Services remove the need to manage server infrastructure.
 Data Management: Azure Storage offers relational and non-relational data storage
including Sql Database, Blob, Table, Queue and Drive storage.
 Media and Mobile Services: Azure Media Services offer cloud-based media solutions e.g
content protection and both on-demand and live streaming capabilities. Azure Mobile
Services provides a scalable cloud backend for building Windows Store, Windows Phone,
Apple iOS, Android, and HTML/JavaScript applications.
Definitions and Assumptions
 Web Jobs are good for lightweight work items that don't need any
customization of the environment they run in and don't consume very much
resources
 Some scenarios that would be useful for Web Jobs include:
• 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.
Definitions and Assumptions
 The following file types are accepted as runnable scripts that can be used as a
job:
• .exe - .NET assemblies compiled with the Web Jobs SDK
• .cmd, .bat, .exe (using windows cmd)
• .sh (using bash)
• .php (using php)
• .py (using python)
• .js (using node)
 After you deploy your Web Jobs from the portal, you can start and stop jobs,
delete them, upload jobs as ZIP files, etc.
Creating a Web Job : Sample Scenario
Creating a Web Job : Pre Requisites
 Create an Azure Storage account
 Configure the application to use your storage account
Web Jobs Vs Workflows.
 WebJobs are cheap and easy to setup/run. They run in the context of your
Website which means you get the same environment that your Website runs
in, and any resources they use are resources that your Website can't use.
 Worker Roles are good for more resource intensive workloads or if you need
to modify the environment where they are running (ie. a particular .NET
framework version or something installed into the OS). Worker Roles are more
expensive and slightly more difficult to setup and run, but they offer
significantly more power.
Web Jobs Vs Workflows.
 Pricing
 Worker roles are billed separated for each instance that was deployed.
 Web Jobs are billed as part of an Azure Websites service features (Free,
Shared, Basic and Standard).
Web Jobs Vs Workflows.

More Related Content

PPTX
Azure fundamentals 03
PPTX
Binary Studio Academy 2016. MS Azure. Cloud hosting.
PPTX
Microsoft Azure
PPTX
Windows azure for startups
PPTX
Azure lessons
PDF
Introduction to Amazon Web Services (AWS)
ODP
Puppetpreso
PPTX
AWS Distilled
Azure fundamentals 03
Binary Studio Academy 2016. MS Azure. Cloud hosting.
Microsoft Azure
Windows azure for startups
Azure lessons
Introduction to Amazon Web Services (AWS)
Puppetpreso
AWS Distilled

What's hot (19)

ODP
Building a Dev/Test Cloud with Apache CloudStack
PPT
Azure Software As Service
PPTX
Data storage in the Cloud
PDF
AWS KSS
PPTX
Extending on premise applications to the cloud
PPTX
Easy cloud scaling with Azure
PPTX
Introduction to Windows Azure
PPTX
CREATE RELIABLE AND LOW-CODE APPLICATION IN SERVERLESS MANNER
PPTX
Introduction to Microsoft Azure Compute
PPTX
Successfully deploy build manage your cloud with cloud stack2
PPTX
Taking it to the cloud version 3
PPTX
Cnam cours azure cloud services
PPTX
Developing for the Cloud
PPTX
Overview of Azure and Cloud Computing
PPTX
Designing azure compute and storage infrastructure
PPTX
Migrate an Existing Application to Microsoft Azure
PDF
PloneConf2017: serverless python for astronaut safety
PPTX
Introduction to Windows Azure Platform
PPTX
APPLYING DEVOPS STRATEGIES ON SCALE USING AZURE DEVOPS SERVICES
Building a Dev/Test Cloud with Apache CloudStack
Azure Software As Service
Data storage in the Cloud
AWS KSS
Extending on premise applications to the cloud
Easy cloud scaling with Azure
Introduction to Windows Azure
CREATE RELIABLE AND LOW-CODE APPLICATION IN SERVERLESS MANNER
Introduction to Microsoft Azure Compute
Successfully deploy build manage your cloud with cloud stack2
Taking it to the cloud version 3
Cnam cours azure cloud services
Developing for the Cloud
Overview of Azure and Cloud Computing
Designing azure compute and storage infrastructure
Migrate an Existing Application to Microsoft Azure
PloneConf2017: serverless python for astronaut safety
Introduction to Windows Azure Platform
APPLYING DEVOPS STRATEGIES ON SCALE USING AZURE DEVOPS SERVICES
Ad

Similar to Azure Web Jobs (20)

PPTX
Cut your hair and get an azure webjob
PPTX
Cut your hair and get an azure webjob
PPTX
Cut your hair and get an azure webjob
PPTX
Microsoft Azure WebJobs
PPTX
Web app job and functions - TUGAIT 2017
PPTX
Azue Webjobs
PPTX
Azure in Developer Perspective
PPTX
Azure Web Application Fundamentals
PPTX
Azure App Service
PDF
Web jobs, Azure Functions and Serverless Computing
PPTX
Upgrade my PaaS
PPTX
02 hosting servicesinwindowsazure
PPTX
Azure and Umbraco CMS
PDF
Azure web apps
PPTX
Sudheer d desertcodecamp_11_05_2011
PPTX
Azure Websites
PPTX
Global Azure Bootcamp 2017 at Betabit Utrecht
PPTX
Background Tasks with Worker Service
PPTX
NWCloud Cloud Track - Overview of Cloud Computing and Windows Azure 101
PPTX
Introduction To Cloud Computing Winsows Azure101
Cut your hair and get an azure webjob
Cut your hair and get an azure webjob
Cut your hair and get an azure webjob
Microsoft Azure WebJobs
Web app job and functions - TUGAIT 2017
Azue Webjobs
Azure in Developer Perspective
Azure Web Application Fundamentals
Azure App Service
Web jobs, Azure Functions and Serverless Computing
Upgrade my PaaS
02 hosting servicesinwindowsazure
Azure and Umbraco CMS
Azure web apps
Sudheer d desertcodecamp_11_05_2011
Azure Websites
Global Azure Bootcamp 2017 at Betabit Utrecht
Background Tasks with Worker Service
NWCloud Cloud Track - Overview of Cloud Computing and Windows Azure 101
Introduction To Cloud Computing Winsows Azure101
Ad

Azure Web Jobs

  • 2. Agenda  Definitions and Assumptions  Creating a Web Job  Running a Web Job  Web Jobs Vs Workkflows
  • 3. Definitions and Assumptions  Azure: it’s Microsoft’s cloud platform: a growing collection of integrated services— compute, storage, data, networking, and app  Infrastructure-As-A-service (IAAS) and Platform-as-a-service (PaaS).  Services:  Web sites:Azure Websites enables you to deploy web applications on a scalable and reliable cloud infrastructure.  Virtual Machines : Azure Virtual Machines enable you to deploy a Windows Server or Linux image in the cloud.  Cloud Services: Azure Cloud Services remove the need to manage server infrastructure.  Data Management: Azure Storage offers relational and non-relational data storage including Sql Database, Blob, Table, Queue and Drive storage.  Media and Mobile Services: Azure Media Services offer cloud-based media solutions e.g content protection and both on-demand and live streaming capabilities. Azure Mobile Services provides a scalable cloud backend for building Windows Store, Windows Phone, Apple iOS, Android, and HTML/JavaScript applications.
  • 4. Definitions and Assumptions  Web Jobs are good for lightweight work items that don't need any customization of the environment they run in and don't consume very much resources  Some scenarios that would be useful for Web Jobs include: • 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.
  • 5. Definitions and Assumptions  The following file types are accepted as runnable scripts that can be used as a job: • .exe - .NET assemblies compiled with the Web Jobs SDK • .cmd, .bat, .exe (using windows cmd) • .sh (using bash) • .php (using php) • .py (using python) • .js (using node)  After you deploy your Web Jobs from the portal, you can start and stop jobs, delete them, upload jobs as ZIP files, etc.
  • 6. Creating a Web Job : Sample Scenario
  • 7. Creating a Web Job : Pre Requisites  Create an Azure Storage account  Configure the application to use your storage account
  • 8. Web Jobs Vs Workflows.  WebJobs are cheap and easy to setup/run. They run in the context of your Website which means you get the same environment that your Website runs in, and any resources they use are resources that your Website can't use.  Worker Roles are good for more resource intensive workloads or if you need to modify the environment where they are running (ie. a particular .NET framework version or something installed into the OS). Worker Roles are more expensive and slightly more difficult to setup and run, but they offer significantly more power.
  • 9. Web Jobs Vs Workflows.  Pricing  Worker roles are billed separated for each instance that was deployed.  Web Jobs are billed as part of an Azure Websites service features (Free, Shared, Basic and Standard).
  • 10. Web Jobs Vs Workflows.

Editor's Notes

  • #4: zure Active Directory (Azure AD) provides identity management and access control capabilities for your cloud applications. You can synchronize your on-premises identities and enable single sign-on to simplify user access to cloud applications. Azure AD is available in two tiers: Free and Premium. Azure Active Directory Premium is licensed separately from Azure Services. API Management Azure API Management allows you to publish APIs to developers, partners and employees securely and at scale. Application Insights Application Insights is an all-in-one telemetry solution which can help you detect issues, solve problems, and continuously improve your web applications by providing real time, 360 degree views of your apps across availability, performance and usage. Automation Azure Automation allows you to automate the creation, deployment, monitoring, and maintenance of resources in your Azure environment using a highly scalable and reliable workflow execution engine. Redis Cache Based on the popular open source Redis Cache, this gives you access to a secure, dedicated cache for your Azure applications. Backup Azure Backup manages cloud backups through familiar tools in Windows Server 2012, Windows Server 2012 Essentials, or System Center 2012 Data Protection Manager. Batch Azure Batch makes it easy to run large-scale parallel and HPC workloads in Azure. You can use Batch to scale-out parallel workloads, manage execution of tasks in a queue, and cloud-enable applications to offload compute jobs in the cloud. BizTalk Services Azure BizTalk Services is a powerful and extensible cloud-based integration service that provides Business-to-Business (B2B) and Enterprise Application Integration (EAI) capabilities for delivering cloud and hybrid integration solutions. CDN Azure CDN (Content Delivery Network) allows you to deliver high-bandwidth content to end-users around the world with low latency and high availability via a robust network of global data centers. Cloud Services Azure Cloud Services remove the need to manage server infrastructure. With Web and Worker roles, they enable you to quickly build, deploy and manage modern applications. Data Factory Azure Data Factory is a managed service for developers to produce trusted information from raw data in cloud or on-premises sources. Easily create, orchestrate and schedule high-available, fault tolerant work flows of data movement and transformation activities. Monitor all your data pipelines and service health at a glance with a rich visual experience offered through the Azure portal. DocumentDB Azure DocumentDB is a fully-managed NoSQL document database service that offers query and transactions over schema-free data, predictable and reliable performance, and rapid development. Event Hubs Azure Event Hubs enables elastic scale telemetry and event ingestion with durable buffering and sub-second end to end latency for millions of devices and events. ExpressRoute Azure ExpressRoute enables you to create private connections between Azure datacenters and infrastructure that’s on your premises or in a colocation environment. HDInsight Azure HDInsight Service is a Hadoop-based service that brings an Apache Hadoop solution to the cloud. Gain full value of Big Data with a cloud-based data platform that manages data of any type and any size. Machine Learning Azure Machine Learning allows you to easily design, test, operationalize and manage predictive analytics solutions in the cloud. Managed Cache Azure Cache is a distributed, in-memory, scalable solution that enables you to build highly scalable and responsive applications by providing super-fast access to data. Media Services Azure Media Services offer cloud-based media solutions from many existing technologies including ingest, encoding, format conversion, content protection and both on-demand and live streaming capabilities. Mobile Services Azure Mobile Services provides a scalable cloud backend for building Windows Store, Windows Phone, Apple iOS, Android, and HTML/JavaScript applications. Store data in the cloud, authenticate users, and send push notifications to your application within minutes. Multi-Factor Authentication Azure Multi-Factor Authentication helps prevent unauthorized access to on-premises and cloud applications by providing an additional layer of authentication. Follow organizational security and compliance standards while also addressing user demand for convenient access. Notification Hubs Notification Hubs provide a highly scalable, cross-platform push notification infrastructure that enables you to either broadcast push notifications to millions of users at once or tailor notifications to individual users. Operational Insights Operational Insights enables you to collect, correlate and visualize all your machine data such as event logs, network logs, performance data and much more from both your on premise and cloud assets. RemoteApp RemoteApp helps employees stay productive anywhere, on a variety of devices - Windows, Mac OS X, iOS, or Android. Scheduler Azure Scheduler allows you to invoke actions that call HTTP/S endpoints or post messages to a storage queue on any schedule. In Scheduler, you can create jobs that reliably call services either inside or outside of Azure and run those jobs right away, on a regular or irregular schedule, or set them to run at a future date. Azure Search Azure Search is a fully-managed service for adding sophisticated search capabilities to web and mobile applications without the typical complexities of full-text search. Service Bus Azure Service Bus is a messaging infrastructure that sits between applications allowing them to exchange messages for improved scale and resiliency. Site Recovery Site Recovery helps you protect important applications by coordinating the replication and recovery of private clouds for simple, cost-effective disaster recovery. SQL Database Azure SQL Database is a relational database service that enables you to rapidly create, extend, and scale relational applications into the cloud. Storage Azure Storage offers non-relational data storage including Blob, Table, Queue and Drive storage. StorSimple StorSimple offers a unique hybrid cloud storage solution which provides primary storage, archive and disaster recovery. Combined with Microsoft Azure, this solution optimizes total storage costs and data protection. The Microsoft Azure StorSimple offering with 8000 Series is licensed separately from Azure Services. Stream Analytics Stream Analytics is an event processing engine that helps uncover insights from devices, sensors, cloud infrastructure, and existing data properties in real-time. With out-of-the-box integration to Event Hubs, the combined solution can both ingest millions of events as well as do analytics to better understand patterns, power a dashboard, detect anomalies, or kick off an action while data is being streamed in real-time. Traffic Manager Azure Traffic Manager allows you to load balance incoming traffic across multiple hosted Azure services whether they’re running in the same datacenter or across different datacenters around the world. Virtual Machines Azure Virtual Machines enable you to deploy a Windows Server or Linux image in the cloud. You can select images from a marketplace or bring your own customized images. Virtual Network Azure Virtual Network enables you to create Virtual Private Networks (VPN) within Azure and securely link these with on-premises IT infrastructure. Visual Studio Online Visual Studio Online provides a cloud-based ALM solution that handles everything from hosted code repos and issue tracking to load testing and automated builds. Best of all, it's accessible from nearly anywhere, and you can create an account for free. Visual Studio Online is licensed separately from Azure Services. Websites Azure Websites enables you to deploy web applications on a scalable and reliable cloud infrastructure. You can quickly scale up and out or even scale automaticall
  • #10: If you compare the amount of code in the GenerateThumbnails method in this sample application with the worker role code in the Cloud Service version of the application, you can see how much work the WebJobs SDK is doing for you. The advantage is greater than it appears, because the Cloud Service sample application code doesn't do all of the things (such as poison message handling) that you would do in a production application, and which the WebJobs SDK does for you. In the Cloud Service version of the application, the record ID is the only information in the queue message, and the background process gets the image URL from the database. In the WebJobs SDK version of the application, the queue message includes the image URL so that it can be provided to the Blobattributes. If the queue message didn't have the blob URL, you could use the Blob attribute in the body of the method instead of in the method signature.