This document discusses different hosting options on Windows Azure including Web Sites, Web Roles, and Worker Roles. Web Sites provide a scalable hosting option without needing to configure an operating system, while Web Roles and Worker Roles allow hosting within scalable cloud services that have preconfigured virtual machines but require code for hosting and deployment. The document provides examples of deploying and hosting WCF web services within each of these Azure hosting options.
1 of 23
More Related Content
02 hosting servicesinwindowsazure
1. 02 | Hosting Services in Windows Azure
Bruno Terkaly | Technical Evangelist
Bret Stateham | Technical Evangelist
2. Module Overview
Windows Azure Overview
Windows Azure Web Sites
Windows Azure Cloud Service Web Roles
Windows Azure Cloud Service Worker Roles
4. Windows Azure Overview
For me, the cloud, at its heart is about
running your code,
and storing your data
in somebody else's data center
and leveraging their platform and services
6. ALL ITEMS Software as a Services (SaaS)
WEB SITES
VIRTUAL MACHINES
MOBILE SERVICES
CLOUD SERVICES
SQL DATABASES
STORAGE
HDINSIGHT
MEDIA SERVICES
SERVICE BUS
BIZTALK SERVICES
SQL REPORTING
NETWORKS
TRAFFIC MANAGER
MANAGEMENT SERVICES
ACTIVE DIRECTORY
ADD-ONS2
SETTINGS
Platform as a Services (PaaS)
Infrastructure as a Services (IaaS)
7. Azure from a Web Services Perspective.
Virtual Machines
Persistent
Windows or Linux
Virtual Machines
Cloud Services
Scalable, Configurable
Windows Server
Instances
Web Sites
Scalable Web Sites.
No OS config needed
Storage Services
File (blob) storage,
No-SQL Tables and
Queues
SQL Database
Convenient, scalable
SQL Databases
Service Bus
Expand your services
reach beyond the
firewall
14. A Platform as a Service (PaaS) solution
Preconfigured Virtual Machines (VMs)
Running Windows Server 2012 R2, 2012, or 2008
You DO NOT need to install the OS
You DO NOT need to maintain the OS
They are STATELESS
When a VM is recycled, no data is preserved
Data in local storage (local to the VM) will be lost
Persist data in Table or Blob Storage or SQL Azure
15. Server Rack
VM VM
VM VM VM
VM
VM VM
VM VM
Server Rack
VM VM
VM VM
VM VM VM
VM
VM VM VM
Server Rack
VM VM
VM VM VM
VM
VM VM
VM
Server Rack
VM
VM
VM VM
VM VM
VM VM VM
VM
VM
VM
VM
VM
16. Cloud Services
Windows Azure Data Center
Cloud Service (cloudservicename.cloudapp.net)
Firewall
Load Bal.
Web Role
Web Role
Worker
Role
Worker
Role
Virtual
Machine
80
8081
1433
Storage (accountname.*.core.windows.net)
SQL Database (server.database.windows.net)
Lots of other cool stuff they can use.
17. Web Roles
Pre-configured Windows Server
IIS Pre-Installed
Firewall open for port 80
Default Endpoint for port 80
You can run pretty much any IIS workload on it
Customizable with startup scripts
Run hybrid workloads with WebRole.cs
18. WCF Web Services in Web Roles
Pretty Easy!
You write the web service the same
IIS deals with hosting it
Unless you ports other than 80, they are setup
WCF Service / code has access to Azure runtime
20. Worker Roles
Pre-configured Windows Server
Nothing else installed
No default Azure endpoints
Run custom workloads that dont require IIS
Install additional software, etc. using scripts
Implement Logic in the WorkerRole.cs class
21. WCF Web Services in Worker Roles
Not Hard, but not as easy as Web Roles
You need to write code for the Service Host
You need to create Azure Endpoints
You can create the WCF endpoints in code
Can also create WCF endpoints in config
Again, WorkerRole.cs is where you code
23. 息2013 Microsoft Corporation. All rights reserved. Microsoft, Windows, Office, Azure, System Center, Dynamics and other product names are or may be registered trademarks and/or trademarks in
the U.S. and/or other countries. The information herein is for informational purposes only and represents the current view of Microsoft Corporation as of the date of this presentation. Because
Microsoft must respond to changing market conditions, it should not be interpreted to be a commitment on the part of Microsoft, and Microsoft cannot guarantee the accuracy of any information
provided after the date of this presentation. MICROSOFT MAKES NO WARRANTIES, EXPRESS, IMPLIED OR STATUTORY, AS TO THE INFORMATION IN THIS PRESENTATION.