SlideShare a Scribd company logo
Building a chat app with
Windows Azure Mobile Services
1 march 2014, Timisoara
Flavius Radu Demian
Software developer, Avaelgo

I really like programming, like really love it
I love web and mobile
I won Excite 2 year ago

Please feel free to ask questions any time and don’t be shy because
Knowledge is power 
flaviusdemian91@yahoo.com | flavius.demian@gmail.com | @slowarad
Let’s begin…
But before…
This is for the ladies 

Have a nice spring !
Agenda
Overview
Storage
Custom API
Authentication & Authorisation
Scheduler
Diagnostics & Logging
Scale
Cool Third Party Add-Ons
Event Timeline
Review
A visual representation
Overview
Clients for:
Windows Store
Windows Phone 8
iOS, Android, Javascript
You can add a cloud backend to your app in minutes without the
need for server code
All the SDK’s are open source click me
It’s integrated with GIT
You can use filters on you clients to manipulate easily data click me
Create Service, Download Free App and GIT ( add package) Demo click me
Storage
Windows Azure SQL Database
Dynamic schema on/off
REST API generated per table
Data centric platform
Access your data through :
Portal
Sql Management Studio
Rest API
Storage
JSON to SQL data types conversions

Demo with portal and sql server
Server side logic
It is written in
Node.js :
is a software platform for scalable server-side and
networking applications.
applications are written in JavaScript can be run within
the Node.js runtime on Windows, Mac OS X and Linux with no
changes.
“Data Centric” Server Logic

Backend runs Node js on small azure VM’s
“Interceptors” exposed for all CRUD requests to all tables
You only get access to a predefined set of node modules :
request, console, push.*, tables, statusCodes, azure, mssql
click me
Demo with interceptors and packages
Custom API

You can make your own api very quickly

Let’s see how: click me and after let’s look at the demo
Push notifications
The notification provider server mentains a "persistent IP connection"
with your Device in order to deliver notifications when the app needs to
'say' something to you.
Payload limited, specific to platform
The global push object is used to send push notifications
Success and Error callbacks are provided
Push notifications overview
Windows Phone case study
1) The app requests a channel from the
Notifications Provider

2) The app send the channel uri to
Azure Mobile Services which stores it
3) When a notification is sent Azure
Mobile Services executes something
like this:
push.mpns.send(channelUri….)
4. The notifications goes through the Notifications Provider which forwards it to the device

Demo
Athentication & Authorisation
You can make provide quick auth in your app with

Facebook

Twitter

Google

and Windows Azure Active Directory

Microsoft
Authorisation
Table level authorisation for CRUD operation
Everyone: any request by anyone is accepted
Anyone with Application Key: app key is sent on the request distributed
( default)
Authenticated Users: users authenticated with one of the mentioned identity
providers
Scripts and Admins: registers scripts or requests via the master key
The application key is not secure and should not be used to authenticate
users of your app
Demo
Scheduler
Run jobs on simple or complex recurring schedules
such as:
Send broadcast push notifications
Archiving old or duplicate data records
Processing or resizing stored images

Invoking a Web Service over HTTP/s
Post a message to a Windows Azure Storage Queue
Demo
Diagnostics and Logging
View diagnostics directly in the portal including
API calls, CPU time and Data Out

LoggingConsole.* operations like console.log and
console.error provide an easy means to debug
your server side scripts.
Demo
Scale
Compute - scale between shared and reserved mode,
Increase/decrease your instance count
Storage ability to scale out your mobile service tenant(s) to a
dedicated SQL DB
Ability to scale up your SQL DB from web through business to
150GB
Cool Third Party Add-Ons

Real time communication

Emails

SMS
Event Timeline
Review of Azure Mobile Services
Create a scalable and secure backend for your Windows, Android, and iOS apps
Store data in the cloud
Easily authenticate users
Send push notifications
Consume your favorite services
Monitor, alert, and auto scale
Cheap and FREE in some cases -> click here
Preview: No availability Service Level Agreement
Paid: General Availability: 99.9%
Thanks
Good luck at Excite
I hope you will win and after that hold a presentation like I do
now
Let’s look more at the code, don’t worry the questions will come
inevitably


More Related Content

