Upload
fatih-demir
View
192
Download
0
Embed Size (px)
DESCRIPTION
Presentation
Citation preview
FATİH DEMİR- 36805
Agenda
Definition
What’s the service is for ?
How it works?
Prices
Architecture
Data Storage
Push Notifications
Authentication
Supports
Windows Azure Mobile Services
Azure Mobile Services is a Azure service
offering designed to make it easy to
create highly-functional mobile apps
using Azure. Mobile Services brings
together a set of Azure services that
enable backend capabilities for your
app. Integration with Microsoft Visual
Studio 2013 makes it easy to connect to
Mobile Services without having to log
into the Azure Management Portal.
Use single sign-on with Active Directory, Facebook, Twitter, and Google
Push notifications to individual users and dynamic audience segments
Store data in SQL, Table Storage, and MongoDB
Access on-premises systems, Office 365, and SharePoint
Use cloud-based sync to build apps that work offline
Azure Mobile Services
Azure Mobile Services Benefits!
Why Use Azure Mobile Services?
Quick and extreme scalability
Support for every platform
Use the parts you need
Easily build cloud back-ends
Azure Mobile Services Strategies
Provie a backend to an app running on any
device.
Store your data in the cloud or offline.
Authenticate users using
Facebook,Twitter,Microsoft Account, or Active
Directory.
Built-in support for cross-platform push
notifications.
What needed for Mobile Application?
Identity
Structured Storage
Messaging Media
Unstructured Storage
Windows Azure Mobile Services
Additional Services
Mobile Platforms
AndroidJava
Eclipse
IntelliJ
Windows
Phone
C#/Visua
l Basic/F#
Visual
Studio
iOS
Objec
tive C
Xcode
Supported Platforms and Features
Platforms
IOS
Android
Windows Phone
Windows 8
HTML/JavaScript
PhoneGap
Xamarin
Features Data and queries
Push Notifications
Authendication
Server-side scripts
Custom API
Offline sync
Mass push
Git integration
Client Support
Backend Mobile Services in the Cloud
Data Storage
New or Existing Database
Reporting, TSQL support, existing tools, etc.
Manage your way (portal, REST API, SSMS, etc.)
In Windows Azure Mobile Services, data is stored in tables, which are maintained
in the Windows Azure SQL Database that is associated with your mobile service.
Data Access
REST API
OData Interface
GET, POST, PATCH, DELETE
Data Storage and Access
DB
Rest API
Data Operations and their REST Equivalents
https://Mobileservice.azure-mobile.net/tables/*
Application Key
NOT A SECURITY TOKEN/CONTROL
Hint that user is coming from your app (reduce chance of misuse)
Private until you publish the app
Master Key
All powerful
Do NOT distribute with your application
Use from server-side logic you control
Security
Authentication
Mobile Services integrates with the following identity providers to make it easy to authenticate users from your app:
Microsoft Account
Facebook login
Twitter login
Google login
To enable authentication, you must first register your app with one or more of these identity providers and then configure your mobile service.
You must also add authentication code to your app.
Microsoft Account, Facebook, Twitter, and Google
OAuth
Does not use Windows Azure ACS
Authentication
PUSH Notification
Mobile Services can send push notifications to your apps.
The way that you configure and send push notifications depends on your app.
You can send push notifications to the following applications:
Windows Store app by using the Windows Push Notification Service (WNS). You can send push
notifications to your app, you must configure your mobile service to work with WNS.
iPhone and iPad apps by using the Apple Push Notification Service (APNS). You can send
push notifications to your app, you must configure your mobile service to work with APNS. Do
this by generating a special push notification certificate at the iOS Provisioning Portal
Android: You can send push notifications to Android apps by using the Google Cloud
Messaging (GCM) service. You can send push notifications to your app, you must configure
your mobile service to work with GCM.
Windows Phone 8 app by using the Microsoft Push Notification Service (MPNS). Mobile
Services does not require you to register your Windows Phone 8 app to send push
notifications.
PUSH Notification
How Push Notifications Work ?
Retrieve device handle
Store handle in app back-end Send notification to handle
Device notified (even when app is inactive)
Mobile Push is Everywhere
ArchitectureZumo
Resource
Provider
Zumo
Mgmt DB Site 1
Zumo
Runtime
SQL 1
Scheduler
RD
FE
Site 2 Site N
Azure
SDK
3rd
party SDKS
SQL 2 SQL N
Azu
re L
B\A
RR
App
ScriptsWin8
Device
iPhone
Po
rtal
Execute scripts on a Schedule (by minutes / hours /days /month)
Execute scripts on demand
İdeal for backend data processing
Removing dublicate records from a table
Backing up a database
Send a report via email.
When your mobile service runs in free mode, you can create only
one scheduled job at a time; in reserved mode, you can create
up to ten scheduled jobs at the same time.
Scheduler
API Calls
CPU Time
Data Out
Diagnostics
console object
log(formatString, obj, .. .)
info(…)
warn(…)
error(…)
Mobile Services;
Writes system and script errors to the log.
Your registered server scripts can also write information directly to the log by using the console object.
Logging
Compute
Scale out number of instances
Scale up the VM size
Storage
Dedicated SQL Database
Larger sized SQL Database
On the Scale table, you can scale your mobile service by switching to
reserved mode and adding role instances.
You can also scale the Windows Azure SQL Database instance used by the
service.
Scale
Free Offer at Preview
Running on shared instances
10 Mobile
Services
1GB SQL
Database
No SLA during Preview. Only small instances available. Can upgrade to a reserved instance at 33% discount from normal Pay-As-You-Go rates during Preview.
Fro
m W
A F
ree
Trial
Pricing Details
Case Studies
Bing (news,finance,sports..) Social 2014
Brief Summary
Easy to study,even for free
Multiple Services,one database possible
Killer features, all out of the box
SDK for IOS,Android,Windows 8, Windows phone 8
Full REST supported(e.g.Windows Phone 7)
TİPS:Version the server side scripts separatelyUse logging wiselyIntegrate with Service Bus, Storage, Queues.
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
Resources
THANK YOU