![Page 1: Windows Azure Cloud & Building Block Services Haishi Bai Technical Evangelist Microsoft](https://reader035.vdocuments.mx/reader035/viewer/2022062409/5697bfe71a28abf838cb5bc7/html5/thumbnails/1.jpg)
![Page 2: Windows Azure Cloud & Building Block Services Haishi Bai Technical Evangelist Microsoft](https://reader035.vdocuments.mx/reader035/viewer/2022062409/5697bfe71a28abf838cb5bc7/html5/thumbnails/2.jpg)
Windows Azure Cloud & Building Block ServicesHaishi BaiTechnical EvangelistMicrosoft
![Page 3: Windows Azure Cloud & Building Block Services Haishi Bai Technical Evangelist Microsoft](https://reader035.vdocuments.mx/reader035/viewer/2022062409/5697bfe71a28abf838cb5bc7/html5/thumbnails/3.jpg)
• Introduction of Windows Azure Cloud Service
• Windows Azure Cloud Service Lifecycle• Dedicated cache• Windows Azure showcase
Agenda
![Page 4: Windows Azure Cloud & Building Block Services Haishi Bai Technical Evangelist Microsoft](https://reader035.vdocuments.mx/reader035/viewer/2022062409/5697bfe71a28abf838cb5bc7/html5/thumbnails/4.jpg)
ManagementComplexity
Azure ecosystem
Web Sites
Cloud Services Virtual Machines
Control
Gallery
SPA
Social N-Tier
Sharing
LOB
Web APISpecialized
Legacy
Hybrid
Caching Access Control
Service Bus
CDN
TrafficManager
HPC Storage
On-prem
MediaServices
SQL Database
Flexibility
Hello World! .
![Page 5: Windows Azure Cloud & Building Block Services Haishi Bai Technical Evangelist Microsoft](https://reader035.vdocuments.mx/reader035/viewer/2022062409/5697bfe71a28abf838cb5bc7/html5/thumbnails/5.jpg)
Cloud Service Overview
![Page 6: Windows Azure Cloud & Building Block Services Haishi Bai Technical Evangelist Microsoft](https://reader035.vdocuments.mx/reader035/viewer/2022062409/5697bfe71a28abf838cb5bc7/html5/thumbnails/6.jpg)
What is a Cloud Service?
A collection of related service roles
Web Role Worker Role VM Role
![Page 7: Windows Azure Cloud & Building Block Services Haishi Bai Technical Evangelist Microsoft](https://reader035.vdocuments.mx/reader035/viewer/2022062409/5697bfe71a28abf838cb5bc7/html5/thumbnails/7.jpg)
Web Role
All features of a worker role + IIS 7 or 7.5ASP.NET 2.0 3.5 SP1 or 4.0HostsWebforms or MVCFastCGI applications (e.g. PHP)Multiple Websites
Http(s)Web/Worker HybridCan optionally implement RoleEntryPoint
![Page 8: Windows Azure Cloud & Building Block Services Haishi Bai Technical Evangelist Microsoft](https://reader035.vdocuments.mx/reader035/viewer/2022062409/5697bfe71a28abf838cb5bc7/html5/thumbnails/8.jpg)
Worker Role Patterns
Queue Polling WorkerPoll and Pop Messages within while(true) loopE.g. Map/Reduce pattern, background image processing
Listening Worker RoleCreate TcpListener or WCF Service HostE.g. Run a .NET SMTP server or WCF Service
External Process Worker RoleOnStart or Run method executes Process.Start()Startup Task installs or executes background/foreground processCustom Role Entry Point (executable or .Net assembly)E.g. Run a database server, web server, distributed cache
![Page 9: Windows Azure Cloud & Building Block Services Haishi Bai Technical Evangelist Microsoft](https://reader035.vdocuments.mx/reader035/viewer/2022062409/5697bfe71a28abf838cb5bc7/html5/thumbnails/9.jpg)
Roles and Instances
At runtime each Role will execute on one or more instances A role instance is a set of code, configuration, and local data, deployed in a dedicated VM
Roles are defined in a Hosted ServiceA role definition specifies:Virtual machine sizeCommunication endpointsLocal storage resourcesetc.
![Page 10: Windows Azure Cloud & Building Block Services Haishi Bai Technical Evangelist Microsoft](https://reader035.vdocuments.mx/reader035/viewer/2022062409/5697bfe71a28abf838cb5bc7/html5/thumbnails/10.jpg)
Roles and Instances
Cloud ServiceWeb Roles Worker Roles
Web_instance_0
Web_instance_1
Worker_instance_2
Worker_instance_1
Worker_instance_0
![Page 11: Windows Azure Cloud & Building Block Services Haishi Bai Technical Evangelist Microsoft](https://reader035.vdocuments.mx/reader035/viewer/2022062409/5697bfe71a28abf838cb5bc7/html5/thumbnails/11.jpg)
Hello WorldDemo
![Page 12: Windows Azure Cloud & Building Block Services Haishi Bai Technical Evangelist Microsoft](https://reader035.vdocuments.mx/reader035/viewer/2022062409/5697bfe71a28abf838cb5bc7/html5/thumbnails/12.jpg)
Cloud Service Lifecycle
![Page 13: Windows Azure Cloud & Building Block Services Haishi Bai Technical Evangelist Microsoft](https://reader035.vdocuments.mx/reader035/viewer/2022062409/5697bfe71a28abf838cb5bc7/html5/thumbnails/13.jpg)
Package
Cloud service lifecycle – Simplistic view
Upload DeployCode©
![Page 14: Windows Azure Cloud & Building Block Services Haishi Bai Technical Evangelist Microsoft](https://reader035.vdocuments.mx/reader035/viewer/2022062409/5697bfe71a28abf838cb5bc7/html5/thumbnails/14.jpg)
Cloud service lifecycle - Agile
Product planning
Sprintplanning
Sprint
Shippable increment
Dailyscrum
©
![Page 15: Windows Azure Cloud & Building Block Services Haishi Bai Technical Evangelist Microsoft](https://reader035.vdocuments.mx/reader035/viewer/2022062409/5697bfe71a28abf838cb5bc7/html5/thumbnails/15.jpg)
Team Foundation Service• Governance/Guidance over complete software
lifecycle• Integrated with Visual Studio, and now Azure
Management Portal• Support different methodologies and processes• Source repository with gated check-in• Continuous integration with auto-build• Integrated bug tracking
![Page 16: Windows Azure Cloud & Building Block Services Haishi Bai Technical Evangelist Microsoft](https://reader035.vdocuments.mx/reader035/viewer/2022062409/5697bfe71a28abf838cb5bc7/html5/thumbnails/16.jpg)
TFS Continuous Integration Demo
![Page 17: Windows Azure Cloud & Building Block Services Haishi Bai Technical Evangelist Microsoft](https://reader035.vdocuments.mx/reader035/viewer/2022062409/5697bfe71a28abf838cb5bc7/html5/thumbnails/17.jpg)
Applicationbuilding blocks
StorageBig data
Caching
CDN
Database
Identity
Media
Messaging
Networking
Traffic
![Page 18: Windows Azure Cloud & Building Block Services Haishi Bai Technical Evangelist Microsoft](https://reader035.vdocuments.mx/reader035/viewer/2022062409/5697bfe71a28abf838cb5bc7/html5/thumbnails/18.jpg)
Applicationbuilding blocks
StorageHPC
Caching
CDN
Database
Identity
MediaNetworking
Traffic
Messaging
![Page 19: Windows Azure Cloud & Building Block Services Haishi Bai Technical Evangelist Microsoft](https://reader035.vdocuments.mx/reader035/viewer/2022062409/5697bfe71a28abf838cb5bc7/html5/thumbnails/19.jpg)
What’s dedicated cache?
• Use spare memory on your VMs as high-performance cache
• Distributed cache cluster co-located with existing roles, or use dedicated roles
• Named caches with high availability option
• Notifications• Support Memcached protocol
![Page 20: Windows Azure Cloud & Building Block Services Haishi Bai Technical Evangelist Microsoft](https://reader035.vdocuments.mx/reader035/viewer/2022062409/5697bfe71a28abf838cb5bc7/html5/thumbnails/20.jpg)
Why dedicated cache?
FasterNo external service calls (additional network hops)Co-located in roles
CheaperNo external service calls (additional cost)Use spare memory that you already paid for
More reliableYour service is running = cache is availableNo throttling as in cotenant environment
![Page 21: Windows Azure Cloud & Building Block Services Haishi Bai Technical Evangelist Microsoft](https://reader035.vdocuments.mx/reader035/viewer/2022062409/5697bfe71a28abf838cb5bc7/html5/thumbnails/21.jpg)
Dedicated CacheDemo
![Page 22: Windows Azure Cloud & Building Block Services Haishi Bai Technical Evangelist Microsoft](https://reader035.vdocuments.mx/reader035/viewer/2022062409/5697bfe71a28abf838cb5bc7/html5/thumbnails/22.jpg)
Applicationbuilding blocks
StorageHPC
Caching
CDN
Database
Identity
MediaNetworking
Traffic
Messaging
![Page 23: Windows Azure Cloud & Building Block Services Haishi Bai Technical Evangelist Microsoft](https://reader035.vdocuments.mx/reader035/viewer/2022062409/5697bfe71a28abf838cb5bc7/html5/thumbnails/23.jpg)
Security challenge
Your App
Authentication
Authorization
User store
ManagementUI
Forget password?
Customersupport Data
protection
Integrationwith AD
LDAPUser
mapping
Synchronization
IntegrationWith
MoreUser
mapping
FacebookAuth API
MoreSynchronizatio
n
![Page 24: Windows Azure Cloud & Building Block Services Haishi Bai Technical Evangelist Microsoft](https://reader035.vdocuments.mx/reader035/viewer/2022062409/5697bfe71a28abf838cb5bc7/html5/thumbnails/24.jpg)
Solution: Claim-based architecture
Your App
?“User is Joe”“Role is Administrator”
ACS +
WIF
![Page 25: Windows Azure Cloud & Building Block Services Haishi Bai Technical Evangelist Microsoft](https://reader035.vdocuments.mx/reader035/viewer/2022062409/5697bfe71a28abf838cb5bc7/html5/thumbnails/25.jpg)
Federated security with ACS
Demo
![Page 26: Windows Azure Cloud & Building Block Services Haishi Bai Technical Evangelist Microsoft](https://reader035.vdocuments.mx/reader035/viewer/2022062409/5697bfe71a28abf838cb5bc7/html5/thumbnails/26.jpg)
Applicationbuilding blocks
StorageHPC
Caching
CDN
Database
Identity
MediaNetworking
Traffic
Messaging
![Page 27: Windows Azure Cloud & Building Block Services Haishi Bai Technical Evangelist Microsoft](https://reader035.vdocuments.mx/reader035/viewer/2022062409/5697bfe71a28abf838cb5bc7/html5/thumbnails/27.jpg)
Applicationbuilding blocks
StorageHPC
Caching
CDN
Database
Identity
MediaNetworking
Traffic
Messaging
![Page 28: Windows Azure Cloud & Building Block Services Haishi Bai Technical Evangelist Microsoft](https://reader035.vdocuments.mx/reader035/viewer/2022062409/5697bfe71a28abf838cb5bc7/html5/thumbnails/28.jpg)
Summaries
Cloud service is a container of related service roles
Build highly scalable services using familiar tools and frameworks
Dedicated cache
Building block services
![Page 30: Windows Azure Cloud & Building Block Services Haishi Bai Technical Evangelist Microsoft](https://reader035.vdocuments.mx/reader035/viewer/2022062409/5697bfe71a28abf838cb5bc7/html5/thumbnails/30.jpg)
© 2012 Microsoft Corporation. All rights reserved. Microsoft, Windows, 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.