View
502
Download
1
Category
Preview:
DESCRIPTION
Discover the .NET Back-end capabilities of Azure Mobile Services and understand how you can leverage the Data capabilities.
Citation preview
//publish/
Let’s Geek Out!
Backend-as-a-ServiceAzure Mobile Services
Who am I?{
“name” : “Sandeep Joshi,“company” : “almpeople”,“userType” : “enthusiastic”“technologies” : [ “.NET”, “Azure”, “Web”, “Mobile”, “Cloud” ],“w8experience” : [ “1 LoB App”, “1 Mobile App”],“blog” : “www.almpeople.com”,“email” : ”sandeep@almpeople.com”,“socialMedia” :
{“twitter” : “@sandeepmvp”}
}
Agenda• MBaaS Introduction
• Lap around .NET backend
• Data access and offline support
• Q&A
MBaaS IntroductionAccording to Forrester, MBaaS (Mobile Back end as a service) offerings typically include:
1. Cloud-based storage for mobile data
2. Ability to automatic generate REST-based interfaces to read and write data
3. Internet optimized data access
4. User/security management tools
5. Usage analytics
security of data in the backend and on the apps
solve hard backend problems for developers Scale across clouds
managing users across identity spaces
flexibility to run custom business logic for your apps anywhere
Not just data backend BUT full-feature backend solution
Azure Mobile Services Features
DataBased on WebAPI
Various data stores supported:
• Azure Databases
• SQL Server on premise/IaaS
• Table Storage
• Mongo DB
Flexible data mapping via auto-mapper
AuthServer flows supported:
• Microsoft Account
Client flows supported:
• Azure Active Directory
PushUses Notification Hubs integration for high-scale cross-platform push
ToolingRuntime available on NuGet
In-browser test client
Visual Studio support:
• Local F5
• IntelliSense
• First-class deployment via WebDeploy and git
• Remote debugging
•Programming model (data, scheduled jobs)•Visual Studio tooling•Local and remote debugging•Publish
Lap around the .NET backend
source
Mobile Servicescompatible WebAPIcontrollers
git
WebDeploy
Commit hook: Build project
WebsiteXDRIVE\site\wwwroot
Mobile Servicescompatible WebAPIcontrollers
Web.config
C:\...\MobileServices
Mobile Servicesruntime
Web.config
website root
load
User database:EF code-first migrationsor custom migrations
App settingsinjected here
Data access and offline support
New data model (“greenfield”)
TableController
DataManagerDTO
DTO
Mobile ServiceDevice
SQL Database
BYOD
MongoDB
Table Storage
Existing data model (“brownfield”)
TableController
DataManagerDTO
DTO
Mobile ServiceDevice
Model
AutoMapper
SQL Azure/BYOD
ExistingTables
SystemPropertiesTable
Offline support
TableController(with optimistic
concurrency)
Mobile ServiceDevice
SQL Database
BYOD
MongoDB
Table Storage
SQLiteExplicit Push/Pull
Conflict resolution
Mobile Services .NET Backend
Open SourceBreaking News
Your Feedback is Important!Thank You!
Recommended