SlideShare a Scribd company logo
Building Connected Apps with
Mobile Services
Mike Benkovich - @mbenko
mike@benko.com
Session Objectives and Takeaways
What is Mobile Services?
What are the components?
Where to get the tools
How to get started
Why Mobile Services?
• Apps are everywhere
• Where’s the Data
• Who’s using it
• Minimize custom code
• Speed to market
Where does it run?
• Web
• Windows
• Android
• iOS
• Windows Phone
• etc…
Data
Svc
Data
Identity
Connected Patterns
• Create a Data Store
• Add services
• Host it somewhere
• Make it work
Data
Svc
Data
Identity
Codemotion Berlin-Mobile Services
Scenarios
• Modern Mobile Applications
Windows Store, Windows Phone, iOS, Android, HTML
• Common Scenarios
Reduce the friction and work required by providing solutions to
patterns to work with authentication, push notification,
structured storage and more
• Rapid Development
Provision and deploy solutions in minutes rather than days or
weeks
What is Mobile Services?
To get started…
• Windows Azure subscription
• Database for storing information
– SQL Azure for rapid provisioning and
deployment
– Dynamic Schema
• Service configuration and scaling
– Scripting on data
– Identity and notifications
• SDK to enable identity and notifications
Codemotion Berlin-Mobile Services
Code to instantiate Mobile Services
• In Application object add code to create
an instance of your Mobile Service
• Call methods to operate on the
service…i.e.
public static MobileServiceClient MobileService = new MobileServiceClient(
"https://demoapp123.azure-mobile.net/",
"OxxAAAAbbbCCCCCddEEEfffGGGh12345"
);
private void ButtonSave_Click(object sender, RoutedEventArgs e)
{
var todoItem = new TodoItem { Text = TodoInput.Text };
InsertTodoItem(todoItem);
}
Storage
• SQL Database partitioned by schema
– Appx.ToDoItem
– Appy.ToDoItem
• Manage data by standard SQL tools
– SQL Management Studio
– Portal
– REST API
– CLI Tools
Work with SQL
• Tables created in portal
• Dynamic SQL Enabled
• Create poco classes and persist as
tables
Codemotion Berlin-Mobile Services
Identity
• Use existing identity providers like Oauth
– Microsoft, Twitter, Facebook, Google, etc.
• Authorize to work with data
• Table options
– Everyone
– With application key
– Authenticated users
– Admins
Add code to trigger
authentication
private MobileServiceUser user;
private async System.Threading.Tasks.Task Authenticate()
{
while (user == null)
{
string message;
try
{
user = await App.MobileService
.LoginAsync(MobileServiceAuthenticationProvider.Facebook);
message =
string.Format("You are now logged in - {0}", user.UserId);
}
catch (InvalidOperationException)
{
message = "You must log in. Login Required";
}
MessageBox.Show(message);
}
}
Codemotion Berlin-Mobile Services
Server logic
• Scheduled jobs
• Notification services
• Diagnostics, logging and scale
Diagnostics, Logging and
Scale
• Diagnostics
– API calls
– CPU Time
– Data Out
• Logging
– console.error(…)
– console.log(…)
– …
Scale - Compute
Scale out instance count
Scale up VM size
Scale - Storage
Scale out mobile service tenant to
dedicated SQL DB
Scale up SQL DB
Pricing during Preview
reserved mode
service level
agreements
Preview
No availability SLA*
General Availability
99.9%
Private VM - Small instance
is the only size available
Free - unlimited inbound
data. 165MB outbound
data/day, excess charged.
Pay - SQL Database,
Compute same reduced rate
as Web Sites i.e 33%
discount, excess outbound
transfers starting at
$0.12/GB
Up to 100 applications
shared mode
Summary
• Learn and understand the patterns for
connected applications
• Use available tools and technologies to
make it simpler
• Try Azure Mobile Services today for FREE!
http://aka.ms/AzureTrialMB
• More info on my site
http://www.Benkotips.com

More Related Content

