You are on page 1of 23

Building Android Apps

with Windows Azure


Mobile Services
Name
Title
Organization
Agenda

Windows Azure Mobile Services


Data
Push Notifications
Auth
Scheduler
Diagnostics & Scale
What is Windows Azure Mobile Services?

Server Logic Notifications Logging & Diag

Auth Data Scheduler Scale


Getting Started
a backend for your mobile app in minutes Demo
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
CLI Tools
Server Logic
Automatic service REST API generated for storage
Dynamic Schema on/off
Ability to author server logic that intercepts CRUD
operation pipeline
Server Logic
Supported Modules + Globals
mssql
request mssql.query('select top 1 * from statusupdates',
{ success: function(results) {
console console.log(results);
}
push }
tables );
statusCodes
REST API to SQL type mappings
JSON Value T-SQL Type
Numeric values (integer, Float
decimal, floating point)
Boolean Bit
DateTime DateTimeOffset(3)
String Nvarchar(max)
Server Logic
adding server logic on CRUD operations Demo
Push Notification Lifecycle Overview
Android 1. Register for push
notifications
2. Register with your
(2) send ID to Mobile Service
Mobile Services
App 3. Push from server side
(3)
scripts
(3
)
)
(1

Google Cloud
Messaging
@chrisrisner
Push Notifications
Demo
Auth*
Authenticate against multiple providers
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
Adding Authentication
integrating with Twitter Demo
Scheduler
Execute scripts on a Schedule
by Minutes
by Hours
by Days
By Months
Execute scripts on Demand
Examples
Periodic purge of old data
Poll and aggregate from 3rd party (Twitter, RSS, others)
Process/resize images
Schedule sending push notifications for a given time of day
Scheduling a task
Deliver a push notification Demo
Diagnostics, Logging and Scale
Diagnostics Scale - Compute
API calls Scale out instance count
CPU Time Scale up VM size
Data Out
Scale - Storage
Logging Scale out mobile service tenant to
console.error(…) dedicated SQL DB
console.log(…) Scale up SQL DB

Diagnostics, Logging,
Scale Demo
Pricing during Preview
service level
shared mode reserved mode agreements
Shared Instance Private VM Preview
No availability SLA*
Small instance is the only size Small instance is the only size
available available General Availability
Free - 10 applications with Free - unlimited inbound 99.9%
unlimited inbound data. Capped data. 165MB outbound
max of 165MB outbound data/day, excess charged.
data/day

Pay - SQL Database Pay - SQL Database,


Compute same reduced rate
as Web Sites i.e 33%
discount, excess outbound
transfers starting at $0.12/GB

Up to 100 applications
Pricing Example:

= $5
Unlimited ingress

<165MB daily egress / Month

10 x Mobile Services 100MB SQL


on shared instances Database

How?
10 FREE mobile services on shared instance
Includes 165MB/day of FREE egress from API calls
Cost - All services sharing a 100MB DB is $5 USD / Month
Use Pricing Calculator to Estimate your costs
Note: Free Egress is per subscription, not per mobile service
Don’t forget: Member Offers
MSDN Subscribers up to $3700 / year
BizSpark members up to $3700 / year
MPN Members up to $1500 / year
WebsiteSpark up to $1500 / year

Full details here - http://www.windowsazure.com/en-us/pricing/member-offers/


What is Windows Azure Mobile Services?

Server Logic Notifications Logging & Diag

Auth Data Scheduler Scale


Useful Resources
Get a Windows Azure Free Trial Account
http://www.windowsazure.com/

Learn more & try tutorials


Tutorials, Samples, Reference Docs: http://www.windowsazure.com/mobile

Help with Mobile Services


Q&A Forum: Windows Azure Mobile Services Forum
Feature Rqst: Windows Azure Mobile Services UserVoice
Feedback: mobileservices@microsoft.com
Twitter: @cloudnick (Windows 8, Windows Phone 8), @chrisrisner (iOS, Android)

Presentations, demos, hands on labs


Windows Azure Training Kit: Download here
© 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.

You might also like