13 wp7 working with azure

38
Windows Phone 7 Li Jingnan / Wang Tao 2011-7-15 1

Upload: tao-wang

Post on 07-Nov-2014

2.028 views

Category:

Technology


0 download

DESCRIPTION

 

TRANSCRIPT

Page 1: 13 wp7   working with azure

Windows Phone 7

Li Jingnan / Wang Tao2011-7-15

1

Page 2: 13 wp7   working with azure

Windows Phone Microsoft Corporation.

2 days 9:00 Introduction Anytao

10:30 Build a Silverlight Application Jason

13:00 Application Bar Anytao

14:30 Panorama and Pivots Jason

16:00 Launcher and Chooser Jason

9:00 Isolation Storage Anytao

10:30 Application Lifecycle Jason

13:00 Push Notification Anytao

14:30 Multitasking Jason

16:00 Local Database Anytao

9:00 Design Apps Using Expression Blend and Metro Jason

10:30 Marketing your Windows Phone Application Jason

13:00 Working with Azure Anytao

2

Page 3: 13 wp7   working with azure

Windows Phone Microsoft Corporation.

about

anytao | Ethos

<ethos:Member id = “Wang Tao” msn = [email protected] weibo = http://weibo.com/anytao runat = “Senior System Architect”/>

Jason | Ethos

<ethos:Member id = “Li Jingnan” msn = [email protected] weibo = http://weibo.com/jn1981 runat = “SE”/>

Page 4: 13 wp7   working with azure

Windows Phone Microsoft Corporation.

abouthttp://book.anytao.net

Page 5: 13 wp7   working with azure

13 Working with Azure

Wang Tao / 2011-07-15Senior System Architect

Page 6: 13 wp7   working with azure

Windows Phone Microsoft Corporation.

session outlineOverview

overview why phone + cloud? why WP7 + Azure? 5min Azure

identity storage service communications

Windows Azure toolkit for WP7

Page 7: 13 wp7   working with azure

Windows Phone Microsoft Corporation.

why Phone + Cloud?

the cloud levels the playing field the cloud provides a larger pool of

resources from which to pull the cloud provides a way to reach

across device platforms

Page 8: 13 wp7   working with azure

Windows Phone Microsoft Corporation.

why WP7 and Windows Azure?

PaaS: you build it, Windows Azure runs it automatic O/S patching scalable utility billing additional services (e.g. ACS, Traffic

Manager, Caching, CDN, etc.) common development tools

Visual Studio languages emulators for development

Page 9: 13 wp7   working with azure

Windows Phone Microsoft Corporation.9

Click to add picture5m about Azure

Page 10: 13 wp7   working with azure

Windows Phone Microsoft Corporation.

Windows Azure PlatformScalable compute and storageAutomated service managementFamiliar tools, technologies, languages

Relational storage for the cloudConsistent development modelAutomated database management

Connect existing apps to the cloudConnect through network boundariesEasily control authorization to apps

Page 11: 13 wp7   working with azure

Windows Phone Microsoft Corporation.

WAZ Storage

Windows Azure

Microsoft Push

Notification Service

Bing Translator

Username & PasswordAccess TokenAccess TokenShared Access Signature

Any pictures?

Original TextTranslated Text

Translated TextTranslated

Text

User AuthenticationStore Image in

Windows Azure Blob Storage

SAS

Process ImageSend Notification

Process Image

Page 12: 13 wp7   working with azure

Windows Phone Microsoft Corporation.

what are the pieces we just saw? identity storage services communications

Page 13: 13 wp7   working with azure

Windows Phone Microsoft Corporation.

identity

Page 14: 13 wp7   working with azure

Windows Phone Microsoft Corporation.

identity options create your own (e.g. username + password, token)

custom model ASP.NET membership providers

use a single existing identity system (e.g. Live Id, Facebook, etc.)

outsource identity management (e.g. Access Control Service)

Page 15: 13 wp7   working with azure

Windows Phone Microsoft Corporation.

storage

Page 16: 13 wp7   working with azure

Windows Phone Microsoft Corporation.

storage SQL Azure

Relational database Highly available Managed for you as a service

Windows Azure Tables Non-relational structured storage Massive scale-out OData

Windows Azure Blobs Big files REST

Page 17: 13 wp7   working with azure

