Windows Phone 7Li Jingnan / Wang Tao2011-7-151
2 days2
aboutanytao| Ethos<ethos:Member   id = “Wang Tao”   msn = anytao@live.comweibo = http://weibo.com/anytaorunat = “Senior System Architect”/>Jason | Ethos<ethos:Member   id = “Li Jingnan”   msn = zengnami@hotmail.comweibo= http://weibo.com/jn1981runat = “SE”/>
abouthttp://book.anytao.net
13 Working with AzureWang Tao / 2011-07-15Senior System Architect
session outlineOverviewWindows Azure toolkit for WP7overviewwhy phone + cloud?why WP7 + Azure?5min Azureidentitystorageservicecommunications
why Phone + Cloud?the cloud levels the playing fieldthe cloud provides a larger pool of resources from which to pullthe cloud provides a way to reach across device platforms
why WP7 and Windows Azure?PaaS: you build it, Windows Azure runs itautomatic O/S patchingscalableutility billingadditional services (e.g. ACS, Traffic Manager, Caching, CDN, etc.)common development toolsVisual Studiolanguagesemulators for development
5m about Azure9
Windows Azure PlatformScalable compute and storageAutomated service managementFamiliar tools, technologies, languages Relational storage for the cloudConsistent development modelAutomated database managementConnect existing apps to the cloudConnect through network boundariesEasily control authorization to apps
WAZ StorageAny pictures?Windows AzureSASProcess ImageUser AuthenticationStore Image in Windows Azure Blob StorageProcess ImageSend NotificationUsername & PasswordAccess TokenAccess TokenShared Access SignatureOriginal TextTranslated TextTranslated      TextTranslated     TextMicrosoft Push Notification ServiceBing Translator
what are the pieces we just saw?identitystorageservicescommunications
identity
identity optionscreate your own (e.g. username + password, token)custom modelASP.NET membership providersuse a single existing identity system (e.g. Live Id, Facebook, etc.)outsource identity management (e.g. Access Control Service)
storage
storageSQL AzureRelational databaseHighly availableManaged for you as a serviceWindows Azure TablesNon-relational structured storageMassive scale-outODataWindows Azure BlobsBig filesREST
SQL Azure: OData Serviceclient sends data to web roleweb role stores data in SQL Azure(2)WebRole(1)
Windows Azure Blobs: public blobsclient sends data to web roleweb role stores data in blobsclient fetches public blobs directly(2)WebRole(3)(1)
Windows Azure Blobs: SASclient gets Shared Access Signature from web roleclient stores data in blobsclient fetches public blobs directlyWebRole(2)(3)(1)
Windows Azure Tables: Proxy Callsclient sends data to web roleweb role stores data in blobs(2)WebRole(1)
do not store your secrets on the phone
services
Web Role versus Worker RoleWeb Role has IISWorker Role does notDLL with Main()Both implement the RoleEntryPoint
scaling work in Windows AzureWeb role receives messageWeb role enqueues workWorker role polls queueWorker role sends notifications(2)(4)Worker RoleWeb RoleMPNS(3)(1)
multitenancyyou can have more than one application running in your role instance
Content Delivery NetworkCDNCDNCDNCDNCDNCDN
Traffic Manager
Communications
communicationstwo communication modelsPhone-initiatedCloud-initiated
Phone-Initiated Communication OptionsHTTP-based, request/responseframework choices (WCF, OData, WebRequest, etc.)wire format choices (SOAP, JSON, POX, etc.)
Cloud-Initiated CommunicationPush Notificationssingle connection between phone and Microsoft Push Notification Servicebandwidth- and battery-friendlyno guarantee of deliverythree kinds of push notificationsRaw – send a message to an applicationToast – send a message to the userTile – update an image, title, or count
subscribing to Push Notificationsphone opens a channelphone sends URL to cloudcloud pushes notifications via URLMicrosoft Push Notification service notifies phoneMPNSWeb Role(3)(1)(2)(4)
what makes this easier?
Windows Azure Toolkit for Windows Phone 7 (v1.2.3)http://watoolkitwp7.codeplex.com/
Windows Azure Toolkit for Windows Phone 7make it easier for phone developers to use Windows Azuretoolkit includes:client librariessample applicationssource codedocumentationget it: http://watoolkitwp7.codeplex.com/
demo36/ WADT/ azure/ notification service04 Windows Azure Toolkit for WP7
thank you37thank youwww.anytao.com
38