PPTX
WSO2Con USA 2017: Building a Secure Enterprise
PDF
WSO2Con USA 2017: Identity and Access Management in the Era of Digital Transf...
PDF
SharePoint Saturday The Conference DC - How the bcs saved my marriage
PPTX
SharePoint, ADFS and Claims Auth
PPTX
Building a document e-signing workflow with Azure Durable Functions
PPTX
Антон Бойко (Microsoft Azure MVP, Ukrainian Azure Community Founder) «Azure M...
ODP
Apache Syncope and Tirasa
PPTX
Azure Saturday: External Collaboration With Azure AD B2B
WSO2Con USA 2017: Building a Secure Enterprise
WSO2Con USA 2017: Identity and Access Management in the Era of Digital Transf...
SharePoint Saturday The Conference DC - How the bcs saved my marriage
SharePoint, ADFS and Claims Auth
Building a document e-signing workflow with Azure Durable Functions
Антон Бойко (Microsoft Azure MVP, Ukrainian Azure Community Founder) «Azure M...
Apache Syncope and Tirasa
Azure Saturday: External Collaboration With Azure AD B2B

What's hot (20)

PDF
SharePoint Saturday The Conference DC - How the client object model saved the...
PPTX
Dear Azure: External collaboration with Azure AD B2B
PPTX
DevSum: Azure AD B2C Application security made easy
PPTX
A Developer's Introduction to Azure Active Directory B2C
PDF
Integrating SharePoint 2010, 2013 and Visual Studio Lightswitch by Rob Windso...
PPTX
Web API 2 Token Based Authentication
PPTX
Introduction to Web Security
PPTX
Extending Authentication and Authorization
PPTX
ESPC15 - Extending Authentication and Authorization
PPTX
External collaboration with Azure B2B
PPTX
What is j query
PPTX
MSDN Sessions 032817 - Azure Functions
PPTX
Oracle ِApplication Development Framework (ADF)
PPTX
Office 365 busting the myths
PPTX
OAuth in SharePoint 2013
PPTX
O365 & SP Connect 2018: Innovate - Connecting bleeding edge technologies
PDF
SharePoint Saturday The Conference DC - Are you who you say you are share poi...
PPTX
MongoDB.local Sydney: Evolving your Data Access with MongoDB Stitch
PPTX
Understanding SharePoint Apps, authentication and authorization infrastructur...
PPTX
IBM Social Business Toolkit
SharePoint Saturday The Conference DC - How the client object model saved the...
Dear Azure: External collaboration with Azure AD B2B
DevSum: Azure AD B2C Application security made easy
A Developer's Introduction to Azure Active Directory B2C
Integrating SharePoint 2010, 2013 and Visual Studio Lightswitch by Rob Windso...
Web API 2 Token Based Authentication
Introduction to Web Security
Extending Authentication and Authorization
ESPC15 - Extending Authentication and Authorization
External collaboration with Azure B2B
What is j query
MSDN Sessions 032817 - Azure Functions
Oracle ِApplication Development Framework (ADF)
Office 365 busting the myths
OAuth in SharePoint 2013
O365 & SP Connect 2018: Innovate - Connecting bleeding edge technologies
SharePoint Saturday The Conference DC - Are you who you say you are share poi...
MongoDB.local Sydney: Evolving your Data Access with MongoDB Stitch
Understanding SharePoint Apps, authentication and authorization infrastructur...
IBM Social Business Toolkit
Ad

Similar to Codemotion Berlin-Mobile Services (20)

