Your SlideShare is downloading. ×
13 wp7   working with azure
Upcoming SlideShare
Loading in...5
×

Thanks for flagging this SlideShare!

Oops! An error has occurred.

×

Introducing the official SlideShare app

Stunning, full-screen experience for iPhone and Android

Text the download link to your phone

Standard text messaging rates apply

13 wp7 working with azure

1,750
views

Published on

Published in: Technology

0 Comments
0 Likes
Statistics
Notes
  • Be the first to comment

  • Be the first to like this

No Downloads
Views
Total Views
1,750
On Slideshare
0
From Embeds
0
Number of Embeds
1
Actions
Shares
0
Downloads
16
Comments
0
Likes
0
Embeds 0
No embeds

Report content
Flagged as inappropriate Flag as inappropriate
Flag as inappropriate

Select your reason for flagging this presentation as inappropriate.

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

    • 1. Windows Phone 7
      Li Jingnan / Wang Tao
      2011-7-15
      1
    • 2. 2 days
      2
    • 3. about
      anytao| Ethos
      <ethos:Member
      id = “Wang Tao”
      msn = anytao@live.com
      weibo = http://weibo.com/anytao
      runat = “Senior System Architect”
      />
      Jason | Ethos
      <ethos:Member
      id = “Li Jingnan”
      msn = zengnami@hotmail.com
      weibo= http://weibo.com/jn1981
      runat = “SE”
      />
    • 4. about
      http://book.anytao.net
    • 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
    • 9. 5m about Azure
      9
    • 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
    • 13. identity
    • 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)
    • 15. storage
    • 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)
    • 21. do not store your secrets on the phone
    • 22. services
    • 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
    • 26. Content Delivery Network
      CDN
      CDN
      CDN
      CDN
      CDN
      CDN
    • 27. Traffic Manager
    • 28. Communications
    • 29. communications
      two communication models
      Phone-initiated
      Cloud-initiated
    • 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)
    • 33. what makes this easier?
    • 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
    • 37. thank you
      37
      thank youwww.anytao.com
    • 38. 38