Presentation is loading. Please wait.

Presentation is loading. Please wait.

Building Cross-Platform Apps with Windows Azure Mobile Services

Similar presentations


Presentation on theme: "Building Cross-Platform Apps with Windows Azure Mobile Services"— Presentation transcript:

1

2 Building Cross-Platform Apps with Windows Azure Mobile Services
Chris Risner Technical Evangelist 3-545

3 Introduction Windows Azure Technical Evangelist @chrisrisner
Mobile Developer Former .NET developer Live in Washington Grew up in Michigan Co-Organizer of Seattle GDG

4 Agenda Data Storage Push Notifications Security and Authentication
Building Apps Building Apps with Mobile Services Data Storage Push Notifications Security and Authentication Questions

5 What are we Building Apps for?

6 How can we Build those Apps?
C#, HTML/JS Java Objective-C HTML/JS C#

7 Which should I use? ?

8 Windows Azure Mobile Services
Auth Server Logic Notifications Logging & Diag Data Scheduler Scale

9 Getting started with HTML / JS

10 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

11 The REST API Base REST API Endpoint URL
Data Operations and their REST Equivalents Action HTTP Verb URL Suffix Create POST /TodoItem Retrieve GET /TodoItem?$filter=id%3D42 Update PATCH /TodoItem/id Delete DELETE

12 JSON to SQL Type Mappings
JSON Value T-SQL Type Numeric values (integer, decimal, floating point) Float Boolean Bit DateTime DateTimeOffset(3) String Nvarchar(max)

13 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

14 Node Modules Extensibility through numerous modules request push.*
sendgrid console mssql pusher statusCodes azure twilio

15 Adding Server Logic

16 Push Notifications Client Register for push notifications
Mobile Services Register for push notifications Register with your send token to Mobile Service Push from server side scripts App (2) (3) (1) (3) Push Provider

17 Pushing with Native

18 User Authentication

19 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)

20 Adding Authentication with Xamarin

21 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!

22 Using the CLI

23 Scheduler Execute scripts on a Schedule Execute scripts on demand
Frequency and length of execution based off of service level

24 Custom API Same permissions as Tables Non-table based scripts
Accessible from: Get Post Put Patch Delete Same permissions as Tables

25 Script Source Control Shared Scripts NPM Handled through Git repo
Access to table, scheduler, custom API, shared scripts, and permissions Shared Scripts Make scripts accessible from other scripts Like creating Node Modules NPM Ability to use ‘npm install module’ to download NPM modules Currently accessible from Custom API only

26 Scheduler, Custom API, Script Source

27 Diagnostics, Logging, Scale
API Calls, CPU Time, Data Out Scale service based off of API Calls Console logging from Scripts Scale SQL DB / Server

28 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

29 Diagnostics, Logging, and Scale

30 $ Preview Pricing preview pricing & licensing service level agreements
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 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 Preview No availability SLA

31 Mobile Services GA Pricing
pricing & licensing service level agreements $ Free Standard Premium Price Up to 10 services, Up to 100 Active Devices** $25 USD/mo (per unit**) $199 USD/mo API Calls 500K (per subscription) 1.5M (per unit) 15M Scale N/A Up to 6 Standard units Up to 10 Enterprise units Scheduled Jobs Limited Included SQL Database (required) 20MB Included, Standard rates apply for more capacity General Availability % *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.

32 Windows Azure Mobile Services
Auth Server Logic Notifications Logging & Diag Data Scheduler Scale

33 Cross-Platform Support

34 Resources Get a Windows Azure Free Trial Account
Videos, Tutorials and more Source code on Github Contact me @chrisrisner

35 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 Yavor Georgiev – Friday 9am Going Live and Beyond Kirill and Paul – Friday 10:30am Delivering Push Notifications to Millions Elio Demaggio – Friday 12pm Who’s that user? Dinesh Kulkarni – Friday 2pm Developing Windows 8.1 apps using Windows Azure Mobile Services Nick Harris – Friday 2pm

36


Download ppt "Building Cross-Platform Apps with Windows Azure Mobile Services"

Similar presentations


Ads by Google