33
What’s new in Windows Azure Mobile Services Alexandre Marreiros CTO @ Innovagency Tech Trainer & Speaker as Independent SW Architect as Consultant Teacher @ EDIT Lisboa 29 de Março 201

GWAB Mobile Services

Embed Size (px)

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

Page 1: GWAB Mobile Services

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

Lisboa29 de Março 2014

Page 2: GWAB Mobile Services

Alexandre Marreiros

[email protected]@innovagency.comDigitalmindignition.com@alexmarreiros

Sports, Personal ImprovementTeaching, Photography

Page 3: GWAB Mobile Services

Agendao Mobile Services Overview

o New Things

o Recap

o References

Page 4: GWAB Mobile Services

Mobile Services Overview

Page 5: GWAB Mobile Services

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’ ”

Page 6: GWAB Mobile Services

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

Page 7: GWAB Mobile Services

Backend Mobile Services In the Cloud

Identity

Structured Storage

Messaging Media

Unstructured Storage Additional Services

Page 8: GWAB Mobile Services

Windows Azure Mobile Services

htt

p:/

/aka

.ms/

mobile

serv

ices

Page 9: GWAB Mobile Services

Windows Azure Mobile Services Mobile Client Support

IOS, Android, Windows Phone

Page 10: GWAB Mobile Services

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

Page 11: GWAB Mobile Services

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)

Page 12: GWAB Mobile Services

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

Page 13: GWAB Mobile Services

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

Page 14: GWAB Mobile Services

Notifications1. Request Channel URI

2. Register with your Cloud Service

3. Authenticate & Push Notification

Windows 8

(1)

(2)

(3)

(3)

Page 15: GWAB Mobile Services

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

Page 16: GWAB Mobile Services

New to Mobile Services

Page 17: GWAB Mobile Services

New Things

Page 18: GWAB Mobile Services

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

Page 19: GWAB Mobile Services

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

Page 20: GWAB Mobile Services

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

- Controller MindSet - HTTP Methods

Page 21: GWAB Mobile Services

Costum API How to call the api:

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

Examples of API costumization

Page 22: GWAB Mobile Services

Notifications

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

Page 23: GWAB Mobile Services

Source Control conection In preview for now You can directly connect

your mobile services to your GIT repository

Page 24: GWAB Mobile Services

Playing with something new

Page 25: GWAB Mobile Services

Recap

Page 26: GWAB Mobile Services

Windows Azure Mobile Services Client Support

IOS, Android, Windows Phone

Cross

Platfor

m

Page 27: GWAB Mobile Services

Windows Azure Mobile Services

htt

p:/

/aka

.ms/

mobile

serv

ices

Page 28: GWAB Mobile Services

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

Page 29: GWAB Mobile Services

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.

Page 30: GWAB Mobile Services

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.

Page 31: GWAB Mobile Services

Questions

Page 32: GWAB Mobile Services

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/

Page 33: GWAB Mobile Services