View
1.331
Download
1
Category
Tags:
Preview:
DESCRIPTION
Windows Azure Mobile Services at ReBOOT Cloud Camp , Bangalore by Senthil Kumar
Citation preview
REBOOt
Windows Azure Mobile Services
Senthil Kumar
Microsoft MVP – Client Development
MobileOSGeek.com
REBOOt
About Me
• Work at Trivium eSolutions , Bangalore
• Microsoft MVP – Client Development
• Speaker , Blogger , Software Engineer.
• BDOTNETTER( Bangalore .NET User Group )
• Windows Phone enthusiast
Blog : MobileOSGeek.com
Twitter : @isenthil
REBOOt
Agenda
• What is Windows Azure Mobile Services ?
• Cloud + Mobility
• Azure Mobile Services Features
• Scenarios for Windows Azure Mobile Services
• How to Create Windows Azure Mobile Services ?
• Demo
• Q & A
REBOOt
What is Windows Azure Mobile Services ?
Data
Notifications
Auth
Server Logic
Scale
Logging
Diagnostics
REBOOt
Windows Phone
• Mobile OS from Microsoft
• Modern Style UI
• Content than Chrome
• Present SDK Version is Windows Phone SDK 8.0
• C# / VB.NET , XAML , C++
REBOOt
Cloud
• Elastic Scale
• Near-infinite Capacity
• Consumption-based Pricing
• No Long-Term Commitments
• High Reliability
• Global Presence
REBOOt
Mobility + Cloud = Perfect Pair
Mobility Cloud
Limited Compute Limitless Compute
Limited Storage Limitless Storage
Connect from Anywhere Services via the internet
(APIs)
Rapidly Growing Market Scale and Elasticity
REBOOt
Scenarios
• Modern mobile apps• Reduces the friction associated with repeated and common tasks such
as user authentication, push notifications and structured storage.
• Rapid Development• Get your app up and running sooner when you use Mobile Services to
configure a straightforward and secure backend quickly within few minutes.
• Apps requiring structured data • Seamlessly connect to a Windows Azure SQL database for simple data
management and dynamically created tables. Easy to set and manage permissions.
REBOOt
Demo
REBOOt
Windows Azure Mobile Services
Windows Store
iOS
Android
Windows Phone 8
iOS
Android
HTML 5/JSSDKs
Scripts: TableScheduled
Custom API
REST API
User authentication
Facebook Twitter Micros
oft GoogleActive Directo
ry
Store data in the cloud
SQLTable
Storage
Blob Storag
e
Mongo DB
Push notifications
WNS and
MPNS
APNS GCM Notification Hubs
Source control
REBOOt
Structured Storage
• Powered by SQL Database
• Same DB – Multiple Mobile Services
• Data management in• Windows Azure Portal• SQL Portal• SQL Management Studio• REST API
REBOOt
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
• Node.js scripts
• Intercept CRUD requests to tables
• Fully customizable logic flow
REBOOt
Node Modules
request
console
push.*
mssql
statusCodes azure
sendgrid
pusher
twilio
REBOOt
REST API
Action HTTP Verb URL Suffix
Create POST /TodoItem
Read GET /TodoItem?$filter=id%3D42
Update PATCH /TodoItem/id
Delete DELETE /TodoItem/id
Data Operations and their REST Equivalents
Base REST API Endpoint URL
https://Mobileservice.azure-mobile.net/tables/*
REBOOt
Push Notifications
1. Register for push notifications with GCM
2. Send your identifier to Mobile Service
3. Send push from server scripts
4. GCM delivers notification to device
Client
(1 )
(2)
(3)(4)
REBOOt
Authorization & Authentication
• Authentication• Facebook , Twitter , Google , Windows Live
• Table level permissions for each CRUD operation
Everyone
Anyone with the Application Key
Only Authenticated Users
Only Scripts and Admins
• 400 / Unauthorized response if a call doesn’t pass
REBOOt
Authorization
• Server script to match against your table (role-based access, specific user, etc.)
• Match against user.userId
REBOOt
Scheduler
• Execute scripts on a schedule
• Execute scripts on demand
• Frequency and length of execution based off of service level
• Ideal for backend data processing
REBOOt
Custom API
• Non-table based scripts
• Accessible from• Get• Post• Put• Patch• Delete
• Same permissions as tables
REBOOt
Demo
REBOOt
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
REBOOt
Summary
REBOOt
Resources
• Windows Azure Mobile Services
http://aka.ms/mobileservices
• SDK and Samples available on GitHub
https://github.com/WindowsAzure/azure-mobile-services
• Inside Windows Azure Mobile Services
http://channel9.msdn.com/posts/Kirill-Gavrylyuk-and-Josh-Twist-Inside-Windows-Azure-Mobile-Services
• Windows Azure FREE Trial
http://bit.ly/MikeAzureTrial
REBOOt
Q & A
Recommended