GWAB Mobile Services

Preview:

DESCRIPTION

Azure Mobile Sites What it is and What's new as a session i had made at the Global Windows Azure Bootcamp 2014 in Microsoft Portugal. The Main propouse of this presentation was to show how mobile services can be a good choice, how to use, and what's the state of the art

Citation preview

What’s new in Windows Azure Mobile ServicesAlexandre MarreirosCTO @ InnovagencyTech Trainer & Speaker as IndependentSW Architect as ConsultantTeacher @ EDIT

Lisboa29 de Março 2014

Alexandre Marreiros

amarreiros@gmail.comamarreiros@innovagency.comDigitalmindignition.com@alexmarreiros

Sports, Personal ImprovementTeaching, Photography

Agendao Mobile Services Overview

o New Things

o Recap

o References

Mobile Services Overview

Intro “Building a robust, modern mobile application often requires a developer to not only focus on the front end user experience, but also backend services such as data storage, user authentication, and often push notification services.“

“Windows Azure Mobile Services provides a scalable and easy-to-use ‘backend-as-a-service’ ”

Backend Mobile Services In the CloudMobility Cloud

Sometimes Computional Limited Computional Limitless

Almost no Storage Conceptual Unlimited Storage

Rapid Growing Scale / Elastic

Conect everywhere Services via internet

Desires a Simple Computational Model Scale and Elastic

Backend Mobile Services In the Cloud

Identity

Structured Storage

Messaging Media

Unstructured Storage Additional Services

Windows Azure Mobile Services

htt

p:/

/aka

.ms/

mobile

serv

ices

Windows Azure Mobile Services Mobile Client Support

IOS, Android, Windows Phone

Auth*Authenticate against Windows Live, Twitter, Facebook, …

Table level permissions for each CRUD operationEveryone

Anyone with the Application Key (NOT A SECURITY TOKEN/CONTROL Hint that user is coming from your app (reduce chance of misuse))

Only Authenticated UsersOnly Scripts and Admins

More granular control with server side scriptsuser.level: {admin, authenticated, anonymous}user.userId: id or undefined if not authenticated

Data StorageLeverage strengths of Windows Azure SQL Database

New or Existing Database

Reporting, TSQL support, existing tools, etc.

Manage your way (portal, REST API, SSMS, etc.)

Partition applications by schema

App1.Users

App2.Users

Dynamic Schema Support (on/off)

Data Storage Lever

Automatic service REST API generated for storage

Ability to author server logic that intercepts CRUD operation pipeline (kind of trigers)

OData Interface

GET, POST, PATCH, DELETE

https://<service>.azure-mobile.net/tables/<table_name>/{<item_id>}

Send JSON in request body

Receive JSON as response

Data Storage Lever

Automatic service REST API generated for storage

Ability to author server logic that intercepts CRUD operation pipeline (kind of trigers)

OData Interface

GET, POST, PATCH, DELETE

https://<service>.azure-mobile.net/tables/<table_name>/{<item_id>}

Send JSON in request body

Receive JSON as response

Notifications1. Request Channel URI

2. Register with your Cloud Service

3. Authenticate & Push Notification

Windows 8

(1)

(2)

(3)

(3)

Notifications

http://www.windowsazure.com/en-us/documentation/articles/mobile-services-android-get-started/

http://www.windowsazure.com/en-us/documentation/articles/mobile-services-ios-get-started/

http://www.windowsazure.com/en-us/documentation/articles/notification-hubs-windows-store-dotnet-get-started

New to Mobile Services

New Things

Build and upgrade Mobile Services on your enviroment Test and run your future Mobile services definitions and code in your machine

Use extra modules You can add extra functions to base Mobile services based on 3rd party market resellers

example:

Use New Relic to have insights about hows services on azure are performing

Costum API Use Mobile Services to create to put in the cloud your one API, based on:

- Controller MindSet - HTTP Methods

Costum API How to call the api:

https://<service_name>.azure-mobile.net/api/<api_name>

Examples of API costumization

Notifications

http://www.windowsazure.com/en-us/documentation/articles/mobile-services-android-get-started/

Source Control conection In preview for now You can directly connect

your mobile services to your GIT repository

Playing with something new

Recap

Windows Azure Mobile Services Client Support

IOS, Android, Windows Phone

Cross

Platfor

m

Windows Azure Mobile Services

htt

p:/

/aka

.ms/

mobile

serv

ices

Key ScenariosModern mobile appsWindows Store Apps, Windows Phone, iOS, Android, PhoneGap, Web

Common ScenariosReduces the friction associated with repeating common tasks such as user authentication, push notifications and structured storage

Rapid DevelopmentTime is money. Get your app up and running sooner when you use Mobile Services to configure a straightforward and secure backend in less than five minutes.

Scale

Mobile Services Capabilities makit unique Precise control for authorizing access to tables.

Supports scripts to inject business logic into data access operations.

Integration with other cloud services.

Supports the ability to scale a mobile service instance.

Service monitoring and logging.

Mobile Services Capabilities make him unique Client libraries support mobile app development on various devices, including Windows 8, Windows Phone 8, iPhone, and iPad.

Simple provisioning and management of tables for storing app data. 

Integration with notification services to deliver push notifications to your app.

Integration with well-known identity providers for authentication.

Questions

References http://aka.ms/mobileservices

http://pluralsight.com/training/Courses/TableOfContents/windows-azure-mobile-services

Windows Azure Mobile Services book, Bruce Johnson

Windows Azure Mobile Services Concepts (http://msdn.microsoft.com/en-us/library/windowsazure/jj591475.aspx )

Mobile Services Team blog http://blogs.msdn.com/b/azuremobile/