anytao 让windows phone应用在云端翱翔
TRANSCRIPT
![Page 1: Anytao 让windows phone应用在云端翱翔](https://reader033.vdocuments.pub/reader033/viewer/2022042507/555d645cd8b42a9d3b8b5b12/html5/thumbnails/1.jpg)
![Page 2: Anytao 让windows phone应用在云端翱翔](https://reader033.vdocuments.pub/reader033/viewer/2022042507/555d645cd8b42a9d3b8b5b12/html5/thumbnails/2.jpg)
让Windows Phone应用在云端翱翔
WPH-200-1
王涛、李会军
架构师
北京若云兄弟科技有限公司
![Page 3: Anytao 让windows phone应用在云端翱翔](https://reader033.vdocuments.pub/reader033/viewer/2022042507/555d645cd8b42a9d3b8b5b12/html5/thumbnails/3.jpg)
王涛
专注于.NET,架构师,微软MVP, 著《你必须知道的.NET》。
http://weibo.com/anytao
李会军
架构师,语言爱好者,关注高并发、高性能互联网架构、并行计算、分布式存储与计算。
http://weibo.com/terryleeme
![Page 4: Anytao 让windows phone应用在云端翱翔](https://reader033.vdocuments.pub/reader033/viewer/2022042507/555d645cd8b42a9d3b8b5b12/html5/thumbnails/4.jpg)
![Page 5: Anytao 让windows phone应用在云端翱翔](https://reader033.vdocuments.pub/reader033/viewer/2022042507/555d645cd8b42a9d3b8b5b12/html5/thumbnails/5.jpg)
关于Windows Azure
关于Windows Phone
基于推荐引擎的移劢应用
最佳实践
![Page 6: Anytao 让windows phone应用在云端翱翔](https://reader033.vdocuments.pub/reader033/viewer/2022042507/555d645cd8b42a9d3b8b5b12/html5/thumbnails/6.jpg)
趋势必行
数据、资源、复杂计算走向云端
应用、桌面深入移动端
Cloud
提供了更大的资源池
提供了一处服务、多处设备的可能
按需消费
自动管理
可用性
Phone
实现了更近的访问(LBS)
实现了随时、随地
![Page 7: Anytao 让windows phone应用在云端翱翔](https://reader033.vdocuments.pub/reader033/viewer/2022042507/555d645cd8b42a9d3b8b5b12/html5/thumbnails/7.jpg)
Cloud = (数据软件 + 平台 + 基础设施) × 服务
Phone = (随时 + 随地) × 服务
服务
以无限应对有限
![Page 8: Anytao 让windows phone应用在云端翱翔](https://reader033.vdocuments.pub/reader033/viewer/2022042507/555d645cd8b42a9d3b8b5b12/html5/thumbnails/8.jpg)
PaaS(Not IaaS or SaaS)
可伸缩性、高可靠性、安全性
支付系统
更多附加服务(ASC、Traffic Manager、Caching、CDN)
统一的工具和平台
.NET/Silverlight/C#/VB .NET
Visual Studio / Expression Blend
模拟器开发
易于迁移 Azure for Device, not only for Windows Phone
![Page 9: Anytao 让windows phone应用在云端翱翔](https://reader033.vdocuments.pub/reader033/viewer/2022042507/555d645cd8b42a9d3b8b5b12/html5/thumbnails/9.jpg)
Phone+Cloud
关于Windows Phone
基于推荐引擎的移劢应用
最佳实践
![Page 10: Anytao 让windows phone应用在云端翱翔](https://reader033.vdocuments.pub/reader033/viewer/2022042507/555d645cd8b42a9d3b8b5b12/html5/thumbnails/10.jpg)
![Page 11: Anytao 让windows phone应用在云端翱翔](https://reader033.vdocuments.pub/reader033/viewer/2022042507/555d645cd8b42a9d3b8b5b12/html5/thumbnails/11.jpg)
Phone+Cloud
关于Windows Azure
基于推荐引擎的移劢应用
最佳实践
![Page 12: Anytao 让windows phone应用在云端翱翔](https://reader033.vdocuments.pub/reader033/viewer/2022042507/555d645cd8b42a9d3b8b5b12/html5/thumbnails/12.jpg)
Windows Phone 7
![Page 13: Anytao 让windows phone应用在云端翱翔](https://reader033.vdocuments.pub/reader033/viewer/2022042507/555d645cd8b42a9d3b8b5b12/html5/thumbnails/13.jpg)
三分天下
WP7
iPhone
Android
![Page 14: Anytao 让windows phone应用在云端翱翔](https://reader033.vdocuments.pub/reader033/viewer/2022042507/555d645cd8b42a9d3b8b5b12/html5/thumbnails/14.jpg)
Phone+Cloud
关于Windows Azure
关于Windows Phone
最佳实践
![Page 15: Anytao 让windows phone应用在云端翱翔](https://reader033.vdocuments.pub/reader033/viewer/2022042507/555d645cd8b42a9d3b8b5b12/html5/thumbnails/15.jpg)
演示
海纳www.haina123.com
![Page 16: Anytao 让windows phone应用在云端翱翔](https://reader033.vdocuments.pub/reader033/viewer/2022042507/555d645cd8b42a9d3b8b5b12/html5/thumbnails/16.jpg)
高计算量服务
随时骤增的资源需求
高性能
缓存
完全自劢化的部署和配置管理
可伸缩性、可靠性、安全性保证
通知服务
成本控制
与既有服务的整合
多移劢端平台:Windows Phone、iOS、Android、Html5
同一个平台、同一套工具
![Page 17: Anytao 让windows phone应用在云端翱翔](https://reader033.vdocuments.pub/reader033/viewer/2022042507/555d645cd8b42a9d3b8b5b12/html5/thumbnails/17.jpg)
用户信息验证 计算推荐 发送通知
![Page 18: Anytao 让windows phone应用在云端翱翔](https://reader033.vdocuments.pub/reader033/viewer/2022042507/555d645cd8b42a9d3b8b5b12/html5/thumbnails/18.jpg)
身份认证
存储
服务和计算
通信
推送通知
其他
![Page 19: Anytao 让windows phone应用在云端翱翔](https://reader033.vdocuments.pub/reader033/viewer/2022042507/555d645cd8b42a9d3b8b5b12/html5/thumbnails/19.jpg)
通信
![Page 20: Anytao 让windows phone应用在云端翱翔](https://reader033.vdocuments.pub/reader033/viewer/2022042507/555d645cd8b42a9d3b8b5b12/html5/thumbnails/20.jpg)
通信模型
Phone-initiated
Cloud-initiated
Push VS Pull
Client-Pull Server-Push
![Page 21: Anytao 让windows phone应用在云端翱翔](https://reader033.vdocuments.pub/reader033/viewer/2022042507/555d645cd8b42a9d3b8b5b12/html5/thumbnails/21.jpg)
HTTP-based, request/response
框架选择(WCF, OData, WebRequest, etc.)
格式选择(SOAP, JSON, POX, etc.)
![Page 22: Anytao 让windows phone应用在云端翱翔](https://reader033.vdocuments.pub/reader033/viewer/2022042507/555d645cd8b42a9d3b8b5b12/html5/thumbnails/22.jpg)
Push Notifications
Phone和MSPN单连接
带宽和电池友好
无需运维
3种类型
Raw – 发送消息给application
Toast – 发送消息给user
Tile – 更新Tile Title
![Page 23: Anytao 让windows phone应用在云端翱翔](https://reader033.vdocuments.pub/reader033/viewer/2022042507/555d645cd8b42a9d3b8b5b12/html5/thumbnails/23.jpg)
Cloud Service
Windows Phone 7
MPNS
![Page 24: Anytao 让windows phone应用在云端翱翔](https://reader033.vdocuments.pub/reader033/viewer/2022042507/555d645cd8b42a9d3b8b5b12/html5/thumbnails/24.jpg)
演示
![Page 25: Anytao 让windows phone应用在云端翱翔](https://reader033.vdocuments.pub/reader033/viewer/2022042507/555d645cd8b42a9d3b8b5b12/html5/thumbnails/25.jpg)
Windows 8
WNS, Windows Push Notification Service
Windows Phone
MPNS, Microsoft Push Notification Service
iOS
APNS, Apple Push Notification Service
Android
C2DM, Cloud To Device Messaging
![Page 26: Anytao 让windows phone应用在云端翱翔](https://reader033.vdocuments.pub/reader033/viewer/2022042507/555d645cd8b42a9d3b8b5b12/html5/thumbnails/26.jpg)
身份认证
![Page 27: Anytao 让windows phone应用在云端翱翔](https://reader033.vdocuments.pub/reader033/viewer/2022042507/555d645cd8b42a9d3b8b5b12/html5/thumbnails/27.jpg)
使用既有身份服务
LiveID、Facebook、OpenID
ACS(Access Control Service)
自定义身份服务
username + password
token
![Page 28: Anytao 让windows phone应用在云端翱翔](https://reader033.vdocuments.pub/reader033/viewer/2022042507/555d645cd8b42a9d3b8b5b12/html5/thumbnails/28.jpg)
存储
![Page 29: Anytao 让windows phone应用在云端翱翔](https://reader033.vdocuments.pub/reader033/viewer/2022042507/555d645cd8b42a9d3b8b5b12/html5/thumbnails/29.jpg)
SQL Azure
关系数据库
高可用性
通过服务管理
Windows Azure Table
非关系结构数据
横向扩展
OData
Windows Azure Blob
大文件
Restful API
Windows Azure Queue
分布式队列
![Page 30: Anytao 让windows phone应用在云端翱翔](https://reader033.vdocuments.pub/reader033/viewer/2022042507/555d645cd8b42a9d3b8b5b12/html5/thumbnails/30.jpg)
客户端发送数据到Web Role
Web Role将数据存储在SQL Azure
Web Role
![Page 31: Anytao 让windows phone应用在云端翱翔](https://reader033.vdocuments.pub/reader033/viewer/2022042507/555d645cd8b42a9d3b8b5b12/html5/thumbnails/31.jpg)
客户端发送数据到Web Role
Web Role将数据存储在Blobs
客户端直接获取Blob数据
Web Role
![Page 32: Anytao 让windows phone应用在云端翱翔](https://reader033.vdocuments.pub/reader033/viewer/2022042507/555d645cd8b42a9d3b8b5b12/html5/thumbnails/32.jpg)
服务和计算
![Page 33: Anytao 让windows phone应用在云端翱翔](https://reader033.vdocuments.pub/reader033/viewer/2022042507/555d645cd8b42a9d3b8b5b12/html5/thumbnails/33.jpg)
Web Role有IIS
Worker Role 没有
DLL with Main()
都实现了RoleEntryPoint
![Page 34: Anytao 让windows phone应用在云端翱翔](https://reader033.vdocuments.pub/reader033/viewer/2022042507/555d645cd8b42a9d3b8b5b12/html5/thumbnails/34.jpg)
1. Web Role接受消息
2. Web Role将工作加入队列
3. Worker Role从队列获取并处理
4. Worker Role发送通知
MPNS
Worker Role
Web Role
![Page 35: Anytao 让windows phone应用在云端翱翔](https://reader033.vdocuments.pub/reader033/viewer/2022042507/555d645cd8b42a9d3b8b5b12/html5/thumbnails/35.jpg)
instance1 Instance1~X
HainaService
ContentService
InstanceX+1
Portal Site
Admin Site
Image Service
![Page 36: Anytao 让windows phone应用在云端翱翔](https://reader033.vdocuments.pub/reader033/viewer/2022042507/555d645cd8b42a9d3b8b5b12/html5/thumbnails/36.jpg)
CDN
CDN
CDN
CDN
CDN
CDN
![Page 37: Anytao 让windows phone应用在云端翱翔](https://reader033.vdocuments.pub/reader033/viewer/2022042507/555d645cd8b42a9d3b8b5b12/html5/thumbnails/37.jpg)
![Page 38: Anytao 让windows phone应用在云端翱翔](https://reader033.vdocuments.pub/reader033/viewer/2022042507/555d645cd8b42a9d3b8b5b12/html5/thumbnails/38.jpg)
Phone+Cloud
关于Windows Azure
关于Windows Phone
基于推荐引擎的移劢应用
![Page 39: Anytao 让windows phone应用在云端翱翔](https://reader033.vdocuments.pub/reader033/viewer/2022042507/555d645cd8b42a9d3b8b5b12/html5/thumbnails/39.jpg)
UX
Design
Performance
Data
Storage
Service
Game
Network
XNA
MVVM
![Page 40: Anytao 让windows phone应用在云端翱翔](https://reader033.vdocuments.pub/reader033/viewer/2022042507/555d645cd8b42a9d3b8b5b12/html5/thumbnails/40.jpg)
让开发飞一会儿。。。
![Page 41: Anytao 让windows phone应用在云端翱翔](https://reader033.vdocuments.pub/reader033/viewer/2022042507/555d645cd8b42a9d3b8b5b12/html5/thumbnails/41.jpg)
(v1.3.0) http://watoolkitwp7.codeplex.com/
![Page 42: Anytao 让windows phone应用在云端翱翔](https://reader033.vdocuments.pub/reader033/viewer/2022042507/555d645cd8b42a9d3b8b5b12/html5/thumbnails/42.jpg)
WP7, http://watwp.codeplex.com/
iOS, https://github.com/microsoft-dpe/wa-toolkit-ios
Android, https://github.com/microsoft-dpe/wa-toolkit-android
Azure for Device, not only for Windows Phone
![Page 43: Anytao 让windows phone应用在云端翱翔](https://reader033.vdocuments.pub/reader033/viewer/2022042507/555d645cd8b42a9d3b8b5b12/html5/thumbnails/43.jpg)
![Page 44: Anytao 让windows phone应用在云端翱翔](https://reader033.vdocuments.pub/reader033/viewer/2022042507/555d645cd8b42a9d3b8b5b12/html5/thumbnails/44.jpg)
![Page 45: Anytao 让windows phone应用在云端翱翔](https://reader033.vdocuments.pub/reader033/viewer/2022042507/555d645cd8b42a9d3b8b5b12/html5/thumbnails/45.jpg)
![Page 46: Anytao 让windows phone应用在云端翱翔](https://reader033.vdocuments.pub/reader033/viewer/2022042507/555d645cd8b42a9d3b8b5b12/html5/thumbnails/46.jpg)
© 2008 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.