360 likes | 631 Views
Building Cross-Platform Apps with Windows Azure Mobile Services. Chris Risner Technical Evangelist 3-545. Introduction. Windows Azure Technical Evangelist. @ chrisrisner. Mobile Developer. http:// chrisrisner.com. Former .NET developer. Live in Washington. Grew up in Michigan.
E N D
Building Cross-Platform Apps with Windows Azure Mobile Services Chris Risner Technical Evangelist 3-545
Introduction Windows Azure Technical Evangelist @chrisrisner Mobile Developer http://chrisrisner.com Former .NET developer Live in Washington Grew up in Michigan Co-Organizer of Seattle GDG
Agenda Building Apps Building Apps with Mobile Services Data Storage Push Notifications Security and Authentication Questions
How can we Build those Apps? C#, HTML/JS Java Objective-C HTML/JS C#
Windows Azure Mobile Services Auth Data Notifications Logging & Diag Server Logic Scheduler Scale
Structured Storage • Powered by SQL Database • Same DB – Multiple Mobile Services • Data management in: • Windows Azure Portal • SQL Portal • SQL Management Studio • REST API • CLI Tools
The REST API Base REST API Endpoint URL http://Mobileservice.azure-mobile.net/tables/* Data Operations and their REST Equivalents
Server Side Scripts • Customizing data flow on the server Built on top of Node.js Intercept CRUD requests to tables Passes through to SQL by default Fully customizable logic flow
Node Modules • Extensibility through numerous modules request push.* sendgrid console mssql pusher statusCodes azure twilio
Push Notifications Mobile Services Client Register for push notifications Register with your send token to Mobile Service Push from server side scripts App (2) (3) (1) Push Provider (3)
Data Authorization • Table level permissions for each operation • Everyone • Anyone with the Application Key • Only Authenticated Users • Only Scripts and Admins • User options in scripts • user.level (admin, authenticated, anonymous) • user.userId (provider:id or undefined)
Command Line Tools • Scriptable control from PowerShell / Bash Create / Delete Services Inspect / Delete Table Data Create / Update / Delete Tables and Permissions Create, / Upload / Delete Scripts Scale Up / Down Services Much More!
Scheduler • Execute scripts on a Schedule • Execute scripts on demand • Frequency and length of execution based off of service level
Custom API • Non-table based scripts • Accessible from: • Get • Post • Put • Patch • Delete • Same permissions as Tables
Script Source Control NPM • Ability to use ‘npm install module’ to download NPM modules • Currently accessible from Custom API only Shared Scripts • Make scripts accessible from other scripts • Like creating Node Modules • Handled through Git repo • Access to table, scheduler, custom API, shared scripts, and permissions
Diagnostics, Logging, Scale API Calls, CPU Time, Data Out Scale service based off of API Calls Console logging from Scripts Scale SQL DB / Server
Service Scale Free • 500K API calls per subscription per month Standard • 1.5M API calls per unit per month Premium • 15M API calls per unit per month
Preview Pricing preview pricing & licensing service level agreements $ Reserved (private VM) Small instance is the only size available; multiple may be purchased Charge for Preview will be at the same reduced rate as Web Sites Up to 100 Mobile Services PreviewNo availability SLA Shared (multitenant environment) Small instance is the only size available; multiple may be purchased First 10 Mobile Services are free, with no plans to start charging
Mobile Services GA Pricing service level agreements pricing & licensing $ General Availability99.9% *prorated daily **Active devices refers to the number of unique devices that have both obtained your Mobile Services powered app from a public app store and have made at least one call to your mobile service over the past 30 days.
Windows Azure Mobile Services Auth Data Notifications Logging & Diag Server Logic Scheduler Scale
Resources • Get a Windows Azure Free Trial Account • http://www.windowsazure.com • Videos, Tutorials and more • http://www.windowsazure.com/mobile • Source code on Github • https://github.com/WindowsAzure/azure-mobile-services • Contact me • http://chrisrisner.com • @chrisrisner
Mobile Services at Build Mobile Services – Soup to Nuts Josh Twist – Thursday 2pm Cross-Platform w/ Mobile Services Chris Risner – Thursday 4pm Protips for Mobile Services Chris Risner – Thursday 5pm Connected Win Phone Apps YavorGeorgiev – Friday 9am Going Live and Beyond Kirill and Paul – Friday 10:30am Delivering Push Notifications to Millions ElioDemaggio – Friday 12pm Who’s that user? Dinesh Kulkarni – Friday 2pm Developing Windows 8.1 apps using Windows Azure Mobile Services Nick Harris – Friday 2pm