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
Transform-Your-Streaming-Platform-with-AI-Driven-Quality-Engineering.pdf
PDF
SaaS reusability assessment using machine learning techniques
PDF
“A New Era of 3D Sensing: Transforming Industries and Creating Opportunities,...
PDF
Early detection and classification of bone marrow changes in lumbar vertebrae...
PDF
Comparative analysis of machine learning models for fake news detection in so...
PDF
giants, standing on the shoulders of - by Daniel Stenberg
PPTX
SGT Report The Beast Plan and Cyberphysical Systems of Control
PDF
Advancing precision in air quality forecasting through machine learning integ...
PDF
Transform-Your-Factory-with-AI-Driven-Quality-Engineering.pdf
PDF
Dell Pro Micro: Speed customer interactions, patient processing, and learning...
PDF
Statistics on Ai - sourced from AIPRM.pdf
PDF
Co-training pseudo-labeling for text classification with support vector machi...
PDF
MENA-ECEONOMIC-CONTEXT-VC MENA-ECEONOMIC
PDF
LMS bot: enhanced learning management systems for improved student learning e...
PDF
CXOs-Are-you-still-doing-manual-DevOps-in-the-age-of-AI.pdf
PDF
Improvisation in detection of pomegranate leaf disease using transfer learni...
PDF
sbt 2.0: go big (Scala Days 2025 edition)
PPTX
future_of_ai_comprehensive_20250822032121.pptx
PDF
4 layer Arch & Reference Arch of IoT.pdf
PPTX
MuleSoft-Compete-Deck for midddleware integrations
Transform-Your-Streaming-Platform-with-AI-Driven-Quality-Engineering.pdf
SaaS reusability assessment using machine learning techniques
“A New Era of 3D Sensing: Transforming Industries and Creating Opportunities,...
Early detection and classification of bone marrow changes in lumbar vertebrae...
Comparative analysis of machine learning models for fake news detection in so...
giants, standing on the shoulders of - by Daniel Stenberg
SGT Report The Beast Plan and Cyberphysical Systems of Control
Advancing precision in air quality forecasting through machine learning integ...
Transform-Your-Factory-with-AI-Driven-Quality-Engineering.pdf
Dell Pro Micro: Speed customer interactions, patient processing, and learning...
Statistics on Ai - sourced from AIPRM.pdf
Co-training pseudo-labeling for text classification with support vector machi...
MENA-ECEONOMIC-CONTEXT-VC MENA-ECEONOMIC
LMS bot: enhanced learning management systems for improved student learning e...
CXOs-Are-you-still-doing-manual-DevOps-in-the-age-of-AI.pdf
Improvisation in detection of pomegranate leaf disease using transfer learni...
sbt 2.0: go big (Scala Days 2025 edition)
future_of_ai_comprehensive_20250822032121.pptx
4 layer Arch & Reference Arch of IoT.pdf
MuleSoft-Compete-Deck for midddleware integrations

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  [email protected] | [email protected] | @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 