PPTX
Building a chat app with windows azure mobile
PPTX
Building a chat app with windows azure mobile
PDF
Xamarin microsoft graph
PDF
Azure mobile services
PDF
Xamarin DevOps
PDF
Desktop Developer’s Guide to Mobile with Visual Studio Tools for Xamarin
PDF
Introduction to xamarin
PDF
Native i os, android, and windows development in c# with xamarin 4
Building a chat app with windows azure mobile
Building a chat app with windows azure mobile
Xamarin microsoft graph
Azure mobile services
Xamarin DevOps
Desktop Developer’s Guide to Mobile with Visual Studio Tools for Xamarin
Introduction to xamarin
Native i os, android, and windows development in c# with xamarin 4

What's hot (20)

PPTX
Xamarin overview droidcon.tn
PDF
Intro to Xamarin.Forms for Visual Studio 2017
PPTX
Highlights from the Xamarin Evolve 2016 conference
PDF
Xamarin.Forms
PPTX
Sys02 best way to create a share point app
PDF
Bot Revolution lab at Codemotion Milan 2016
PDF
DEV-007_Building Cloud Connected Xamarin Apps
PDF
Connected Mobile Apps with Microsoft Azure
PDF
Mobile Cross-Platform App Development in C# with Xamarin
PDF
Introduction to Xamarin for Visual Studio 2017
PDF
.NET North UG - What’s new & next for Xamarin developers
PDF
Build Better Games with Unity and Microsoft Azure
PPTX
Deeper into Windows 10 Development
PDF
Building Games for iOS, macOS, and tvOS with Visual Studio and Azure
PPTX
Xamarin cross platform
PDF
Customizing Xamarin.Forms UI
PPTX
Intro to Building Mobile Apps with Xamarin
PPTX
Hitchhicker's Guide to Using Xamarin Forms with RESTful Services
PDF
Smaller Not Taller: Defeating the mobile application architecture giant
PPTX
Build 2017 - B8099 - What's new in Xamarin.Forms
Xamarin overview droidcon.tn
Intro to Xamarin.Forms for Visual Studio 2017
Highlights from the Xamarin Evolve 2016 conference
Xamarin.Forms
Sys02 best way to create a share point app
Bot Revolution lab at Codemotion Milan 2016
DEV-007_Building Cloud Connected Xamarin Apps
Connected Mobile Apps with Microsoft Azure
Mobile Cross-Platform App Development in C# with Xamarin
Introduction to Xamarin for Visual Studio 2017
.NET North UG - What’s new & next for Xamarin developers
Build Better Games with Unity and Microsoft Azure
Deeper into Windows 10 Development
Building Games for iOS, macOS, and tvOS with Visual Studio and Azure
Xamarin cross platform
Customizing Xamarin.Forms UI
Intro to Building Mobile Apps with Xamarin
Hitchhicker's Guide to Using Xamarin Forms with RESTful Services
Smaller Not Taller: Defeating the mobile application architecture giant
Build 2017 - B8099 - What's new in Xamarin.Forms
Ad

Similar to Building a chat app with windows azure mobile services (20)

PPTX
Mobile Services for Windows Azure
PPTX
Azure mobile apps
PPTX
2015.04.23 Azure Mobile Services
PPTX
Windows Azure Mobile Services - The Perfect Partner
PPTX
Get started azure- Azure Mobile Services
PPTX
Cloud Powered Mobile Apps with Azure
PPTX
Cloud Powered Mobile Apps with Azure
PPTX
Cloud Powered Mobile Apps With Azure
PPTX
Антон Бойко (Microsoft Azure MVP, Ukrainian Azure Community Founder) «Azure M...
PPTX
Windows Azure Mobile Services - The Perfect Partner
PPTX
Cnam cours azure zecloud mobile services
PPTX
Cloud Powered Mobile Apps with Azure
PPTX
Azure Mobile Services
PPTX
Azure Mobile Service - Techdays 2014
PPTX
World Azure Day Mobile Services Presentation
PDF
The Hitchhicker’s Guide to Windows Azure Mobile Services | FalafelCON 2014
PPTX
Windows Azure Mobile Services
PPTX
Putting the Cloud in Your Pocket with Azure Mobile Services (.NET)
PPT
Fanug - Pragmatic Windows Phone Developer
PPTX
Azure Mobile Services Workshop
Mobile Services for Windows Azure
Azure mobile apps
2015.04.23 Azure Mobile Services
Windows Azure Mobile Services - The Perfect Partner
Get started azure- Azure Mobile Services
Cloud Powered Mobile Apps with Azure
Cloud Powered Mobile Apps with Azure
Cloud Powered Mobile Apps With Azure
Антон Бойко (Microsoft Azure MVP, Ukrainian Azure Community Founder) «Azure M...
Windows Azure Mobile Services - The Perfect Partner
Cnam cours azure zecloud mobile services
Cloud Powered Mobile Apps with Azure
Azure Mobile Services
Azure Mobile Service - Techdays 2014
World Azure Day Mobile Services Presentation
The Hitchhicker’s Guide to Windows Azure Mobile Services | FalafelCON 2014
Windows Azure Mobile Services
Putting the Cloud in Your Pocket with Azure Mobile Services (.NET)
Fanug - Pragmatic Windows Phone Developer
Azure Mobile Services Workshop
Ad

