Building iOS Apps with Windows Azure Mobile ServicesChris RisnerTechnical EvangelistMicrosoft
http://chrisrisner.com@chrisrisner
Windows Azure Mobile ServicesDataAuthDiagnostics & Scale
Agenda
What is Windows Azure Mobile Services?
Data
Notifications
Auth
Server Logic
Scale
Logging
Diagnostics
Getting Started a backend for your mobile app in minutes Demo
Structured StorageStructured Storage with SQL DatabaseIf using single database apps are partitioned by schema
AppX.TodoitemAppY.Todoitem
Manage data inPortalSQL Management PortalSQL Management StudioREST API…
Server Logic
Automatic service REST API generated for storageRich querying capabilityDynamic Schema on/offAbility to author server logic that intercepts CRUD operation pipeline
Server Logic
Supported Modules + GlobalsmssqlrequestconsoletablesstatusCodes
mssql.query('select top 1 * from statusupdates', { success: function(results) { console.log(results);
} }
);
REST API to SQL type mappings
JSON Value T-SQL Type
Numeric values (integer, decimal, floating point)
Float
Boolean Bit
DateTime DateTimeOffset(3)
String Nvarchar(max)
Server Logicadding server logic on CRUD
operations Demo
Auth*Authenticate against multiple providersTable level permissions for each CRUD operation
EveryoneAnyone with the Application KeyOnly Authenticated UsersOnly Scripts and Admins
More granular control with server side scriptsuser.level: {admin, authenticated, anonymous}user.userId: id or undefined if not authenticated
Adding Authenticationintegrating with Twitter Demo
Diagnostics, Logging and Scale
DiagnosticsAPI callsCPU TimeData Out
Loggingconsole.error(…)console.log(…)…
Scale - ComputeScale out instance countScale up VM size
Scale - StorageScale to dedicated SQL DBScale up SQL DB
Diagnostics, Logging, Scale
Demo
Free Offer at Preview
Running on shared instances
10 Mobile Services 1GB SQL
Database
Currently only in US DCs
Data transfer is per subscription, not per mobile service
From
WA
Free Tria
lUnlimited ingress
165MB daily egress
Summary
Data
Notifications
Auth
Server Logic
Scale
Logging
Diagnostics
Resources
16
Mobile Services Developer Portalhttps://www.windowsazure.com/en-us/develop/mobile/
API Reference http://bit.ly/Q3Aq6G
Windows Azure Accountshttp://aka.ms/MobileServices-iOS-SDK
© 2011 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.
Top Related