This document discusses Windows Phone 7 and Windows Azure. It provides an overview of using Windows Azure services like storage, identity management, and push notifications from a Windows Phone 7 application. Key points covered include why to use the cloud with mobile apps, common Windows Azure services like SQL Azure and blob storage, and how Windows Phone 7 apps can integrate with Azure for features like scalable backend services and push notifications. It also introduces the Windows Azure Toolkit for Windows Phone 7 which makes it easier for phone developers to access Azure services.
5. 13 Working with Azure Wang Tao / 2011-07-15 Senior System Architect
6. session outline Overview Windows Azure toolkit for WP7 overview why phone + cloud? why WP7 + Azure? 5min Azure identity storage service communications
7. 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
8. 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
10. Windows Azure Platform Scalable compute and storage Automated service management Familiar tools, technologies, languages Relational storage for the cloud Consistent development model Automated database management Connect existing apps to the cloud Connect through network boundaries Easily control authorization to apps
11. WAZ Storage Any pictures? Windows Azure SAS Process Image User Authentication Store Image in Windows Azure Blob Storage Process Image Send Notification Username & Password Access Token Access Token Shared Access Signature Original Text Translated Text Translated Text Translated Text Microsoft Push Notification Service Bing Translator
12. what are the pieces we just saw? identity storage services communications
14. 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)
16. 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
17. SQL Azure: OData Service client sends data to web role web role stores data in SQL Azure (2) Web Role (1)
18. Windows Azure Blobs: public blobs client sends data to web role web role stores data in blobs client fetches public blobs directly (2) Web Role (3) (1)
19. Windows Azure Blobs: SAS client gets Shared Access Signature from web role client stores data in blobs client fetches public blobs directly Web Role (2) (3) (1)
20. Windows Azure Tables: Proxy Calls client sends data to web role web role stores data in blobs (2) Web Role (1)
23. Web Role versus Worker Role Web Role has IIS Worker Role does not DLL with Main() Both implement the RoleEntryPoint
24. scaling work in Windows Azure Web role receives message Web role enqueues work Worker role polls queue Worker role sends notifications (2) (4) Worker Role Web Role MPNS (3) (1)
25. multitenancy you can have more than one application running in your role instance
30. Phone-Initiated Communication Options HTTP-based, request/response framework choices (WCF, OData, WebRequest, etc.) wire format choices (SOAP, JSON, POX, etc.)
31. 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
32. subscribing to Push Notifications phone opens a channel phone sends URL to cloud cloud pushes notifications via URL Microsoft Push Notification service notifies phone MPNS Web Role (3) (1) (2) (4)
34. Windows Azure Toolkit for Windows Phone 7 (v1.2.3) http://watoolkitwp7.codeplex.com/
35. 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/
36. demo 36 / WADT / azure / notification service 04 Windows Azure Toolkit for WP7