13 wp7 working with azure

  • 1.
    Windows Phone 7LiJingnan / Wang Tao2011-7-151
  • 2.
  • 3.
    aboutanytao| Ethos<ethos:Member id = “Wang Tao” msn = anytao@live.comweibo = http://weibo.com/anytaorunat = “Senior System Architect”/>Jason | Ethos<ethos:Member id = “Li Jingnan” msn = zengnami@hotmail.comweibo= http://weibo.com/jn1981runat = “SE”/>
  • 4.
  • 5.
    13 Working withAzureWang Tao / 2011-07-15Senior System Architect
  • 6.
    session outlineOverviewWindows Azuretoolkit for WP7overviewwhy phone + cloud?why WP7 + Azure?5min Azureidentitystorageservicecommunications
  • 7.
    why Phone +Cloud?the cloud levels the playing fieldthe cloud provides a larger pool of resources from which to pullthe cloud provides a way to reach across device platforms
  • 8.
    why WP7 andWindows Azure?PaaS: you build it, Windows Azure runs itautomatic O/S patchingscalableutility billingadditional services (e.g. ACS, Traffic Manager, Caching, CDN, etc.)common development toolsVisual Studiolanguagesemulators for development
  • 9.
  • 10.
    Windows Azure PlatformScalablecompute and storageAutomated service managementFamiliar tools, technologies, languages Relational storage for the cloudConsistent development modelAutomated database managementConnect existing apps to the cloudConnect through network boundariesEasily control authorization to apps
  • 11.
    WAZ StorageAny pictures?WindowsAzureSASProcess ImageUser AuthenticationStore Image in Windows Azure Blob StorageProcess ImageSend NotificationUsername & PasswordAccess TokenAccess TokenShared Access SignatureOriginal TextTranslated TextTranslated TextTranslated TextMicrosoft Push Notification ServiceBing Translator
  • 12.
    what are thepieces we just saw?identitystorageservicescommunications
  • 13.
  • 14.
    identity optionscreate yourown (e.g. username + password, token)custom modelASP.NET membership providersuse a single existing identity system (e.g. Live Id, Facebook, etc.)outsource identity management (e.g. Access Control Service)
  • 15.
  • 16.
    storageSQL AzureRelational databaseHighlyavailableManaged for you as a serviceWindows Azure TablesNon-relational structured storageMassive scale-outODataWindows Azure BlobsBig filesREST
  • 17.
    SQL Azure: ODataServiceclient sends data to web roleweb role stores data in SQL Azure(2)WebRole(1)
  • 18.
    Windows Azure Blobs:public blobsclient sends data to web roleweb role stores data in blobsclient fetches public blobs directly(2)WebRole(3)(1)
  • 19.
    Windows Azure Blobs:SASclient gets Shared Access Signature from web roleclient stores data in blobsclient fetches public blobs directlyWebRole(2)(3)(1)
  • 20.
    Windows Azure Tables:Proxy Callsclient sends data to web roleweb role stores data in blobs(2)WebRole(1)
  • 21.
    do not storeyour secrets on the phone
  • 22.
  • 23.
    Web Role versusWorker RoleWeb Role has IISWorker Role does notDLL with Main()Both implement the RoleEntryPoint
  • 24.
    scaling work inWindows AzureWeb role receives messageWeb role enqueues workWorker role polls queueWorker role sends notifications(2)(4)Worker RoleWeb RoleMPNS(3)(1)
  • 25.
    multitenancyyou can havemore than one application running in your role instance
  • 26.
  • 27.
  • 28.
  • 29.
  • 30.
    Phone-Initiated Communication OptionsHTTP-based,request/responseframework choices (WCF, OData, WebRequest, etc.)wire format choices (SOAP, JSON, POX, etc.)
  • 31.
    Cloud-Initiated CommunicationPush Notificationssingleconnection between phone and Microsoft Push Notification Servicebandwidth- and battery-friendlyno guarantee of deliverythree kinds of push notificationsRaw – send a message to an applicationToast – send a message to the userTile – update an image, title, or count
  • 32.
    subscribing to PushNotificationsphone opens a channelphone sends URL to cloudcloud pushes notifications via URLMicrosoft Push Notification service notifies phoneMPNSWeb Role(3)(1)(2)(4)
  • 33.
  • 34.
    Windows Azure Toolkitfor Windows Phone 7 (v1.2.3)http://watoolkitwp7.codeplex.com/
  • 35.
    Windows Azure Toolkitfor Windows Phone 7make it easier for phone developers to use Windows Azuretoolkit includes:client librariessample applicationssource codedocumentationget it: http://watoolkitwp7.codeplex.com/
  • 36.
    demo36/ WADT/ azure/notification service04 Windows Azure Toolkit for WP7
  • 37.
  • 38.

Editor's Notes

  • #11 Windows Azure包含三部分:Windows Azure:计算和简单存储功能SQL Azure:关系数据库AppFabric:部署在云端的应用方便和本地应用交互和访问控制。未来还将包括分布式缓存等功能。