More from Flavius-Radu Demian (8)

PDF
Mobile growth with Xamarin
PPTX
MVVM frameworks - MvvmCross
PPTX
C# everywhere - Building Cross-Platform Apps with Xamarin and MvvmCross
PPTX
C# everywhere - Building Cross-Platform Apps with Xamarin and MvvmCross
PDF
ALM on the shoulders of Giants - Visual Studio Online
PPTX
Universal apps
PPTX
Security in windows azure
PPTX
Fundaments of Knockout js
Mobile growth with Xamarin
MVVM frameworks - MvvmCross
C# everywhere - Building Cross-Platform Apps with Xamarin and MvvmCross
C# everywhere - Building Cross-Platform Apps with Xamarin and MvvmCross
ALM on the shoulders of Giants - Visual Studio Online
Universal apps
Security in windows azure
Fundaments of Knockout js

Recently uploaded (20)

PDF
Encapsulation_ Review paper, used for researhc scholars
PDF
Review of recent advances in non-invasive hemoglobin estimation
PDF
The Rise and Fall of 3GPP – Time for a Sabbatical?
PDF
Diabetes mellitus diagnosis method based random forest with bat algorithm
PDF
cuic standard and advanced reporting.pdf
PDF
Build a system with the filesystem maintained by OSTree @ COSCUP 2025
PDF
Architecting across the Boundaries of two Complex Domains - Healthcare & Tech...
PPTX
Detection-First SIEM: Rule Types, Dashboards, and Threat-Informed Strategy
PDF
Electronic commerce courselecture one. Pdf
PDF
Optimiser vos workloads AI/ML sur Amazon EC2 et AWS Graviton
PDF
Approach and Philosophy of On baking technology
PPTX
20250228 LYD VKU AI Blended-Learning.pptx
PDF
Network Security Unit 5.pdf for BCA BBA.
PDF
KodekX | Application Modernization Development
PPTX
VMware vSphere Foundation How to Sell Presentation-Ver1.4-2-14-2024.pptx
PDF
Chapter 3 Spatial Domain Image Processing.pdf
PPTX
sap open course for s4hana steps from ECC to s4
PPTX
MYSQL Presentation for SQL database connectivity
PDF
NewMind AI Weekly Chronicles - August'25 Week I
PPT
Teaching material agriculture food technology
Encapsulation_ Review paper, used for researhc scholars
Review of recent advances in non-invasive hemoglobin estimation
The Rise and Fall of 3GPP – Time for a Sabbatical?
Diabetes mellitus diagnosis method based random forest with bat algorithm
cuic standard and advanced reporting.pdf
Build a system with the filesystem maintained by OSTree @ COSCUP 2025
Architecting across the Boundaries of two Complex Domains - Healthcare & Tech...
Detection-First SIEM: Rule Types, Dashboards, and Threat-Informed Strategy
Electronic commerce courselecture one. Pdf
Optimiser vos workloads AI/ML sur Amazon EC2 et AWS Graviton
Approach and Philosophy of On baking technology
20250228 LYD VKU AI Blended-Learning.pptx
Network Security Unit 5.pdf for BCA BBA.
KodekX | Application Modernization Development
VMware vSphere Foundation How to Sell Presentation-Ver1.4-2-14-2024.pptx
Chapter 3 Spatial Domain Image Processing.pdf
sap open course for s4hana steps from ECC to s4
MYSQL Presentation for SQL database connectivity
NewMind AI Weekly Chronicles - August'25 Week I
Teaching material agriculture food technology