Windows Phone Microsoft Corporation.

SQL Azure: OData Service client sends data to web role web role stores data in SQL Azure

WebRole

(1)

(2)

Page 18: 13 wp7   working with azure

Windows Phone Microsoft Corporation.

Windows Azure Blobs: public blobs client sends data to web

role web role stores data in

blobs client fetches public blobs

directly

WebRole

(1)

(2)

(3)

Page 19: 13 wp7   working with azure

Windows Phone Microsoft Corporation.

Windows Azure Blobs: SAS

client gets Shared Access Signature from web role

client stores data in blobs client fetches public blobs

directly

WebRole

(1)

(2) (3)

Page 20: 13 wp7   working with azure

Windows Phone Microsoft Corporation.

Windows Azure Tables: Proxy Calls client sends data to web role web role stores data in blobs

WebRole

(1)

(2)

Page 21: 13 wp7   working with azure

Windows Phone Microsoft Corporation.

do not store your secrets on the phone

Page 22: 13 wp7   working with azure

Windows Phone Microsoft Corporation.

services

Page 23: 13 wp7   working with azure

Windows Phone Microsoft Corporation.

Web Role versus Worker Role Web Role has IIS Worker Role does not

DLL with Main() Both implement the

RoleEntryPoint

Page 24: 13 wp7   working with azure

Windows Phone Microsoft Corporation.

scaling work in Windows Azure1. Web role receives

message2. Web role enqueues work3. Worker role polls queue4. Worker role sends

notifications

MPNS

Worker Role

Web Role

(1)

(2)

(3)

(4)

Page 25: 13 wp7   working with azure

Windows Phone Microsoft Corporation.

multitenancy you can have more than one application running in your role

instance

Page 26: 13 wp7   working with azure

Windows Phone Microsoft Corporation.

Content Delivery Network

CDN

CDN

CDN

CDN

CDN

CDN

Page 27: 13 wp7   working with azure

Windows Phone Microsoft Corporation.

Traffic Manager

Page 28: 13 wp7   working with azure

Windows Phone Microsoft Corporation.

Communications

Page 29: 13 wp7   working with azure

Windows Phone Microsoft Corporation.

communications two communication models

Phone-initiated Cloud-initiated

Page 30: 13 wp7   working with azure

Windows Phone Microsoft Corporation.

Phone-Initiated Communication Options HTTP-based, request/response framework choices (WCF, OData, WebRequest, etc.) wire format choices (SOAP, JSON, POX, etc.)

Page 31: 13 wp7   working with azure

Windows Phone Microsoft Corporation.

Cloud-Initiated Communication Push Notifications

single connection between phone and Microsoft Push Notification Service

bandwidth- and battery-friendly no guarantee of delivery

three kinds of push notifications Raw – send a message to an application Toast – send a message to the user Tile – update an image, title, or count

Page 32: 13 wp7   working with azure

Windows Phone Microsoft Corporation.

subscribing to Push Notifications phone opens a channel phone sends URL to cloud cloud pushes notifications

via URL Microsoft Push Notification

service notifies phone

MPNSWeb Role

(1)(2)

(3)

(4)

Page 33: 13 wp7   working with azure

Windows Phone Microsoft Corporation.

what makes this easier?

Page 34: 13 wp7   working with azure

Windows Phone Microsoft Corporation.

Windows Azure Toolkit for Windows Phone 7 (v1.2.3)http://watoolkitwp7.codeplex.com/

Page 35: 13 wp7   working with azure

Windows Phone Microsoft Corporation.

Windows Azure Toolkit for Windows Phone 7

make it easier for phone developers to use Windows Azure toolkit includes:

client libraries sample applications source code documentation

get it: http://watoolkitwp7.codeplex.com/

Page 36: 13 wp7   working with azure

Windows Phone Microsoft Corporation.36

demo04 Windows Azure Toolkit for WP7

/ WADT/ azure/ notification service

Page 37: 13 wp7   working with azure

Windows Phone Microsoft Corporation.37

Click to add picturethank youthank youwww.anytao.com

Page 38: 13 wp7   working with azure

Windows Phone Microsoft Corporation.

© 2011 Microsoft Corporation.

All rights reserved. Microsoft, Windows, Windows Vista 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.

38