PPTX
Azure Mobile Services
PPTX
2015.04.23 Azure Mobile Services
PPTX
World Azure Day Mobile Services Presentation
PDF
DACHNUG50 CNX6 Your_HCL_Digital_Office_in_the_browser.pdf
PPTX
Windows Azure - Mobile Services
PPTX
Building a chat app with windows azure mobile
PPTX
Mobile services on windows azure (part2)
PPTX
Azure integration services from the IT Professional perspective
PPTX
Cloud Powered Mobile Apps With Azure
PPTX
Cloud Powered Mobile Apps with Azure
PPTX
Mobilizing Microsoft SharePoint Server: An MBaaS PErspective
PPTX
Tokyo azure meetup #8 - Azure Update, August
PPTX
Tokyo azure meetup #8 azure update, august
PPTX
Mobile application development
PPTX
Cloud Powered Mobile Apps with Azure
PPTX
Security on AWS, 2021 Edition Meetup
PPTX
Security on AWS, 2021 Edition Meetup
PPTX
Cnam cours azure zecloud mobile services
PPT
Single sign on and its significance .ppt
PPTX
Microservices in Azure
Azure Mobile Services
2015.04.23 Azure Mobile Services
World Azure Day Mobile Services Presentation
DACHNUG50 CNX6 Your_HCL_Digital_Office_in_the_browser.pdf
Windows Azure - Mobile Services
Building a chat app with windows azure mobile
Mobile services on windows azure (part2)
Azure integration services from the IT Professional perspective
Cloud Powered Mobile Apps With Azure
Cloud Powered Mobile Apps with Azure
Mobilizing Microsoft SharePoint Server: An MBaaS PErspective
Tokyo azure meetup #8 - Azure Update, August
Tokyo azure meetup #8 azure update, august
Mobile application development
Cloud Powered Mobile Apps with Azure
Security on AWS, 2021 Edition Meetup
Security on AWS, 2021 Edition Meetup
Cnam cours azure zecloud mobile services
Single sign on and its significance .ppt
Microservices in Azure
Ad

Recently uploaded (20)

PDF
Encapsulation theory and applications.pdf
PDF
Per capita expenditure prediction using model stacking based on satellite ima...
PPTX
sap open course for s4hana steps from ECC to s4
PPTX
VMware vSphere Foundation How to Sell Presentation-Ver1.4-2-14-2024.pptx
PPTX
ACSFv1EN-58255 AWS Academy Cloud Security Foundations.pptx
PDF
Network Security Unit 5.pdf for BCA BBA.
PDF
Electronic commerce courselecture one. Pdf
PDF
gpt5_lecture_notes_comprehensive_20250812015547.pdf
PDF
Chapter 3 Spatial Domain Image Processing.pdf
PDF
Peak of Data & AI Encore- AI for Metadata and Smarter Workflows
PDF
Agricultural_Statistics_at_a_Glance_2022_0.pdf
PDF
Approach and Philosophy of On baking technology
PDF
cuic standard and advanced reporting.pdf
PDF
Empathic Computing: Creating Shared Understanding
PDF
A comparative analysis of optical character recognition models for extracting...
PDF
Unlocking AI with Model Context Protocol (MCP)
PDF
Machine learning based COVID-19 study performance prediction
PDF
Encapsulation_ Review paper, used for researhc scholars
PPT
“AI and Expert System Decision Support & Business Intelligence Systems”
PPTX
MYSQL Presentation for SQL database connectivity
Encapsulation theory and applications.pdf
Per capita expenditure prediction using model stacking based on satellite ima...
sap open course for s4hana steps from ECC to s4
VMware vSphere Foundation How to Sell Presentation-Ver1.4-2-14-2024.pptx
ACSFv1EN-58255 AWS Academy Cloud Security Foundations.pptx
Network Security Unit 5.pdf for BCA BBA.
Electronic commerce courselecture one. Pdf
gpt5_lecture_notes_comprehensive_20250812015547.pdf
Chapter 3 Spatial Domain Image Processing.pdf
Peak of Data & AI Encore- AI for Metadata and Smarter Workflows
Agricultural_Statistics_at_a_Glance_2022_0.pdf
Approach and Philosophy of On baking technology
cuic standard and advanced reporting.pdf
Empathic Computing: Creating Shared Understanding
A comparative analysis of optical character recognition models for extracting...
Unlocking AI with Model Context Protocol (MCP)
Machine learning based COVID-19 study performance prediction
Encapsulation_ Review paper, used for researhc scholars
“AI and Expert System Decision Support & Business Intelligence Systems”
MYSQL Presentation for SQL database connectivity

