36
FATİH DEMİR- 36805

Azure Mobile Services

Embed Size (px)

DESCRIPTION

Presentation

Citation preview

Page 1: Azure Mobile Services

FATİH DEMİR- 36805

Page 2: Azure Mobile Services

Agenda

Definition

What’s the service is for ?

How it works?

Prices

Architecture

Data Storage

Push Notifications

Authentication

Supports

Page 3: Azure Mobile Services

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.

Page 4: Azure Mobile Services

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

Page 5: Azure Mobile Services
Page 6: Azure Mobile Services

Azure Mobile Services

Page 7: Azure Mobile Services

Azure Mobile Services Benefits!

Page 8: Azure Mobile Services

Why Use Azure Mobile Services?

Quick and extreme scalability

Support for every platform

Use the parts you need

Easily build cloud back-ends

Page 9: Azure Mobile Services

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.

Page 10: Azure Mobile Services

What needed for Mobile Application?

Identity

Structured Storage

Messaging Media

Unstructured Storage

Windows Azure Mobile Services

Additional Services

Page 11: Azure Mobile Services

Mobile Platforms

AndroidJava

Eclipse

IntelliJ

Windows

Phone

C#/Visua

l Basic/F#

Visual

Studio

iOS

Objec

tive C

Xcode

Page 12: Azure Mobile Services

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

Page 13: Azure Mobile Services

Client Support

Page 14: Azure Mobile Services

Backend Mobile Services in the Cloud

Page 15: Azure Mobile Services

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

Page 16: Azure Mobile Services

Rest API

Data Operations and their REST Equivalents

https://Mobileservice.azure-mobile.net/tables/*

Page 17: Azure Mobile Services

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

Page 18: Azure Mobile Services

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.

Page 19: Azure Mobile Services

Microsoft Account, Facebook, Twitter, and Google

OAuth

Does not use Windows Azure ACS

Authentication

Page 20: Azure Mobile Services

PUSH Notification

Page 21: Azure Mobile Services

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

Page 22: Azure Mobile Services

How Push Notifications Work ?

Retrieve device handle

Store handle in app back-end Send notification to handle

Device notified (even when app is inactive)

Page 23: Azure Mobile Services

Mobile Push is Everywhere

Page 24: Azure Mobile Services
Page 25: Azure Mobile Services

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

Page 26: Azure Mobile Services

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

Page 27: Azure Mobile Services

API Calls

CPU Time

Data Out

Diagnostics

Page 28: Azure Mobile Services

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

Page 29: Azure Mobile Services

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

Page 30: Azure Mobile Services

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

Page 31: Azure Mobile Services

Pricing Details

Page 32: Azure Mobile Services

Case Studies

Bing (news,finance,sports..) Social 2014

Page 33: Azure Mobile Services

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.

Page 34: Azure Mobile Services

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

Page 35: Azure Mobile Services
Page 36: Azure Mobile Services

THANK YOU