11. Structured Storage
Windows Azure SQL Database
Dynamic schema on/off
Apps partitioned by schema
REST API generated per table (very data centric platform)
Access your data through the portal, SQL Management studio or REST API
12. JSON -> SQL data types
JSON value T-SQL type
Numeric values (integer, decimal, floating point) Float(53)
Boolean Bit
DateTime DateTimeOffset(3)
String Nvarchar(max)
15. “Data Centric” Server Logic
Backend runs Node.js on small azure VM’s
“Interceptors” exposed for all CRUD requests to all tables
You only get access to a predefined set of node modules
Third party apps exposed through node modules (sendgrid, twilio, pusher)
request, console, push.*, tables, sql, statusCodes, azure, mssql
16. Unstructured Storage
“Virtual Tables” let you short-circuit the database entirely
E.g. offload to Azure table storage, azure blob storage, service bus queues !
var azure = require('azure');
var accountName = '<storage-account-name>';
var accountKey = '<storage-account-key>';
var host = accountName + '.blob.core.windows.net';
var blobService = azure.createBlobService(accountName, accountKey, host);
19. Push Notifications
The global push object is used to send push notifications.
Success & Error Callbacks are provided
Method
push. apns Apple Push Notification Service iOS apps
push. gcm Google Cloud Messaging Android apps
push. mpns Microsoft Push Notification Service Windows Phone 8 apps
push. wns Windows Notification Services Windows Store apps
24. Authorisation
Table level authorization for CRUD operations
Everyone: any request by anyone is accepted.
Anyone with Application Key: app key distributed w/ the app (default)
Authenticated Users: users authenticated by Live Connect.
Scripts and Admins: registered scripts or requests via the master key
Application Key should not be used in production !
26. Command line tools
Can do “most things” from the command line
Create/ Delete a new mobile service
Create / Delete a table
Register table scripts
list tables/ mobile services
No access to the scheduler from the command line
32. Preview
No availability SLA
General Availability
99.9%
Shared Instance
(multitenant environment)
Small instance is the only
size available; multiple may
be purchased
Free at public preview
launch
Up to 10 applications
Reserved Instance
(private VM)
Small instance is the only
size available; multiple may
be purchased
Charge for Preview will be
at the same reduced rate
as azure websites
Up to 10 applications
38. Resources
Official Videos & Tutorials
http://www.windowsazure.com/en-us/develop/mobile/
Real world Use Cases & black belt tips
http://chrisrisner.com/Common-Scenarios-with-Windows-Azure-Mobile-Services
Mr Azure Mobile Services (Josh Twist)
http://www.thejoyofcode.com/
Cloud Nick ( Nick Harris )
http://www.nickharris.net/
It’s a back end for you mobile apps Giving you storage, authentication oAuth with various social networksServer side business logic with node.js interceptorsPush notifications to different mobile devicesSchedulerOther players include Parse, Kinvey, Buddy, AppceleratorRelatively recent development in cloud computing started circa 2011
All SDKs are open sourced on GitHubREST API for any other device….
Both structured & unstructured storage availableWindows Azure SQL database with a dynamic schema or whatever you fancy!
Cross-origin resource sharing (CORS) is a mechanism that allows a web page to make XMLHttpRequests to another domain.Such "cross-domain" requests would otherwise be forbidden by web browsers, per the same origin security policy. CORS defines a way in which the browser and the server can interact to determine whether or not to allow the cross-origin request.
Some commands to run…azure mobile listazure mobile table list irishazureheads