Building a chat app with windows azure mobile services

  • 1. Building a chat app with Windows Azure Mobile Services 1 march 2014, Timisoara
  • 2. Flavius Radu Demian Software developer, Avaelgo I really like programming, like really love it I love web and mobile I won Excite 2 year ago Please feel free to ask questions any time and don’t be shy because Knowledge is power  flaviusdemian91@yahoo.com | flavius.demian@gmail.com | @slowarad
  • 3. Let’s begin… But before… This is for the ladies  Have a nice spring !
  • 4. Agenda Overview Storage Custom API Authentication & Authorisation Scheduler Diagnostics & Logging Scale Cool Third Party Add-Ons Event Timeline Review
  • 6. Overview Clients for: Windows Store Windows Phone 8 iOS, Android, Javascript You can add a cloud backend to your app in minutes without the need for server code All the SDK’s are open source click me It’s integrated with GIT You can use filters on you clients to manipulate easily data click me Create Service, Download Free App and GIT ( add package) Demo click me
  • 7. Storage Windows Azure SQL Database Dynamic schema on/off REST API generated per table Data centric platform Access your data through : Portal Sql Management Studio Rest API
  • 8. Storage JSON to SQL data types conversions Demo with portal and sql server
  • 9. Server side logic It is written in Node.js : is a software platform for scalable server-side and networking applications. applications are written in JavaScript can be run within the Node.js runtime on Windows, Mac OS X and Linux with no changes.
  • 10. “Data Centric” Server Logic Backend runs Node js on small azure VM’s “Interceptors” exposed for all CRUD requests to all tables You only get access to a predefined set of node modules : request, console, push.*, tables, statusCodes, azure, mssql click me Demo with interceptors and packages
  • 11. Custom API You can make your own api very quickly Let’s see how: click me and after let’s look at the demo
  • 12. Push notifications The notification provider server mentains a "persistent IP connection" with your Device in order to deliver notifications when the app needs to 'say' something to you. Payload limited, specific to platform The global push object is used to send push notifications Success and Error callbacks are provided
  • 13. Push notifications overview Windows Phone case study 1) The app requests a channel from the Notifications Provider 2) The app send the channel uri to Azure Mobile Services which stores it 3) When a notification is sent Azure Mobile Services executes something like this: push.mpns.send(channelUri….) 4. The notifications goes through the Notifications Provider which forwards it to the device Demo
  • 14. Athentication & Authorisation You can make provide quick auth in your app with Facebook Twitter Google and Windows Azure Active Directory Microsoft
  • 15. Authorisation Table level authorisation for CRUD operation Everyone: any request by anyone is accepted Anyone with Application Key: app key is sent on the request distributed ( default) Authenticated Users: users authenticated with one of the mentioned identity providers Scripts and Admins: registers scripts or requests via the master key The application key is not secure and should not be used to authenticate users of your app Demo
  • 16. Scheduler Run jobs on simple or complex recurring schedules such as: Send broadcast push notifications Archiving old or duplicate data records Processing or resizing stored images Invoking a Web Service over HTTP/s Post a message to a Windows Azure Storage Queue Demo
  • 17. Diagnostics and Logging View diagnostics directly in the portal including API calls, CPU time and Data Out LoggingConsole.* operations like console.log and console.error provide an easy means to debug your server side scripts. Demo
  • 18. Scale Compute - scale between shared and reserved mode, Increase/decrease your instance count Storage ability to scale out your mobile service tenant(s) to a dedicated SQL DB Ability to scale up your SQL DB from web through business to 150GB
  • 19. Cool Third Party Add-Ons Real time communication Emails SMS
  • 21. Review of Azure Mobile Services Create a scalable and secure backend for your Windows, Android, and iOS apps Store data in the cloud Easily authenticate users Send push notifications Consume your favorite services Monitor, alert, and auto scale Cheap and FREE in some cases -> click here Preview: No availability Service Level Agreement Paid: General Availability: 99.9%
  • 22. Thanks Good luck at Excite I hope you will win and after that hold a presentation like I do now Let’s look more at the code, don’t worry the questions will come inevitably 