220 likes | 401 Views
When Apps meet the Cloud Windows Azure Mobile Services from 0-100. Mario Szpuszta Technical Evangelist, Microsoft Corp. blogs.msdn.com/ mszcool. Agenda. Positioning Azure Mobile Services What are we talking about ? How is Mobile Services related to other services in Azure?
E N D
When Apps meetthe Cloud Windows Azure Mobile Services from 0-100 Mario Szpuszta Technical Evangelist, Microsoft Corp. blogs.msdn.com/mszcool
Agenda Positioning Azure Mobile Services Whatarewetalkingabout? Howis Mobile Services relatedtootherservices in Azure? Mobile Services Architecture Whichfunctionality do Mobile Services provide? Whatpiecesandartifactsareweworkingwith? Developing a Mobile Services App How-to get started? How-to,dealwithmoreadvancedscenarios such asauthentication, push etc.?
Positioning Azure Mobile Services Understanding Mobile Services andtheir Target Group
Windows Azure – Environment for Apps • Virtual Machines • Cloud Services • Web Sites • Mobile Services Web Apps Applications Multi-tier Apps Mobile Apps Data Data Data Data Firewall Rules Endpoint Management Virtual Network O/S Focus on the Application
Applicationbuildingblocks Big data Database Media Storage Traffic Messaging Identity Caching CDN Networking
Open for many platforms • SDKs and tools for: • .NET, PHP, Java, Python, node.js • Mobile platforms incl. iOS, Android, WP7 • Eclipse, Visual Studio etc. • Most released as OSS • Codeplex & github are primary sources • Generally • All also available as HTTP REST • Integration of any platform possible
What is Windows Azure Mobile Services? Framework: create backend services Builtwith Node.js, based on Windows Azure Websites Target group: you create mobile and tablet apps Create Windows Store, WP7/8, iOS and Android apps super-fast Need onecommon backend tostoreandexchangedata How you need to think about it? Need backend servicesforyourapps… andyourappsonly Not a replacementfor Websites ourcloudserviceswhichofferhigherlevelofcontrol
Mobile Services Architecture What Services areavailable? Whatisthetypicalarchitecture?
What is Windows Azure Mobile Services? Notifications Auth Data Logging Server Logic Scale Diagnostics
Development with Mobile Services Howto get startedandadvancedscenarios…
GettingStarted… Create a Mobile Service Reserve resources in the Azure datacenterforyour backend Create a new App ofyourchoice Windows 8, Windows Phone 8, iOS, Android Download andinclude Mobile Services SDK Create a centralMobileServiceClientinstancewiththeservice URL andtheappkey
Structured Storage Structured Storage with SQL Database If using single database apps are partitioned by schema AppX.Todoitem AppY.Todoitem Manage data in Portal SQL Portal SQL Management Studio REST API…
Auth* Authenticate against Windows Live Table level permissions for each CRUD operation Everyone Anyone with the Application Key Only Authenticated Users Only Scripts and Admins More granular control with server side scripts user.level: {admin, authenticated, anonymous} user.userId: id or undefined if not authenticated
Server Logic Automatic service REST API generated for storage Dynamic Schema on/off Ability to author server logic that intercepts CRUD operation pipeline Rich querying capability
Server Logic Supported Modules + Globals mssql request console push tables statusCodes mssql.query('select top 1 * from statusupdates', { success: function(results) { console.log(results); } } );
Push Notification Lifecycle Overview Mobile Services Windows 8 Request Channel URI Register with your Cloud Service Authenticate & Push Notification App (2) Windows Push Notification Service Notification Client Platform (3) (1) (3)
Diagnostics, Logging and Scale Diagnostics API calls CPU Time Data Out Logging console.error(…) console.log(…) Scale - Compute Scale out instance count Scale up VM size Scale - Storage Scale out mobile service tenant to dedicated SQL DB Scale up SQL DB
Summary All youneedtoknowto get started…
Windows Azure Mobile Services Notifications Auth Data Logging Server Logic Scale Diagnostics