Pune microsoft azure developers 2nd meetup

24
-By Pune Microsoft Azure Developers Meetup

Transcript of Pune microsoft azure developers 2nd meetup

Page 1: Pune microsoft azure developers 2nd meetup

-By

Pune Microsoft Azure Developers Meetup

Page 2: Pune microsoft azure developers 2nd meetup

Mobile Service

Demo – Real time Survey

Demo – Bus Tracking System

Demo – (IoT)Home Automation

Break

Azure Service Bus

Topics And Subscriptions

Demo – Disaster Alert System

Q & A

9/23/2014 Talentica Software

Page 3: Pune microsoft azure developers 2nd meetup

23-09-2014Talentica Software

Page 4: Pune microsoft azure developers 2nd meetup

Agenda

Overview of Azure Mobile Service(ZUMO)

Real time application demo

Windows Azure Mobile Services

Page 5: Pune microsoft azure developers 2nd meetup

Windows Azure Mobile Services

9/23/2014 Talentica Software

Framework: create backend services

NET backend: This kind of mobile service is implemented as a ASP.NET Web API project. Backend code is implemented as WebAPIcontrollers.

JavaScript backend: This kind of mobile service is implemented as a node.js service. Backend code is written as JavaScript

Target group: mobile appsCreate Windows Store, WP, iOS, Android and HTML/JS apps super-fastNeed one common backend to store and exchange data

How you need to think about it?Need backend services for your apps…and your apps onlyNot a replacement for Websites or cloud services which offer higher level of control

Page 6: Pune microsoft azure developers 2nd meetup

Shared Backed

Easy Third Party Authentication

Push Notifications

All in all using ZUMO reduces time in setting (or hosting in case of non cloud setup) in these crucial service , and there are always the advantages of hosted environment of Azure .

9/23/2014 Talentica Software

Windows Azure Mobile Services

Page 7: Pune microsoft azure developers 2nd meetup

9/23/2014 Talentica Software

Windows Azure Mobile Services

Page 8: Pune microsoft azure developers 2nd meetup

Windows Azure Mobile Services Architecture

9/23/2014 Talentica Software

SDKs

REST API

Node.js

Your Scripts (insert / update / delete / read)

Page 9: Pune microsoft azure developers 2nd meetup

Windows Azure Mobile Services

Demo Realtime Survey

With cloud infrastructure.

Can reuse framework in various Mobile Apps(like android , iOS, windows phone or Store App, or simple JS based APP)

Realtime update, push notification across devices ( if we have mobile Apps built).

Easily integrate with social sign on (like Facebook, Twitter etc..) or active directory.

9/23/2014 Talentica Software

Page 10: Pune microsoft azure developers 2nd meetup

Demo Realtime Survey Architecture solution

9/23/2014 Talentica Software

Pusher API

Client Library, JS

API

Page 11: Pune microsoft azure developers 2nd meetup

Data

9/23/2014 Talentica Software

Page 12: Pune microsoft azure developers 2nd meetup

OAuth Identity Authentication

9/23/2014 Talentica Software

• Register your app with an identity provider

• Restrict permissions to authenticated users

• Add authentication to the app

Page 13: Pune microsoft azure developers 2nd meetup

9/23/2014 Talentica Software

Page 14: Pune microsoft azure developers 2nd meetup

9/23/2014 Talentica Software

Page 15: Pune microsoft azure developers 2nd meetup

Push Notification Lifecycle Overview

9/23/2014 Talentica Software

Page 16: Pune microsoft azure developers 2nd meetup

REST API

9/23/2014 Talentica Software

Operation Verb Description

Login POSThttps://<service-name>.azure-mobile.net/login?mode=authenticationToken

Gets the user ID for a supplied authentication token.

Query records

GEThttps://<service_name>.azure-mobile.net/tables/<table_name>

Queries data in a table.

Insert recordPOST https://<service_name>.azure-

mobile.net/tables/<table_name>Inserts a new record into a table.

Update record

PATCH https://<service_name>.azure-mobile.net/tables/<table_name>/<item_id>

Updates an existing record in a table.

Delete recordDELETE

https://<service_name>.azure-mobile.net/tables/<table_name>/<item_id> Deletes an existing record from a table.

Page 17: Pune microsoft azure developers 2nd meetup

Server Side Scripts

9/23/2014 Talentica Software

apns Provide functionality to send notifications to Apple Push Notification Service (APNS)

console Write information to Services logs

gcm Provide functionality to send notifications to Google Cloud Messaging (GCM)

mpns Provide functionality to send notifications to Microsoft Push Notification Service (MPNS)

mssql Provides functionality for working directly with tables in the SQL Database using Transact-SQL

push Provides access to objects that are used for sending push notifications to apps

Query Provides functionality for querying Windows Azure Mobile Services

Request Used to execute the requested operation and determine the response to the client

statusCodes Enumerates the supported HTTP status codes can be returned by Windows Azure Mobile Services

Table Provides functionality for working with specific tables (insert, del, update, where, take, select, etc.)

tables Provides functionality for working with specific tables as a Table object instance

User Represents the current requesting user.

wns Provide functionality to send notifications to Windows Notification Service (WNS)

azure Provides functionality to access Azure services (Blobs, Tables, Service Bus)

request Sends HTTP requests to external web services, such as Twitter and Facebook.

sendgrid Used to send email by using the Sendgrid email service.

util Provides useful methods like format, isDate, isArray, isError

xml2js XML to JavaScript object converter

xmlbuilder Can be used to create XML documents

sax A very simple tool to parse through an XML string

Page 18: Pune microsoft azure developers 2nd meetup

References http://azure.microsoft.com/en-

us/documentation/services/mobile-services/

bit.ly/tdemo12

http://pusher.com/

9/23/2014 Talentica Software

Page 19: Pune microsoft azure developers 2nd meetup

Demo Real-time bus tracking

9/23/2014 Talentica Software

Simulator sends data to Azure Mobile service.

Service will trigger pusher event on data insert

Pusher will send notification to all the subscribed clients

Page 20: Pune microsoft azure developers 2nd meetup

Demo – (IoT)Home Automation

9/23/2014 Talentica Software

Device sends data to Azure Mobile service.

Service will trigger pusher event on data insert

Pusher will send notification to all the subscribed clients

Fan on event

Fan on event

Fan on event

Page 21: Pune microsoft azure developers 2nd meetup

9/23/2014 Talentica Software

Page 22: Pune microsoft azure developers 2nd meetup

9/23/2014 Talentica Software

Page 23: Pune microsoft azure developers 2nd meetup

1. Demystifying Azure seven code samples discussion/comparison between

traditional way of coding vs cloud coding for each code samples.

2. Cost comparison for cloud services 10 Cross cutting concerns when it comes to calculate cost in

cloud. How to calculate the cost for code , infrastructure , execution . Sample for Azure Sample for AWS different calculators to be used.

Talentica Software

Page 24: Pune microsoft azure developers 2nd meetup

9/23/2014 Talentica Software