Top Banner
Windows Azure Mobile Services Vinícius Souza Technical Evangelist Microsoft http://aka.ms/ visouza @vbs_br
25

Windows Azure Mobile Services - TDC 2013

Jun 14, 2015

Download

Documents

Palestra realizada no TDC 2013 de Florianópolis.
Welcome message from author
This document is posted to help you gain knowledge. Please leave a comment to let me know what you think about it! Share it to your friends and learn new things together.
Transcript
Page 1: Windows Azure Mobile Services - TDC 2013

Windows Azure Mobile Services

Vinícius SouzaTechnical EvangelistMicrosoft

http://aka.ms/visouza@vbs_br

Page 2: Windows Azure Mobile Services - TDC 2013

Suporte a múltiplas plataformaSuporte complete para iOS, Android, HTML/JSData, Auth, Push Notifications* (HTML5 não suporta push notification)Open Source SDK

Windows 8 / Windows Phone 8

Page 3: Windows Azure Mobile Services - TDC 2013

Demo Apresentando:Mobile Services

Page 4: Windows Azure Mobile Services - TDC 2013

• Windows Azure Mobile Services• Dados• Push Notifications• Auth (Autorização)• Scheduler (Agenda)• Diagnóstico & Escala

Agenda

Page 5: Windows Azure Mobile Services - TDC 2013

O que é Windows Azure Mobile Services?

Data

Notifications

Auth

Server Logic

Scheduler

Logging & Diag

Scale

Page 6: Windows Azure Mobile Services - TDC 2013

Your Datacenter

Virtualization

O/S

Hardware

Network

Data

Applications

Firewall

Web Sites

Applications

Data

Cloud Services

Applications

Firewall Rules

Data

Virtual Network

Virtual Machines

Virtual Network

Data

Applications

Firewall Rules

O/S

Focus on the Application

Windows Azure

Page 7: Windows Azure Mobile Services - TDC 2013

Iniciando…

Tenha um Backend para aplicativos móveis em minutos

Page 8: Windows Azure Mobile Services - TDC 2013

• Armazenamento estruturado com SQL Database• Se estiver utilizando 1 banco de dados, pode

utilizar schema.• AppX.Todoitem• AppY.Todoitem

• Gerencie dados de entrada• Portal, SQL Portal• SQL Management Studio• REST API• CLI Tools

Armazenamento estruturado

Page 9: Windows Azure Mobile Services - TDC 2013

• Serviço automático de REST, API gerada para armazenamento• Dynamic Schema on/off• Possibilidade de incluir lógica no servidor que

intercepta operações de CRUD.

Server Logic

Page 10: Windows Azure Mobile Services - TDC 2013

• Módulos suportados + Globals• mssql• request• console• push• tables• statusCodes

Server Logic

mssql.query('select top 1 * from statusupdates', { success: function(results) { console.log(results);

} }

);

Page 11: Windows Azure Mobile Services - TDC 2013

Mapeamento de tipos de dadosREST API to SQL type

JSON Value T-SQL Type

Numeric values (integer, decimal, floating point)

Float

Boolean Bit

DateTime DateTimeOffset(3)

String Nvarchar(max)

Page 12: Windows Azure Mobile Services - TDC 2013

Push Notification Overview ciclo de vida 1.

2.

3.

(1)

(2)

(3)

(3)

Page 13: Windows Azure Mobile Services - TDC 2013

Push Notifications

Page 14: Windows Azure Mobile Services - TDC 2013

• Autenticação utilizando multiplos fornecedores• Permissão a nível de Tabela para cada

operação do CRUD• Everyone• Anyone with the Application Key• Only Authenticated Users• Only Scripts and Admins• Maior controle granular com os server side

scripts• user.level: {admin, authenticated, anonymous}• user.userId: id or undefined if not authenticated

Auth – Autenticação

Page 15: Windows Azure Mobile Services - TDC 2013

Adicionando Autenticação

Integrando com o Twitter

Page 16: Windows Azure Mobile Services - TDC 2013

AgendadorExecute os scripts no agendador

por Minutospor Horaspor Diaspor Meses

Execute scripts sob DemandaExamples Limpeza periódica de dados antigos

Processa/redimensione imagens Agende envoi de push notifications para um período do dia

Page 17: Windows Azure Mobile Services - TDC 2013

Agendando uma tarefa

Entrega de push notification

Page 18: Windows Azure Mobile Services - TDC 2013

Diagnóstico, Log e Escala

•Diagnóstico• API calls• CPU Time• Data Out

•Log• console.error(…)• console.log(…)• …

Escala - ComputaçãoEscale pelo número de instânciasEscale pelo tamanho da VM

Escala -ArmazenamentoEscale mobile service para um banco SQL dedicadoEscale o tamanho do SQL DB

Page 19: Windows Azure Mobile Services - TDC 2013

Diagnóstico, Log e Escala

Page 20: Windows Azure Mobile Services - TDC 2013

Preços durante o Previewreserved mode

SLA - service level agreements

PreviewNão possui SLA*

General Availability99.9%

Instância compartilhada

Instância pequena é a única disponível

Gratis - 10 aplicações sem limete de entrada de dados. Limite de saída de dados de 165MB por dia.

Pago - SQL Database

Instância de VM privada

Tamanho de insância pequeno é o único tamanho disponível.

Gratis – Sem limite de entrada de dados. 165MB de saída de dados por dia, excesso será cobrado.

Pago - SQL DB, assim como no Websites possui 33% de desconto, excesso na saída de dados inicia em $0.12/GB

Até 100 aplicações

shared mode

Page 21: Windows Azure Mobile Services - TDC 2013

Exempo de preço:

10 x Mobile Services Em instância

compartilhadas

100MB SQLDatabase

Unlimited ingress

<165MB diários

Como?10 Serviços gratuitos em instâncias compartilhadaInclui 165MB/dia de transferência de saída gratuita API calls Custo – Todos os serviços compartilhando 1 banco de dados de 100MB custa $5 USD / MêsUtilize a Calculadora de preços para estimar seus custos

=

Nota: Egresso gratuito é por subscrissão, não por serviço.

Page 22: Windows Azure Mobile Services - TDC 2013

Não esqueça: Ofertas para membrosMSDN Subscribers até $3700 / ano

BizSpark members até $3700 / anoMPN Members até $1500 / anoWebsiteSpark até $1500 / ano

Mais detalhes - http://www.windowsazure.com/en-us/pricing/member-offers/

Page 23: Windows Azure Mobile Services - TDC 2013

Resumo

Data

Notifications

Auth

Server Logic

Scale

Logging

Diagnostics

Page 25: Windows Azure Mobile Services - TDC 2013

© 2013 Microsoft Corporation. All rights reserved. Microsoft, Windows, Windows Vista and other product names are or may be registered trademarks and/or trademarks in the U.S. and/or other countries.The information herein is for informational purposes only and represents the current view of Microsoft Corporation as of the date of this presentation. Because Microsoft must respond to changing market conditions, it should not be interpreted to be a commitment on the part of Microsoft, and Microsoft cannot guarantee the accuracy of any information provided after the date of this presentation. MICROSOFT MAKES NO WARRANTIES, EXPRESS, IMPLIED OR STATUTORY, AS TO THE INFORMATION IN THIS PRESENTATION.