-By Pune Microsoft Azure Developers Meetup
Jul 11, 2015
-By
Pune Microsoft Azure Developers 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
23-09-2014Talentica Software
Agenda
Overview of Azure Mobile Service(ZUMO)
Real time application demo
Windows Azure Mobile Services
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
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
9/23/2014 Talentica Software
Windows Azure Mobile Services
Windows Azure Mobile Services Architecture
9/23/2014 Talentica Software
SDKs
REST API
Node.js
Your Scripts (insert / update / delete / read)
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
Demo Realtime Survey Architecture solution
9/23/2014 Talentica Software
Pusher API
Client Library, JS
API
Data
9/23/2014 Talentica Software
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
9/23/2014 Talentica Software
9/23/2014 Talentica Software
Push Notification Lifecycle Overview
9/23/2014 Talentica Software
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.
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
References http://azure.microsoft.com/en-
us/documentation/services/mobile-services/
bit.ly/tdemo12
http://pusher.com/
9/23/2014 Talentica Software
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
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
9/23/2014 Talentica Software
9/23/2014 Talentica Software
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
9/23/2014 Talentica Software