Codemotion Berlin-Mobile Services

  • 1. Building Connected Apps with Mobile Services Mike Benkovich - @mbenko mike@benko.com
  • 2. Session Objectives and Takeaways What is Mobile Services? What are the components? Where to get the tools How to get started
  • 3. Why Mobile Services? • Apps are everywhere • Where’s the Data • Who’s using it • Minimize custom code • Speed to market
  • 4. Where does it run? • Web • Windows • Android • iOS • Windows Phone • etc… Data Svc Data Identity
  • 5. Connected Patterns • Create a Data Store • Add services • Host it somewhere • Make it work Data Svc Data Identity
  • 7. Scenarios • Modern Mobile Applications Windows Store, Windows Phone, iOS, Android, HTML • Common Scenarios Reduce the friction and work required by providing solutions to patterns to work with authentication, push notification, structured storage and more • Rapid Development Provision and deploy solutions in minutes rather than days or weeks
  • 8. What is Mobile Services?
  • 9. To get started… • Windows Azure subscription • Database for storing information – SQL Azure for rapid provisioning and deployment – Dynamic Schema • Service configuration and scaling – Scripting on data – Identity and notifications • SDK to enable identity and notifications
  • 11. Code to instantiate Mobile Services • In Application object add code to create an instance of your Mobile Service • Call methods to operate on the service…i.e. public static MobileServiceClient MobileService = new MobileServiceClient( "https://demoapp123.azure-mobile.net/", "OxxAAAAbbbCCCCCddEEEfffGGGh12345" ); private void ButtonSave_Click(object sender, RoutedEventArgs e) { var todoItem = new TodoItem { Text = TodoInput.Text }; InsertTodoItem(todoItem); }
  • 12. Storage • SQL Database partitioned by schema – Appx.ToDoItem – Appy.ToDoItem • Manage data by standard SQL tools – SQL Management Studio – Portal – REST API – CLI Tools
  • 13. Work with SQL • Tables created in portal • Dynamic SQL Enabled • Create poco classes and persist as tables
  • 15. Identity • Use existing identity providers like Oauth – Microsoft, Twitter, Facebook, Google, etc. • Authorize to work with data • Table options – Everyone – With application key – Authenticated users – Admins
  • 16. Add code to trigger authentication private MobileServiceUser user; private async System.Threading.Tasks.Task Authenticate() { while (user == null) { string message; try { user = await App.MobileService .LoginAsync(MobileServiceAuthenticationProvider.Facebook); message = string.Format("You are now logged in - {0}", user.UserId); } catch (InvalidOperationException) { message = "You must log in. Login Required"; } MessageBox.Show(message); } }
  • 18. Server logic • Scheduled jobs • Notification services • Diagnostics, logging and scale
  • 19. Diagnostics, Logging and Scale • Diagnostics – API calls – CPU Time – Data Out • Logging – console.error(…) – console.log(…) – … Scale - Compute Scale out instance count Scale up VM size Scale - Storage Scale out mobile service tenant to dedicated SQL DB Scale up SQL DB
  • 20. Pricing during Preview reserved mode service level agreements Preview No availability SLA* General Availability 99.9% Private VM - Small instance is the only size available Free - unlimited inbound data. 165MB outbound data/day, excess charged. Pay - SQL Database, Compute same reduced rate as Web Sites i.e 33% discount, excess outbound transfers starting at $0.12/GB Up to 100 applications shared mode
  • 21. Summary • Learn and understand the patterns for connected applications • Use available tools and technologies to make it simpler • Try Azure Mobile Services today for FREE! http://aka.ms/AzureTrialMB • More info on my site http://www.Benkotips.com

Editor's Notes

  • #20: Slide Objectives:Detail what Mobile Services provides as far as Diagnostics, Logging and Scale is concernedSpeaking Points: Note when moving a Mobile Service from a multi-tenant DB to its own. Currently data is not automatically migrated.
  • #21: Notes:More Details here - http://www.windowsazure.com/en-us/pricing/details/#header-0 SLAWhile Mobile Services is in preview, it can be used with apps in production, if customers ask for SLA and support, both can be provided by the product team upon request as part of the early adopters program, contact zumosla@microsoft.com for details.