Top Banner
Azure Mobile Services Mobile Services <3 Web API Filip Ekberg
36

Azure Mobile Services .NET Backend

Jul 16, 2015

Download

Technology

Filip Ekberg
Welcome message from author
This document is posted to help you gain knowledge. Please leave a comment to let me know what you think about it! Share it to your friends and learn new things together.
Transcript
Page 1: Azure Mobile Services .NET Backend

Azure Mobile Services

Mobile Services <3 Web API

Filip Ekberg

Page 2: Azure Mobile Services .NET Backend

Page / Copyright ©2014 by Readify Pty Ltd2 @fekberg

Page 3: Azure Mobile Services .NET Backend

Page

Filip EkbergC# MVP

http://fekberg.com

@fekberg

C# Smorgasbord

/ Copyright ©2014 by Readify Pty Ltd3

Page 4: Azure Mobile Services .NET Backend

Page

Agenda› Quick re-cap: What is Azure Mobile Services?

› The .NET Backend for Mobile Services

› Offline Data

› Alternative Data Stores

/ Copyright ©2014 by Readify Pty Ltd4

@fekberg

Page 5: Azure Mobile Services .NET Backend

Page

What is Azure Mobile Services?

/ Copyright ©2014 by Readify Pty Ltd5

@fekberg

Page 6: Azure Mobile Services .NET Backend

Page

Scalable backend in the cloud› Runs in Azure

› Backed by Node.JS

› Dynamic data schema

/ Copyright ©2014 by Readify Pty Ltd6

@fekberg

Page 7: Azure Mobile Services .NET Backend

Page

Cross-platform capabilities› iOS

› Android

› .NET

› REST API

/ Copyright ©2014 by Readify Pty Ltd7

@fekberg

Page 8: Azure Mobile Services .NET Backend

Page

Push Notifications› Windows Store

› Windows Phone

› Android

› iOS

/ Copyright ©2014 by Readify Pty Ltd8

@fekberg

Page 9: Azure Mobile Services .NET Backend

Page

Authentication & Authorization› Microsoft Account

› AD

› Twitter

› Facebook

› Google

/ Copyright ©2014 by Readify Pty Ltd9

@fekberg

Page 10: Azure Mobile Services .NET Backend

Page

NodeJS/ Copyright ©2014 by Readify Pty Ltd10

@fekberg

Page 11: Azure Mobile Services .NET Backend

Page

The .NET Backend for Mobile Services

/ Copyright ©2014 by Readify Pty Ltd11

@fekberg

Page 12: Azure Mobile Services .NET Backend

Page

Powerful backend with WebAPI

/ Copyright ©2014 by Readify Pty Ltd12

@fekberg

Page 13: Azure Mobile Services .NET Backend

Page

Host Anywhere

/ Copyright ©2014 by Readify Pty Ltd13

@fekberg

Page 14: Azure Mobile Services .NET Backend

Page

Cross-Platform capabilities

/ Copyright ©2014 by Readify Pty Ltd14

@fekberg

Page 15: Azure Mobile Services .NET Backend

Page

Debugging in the cloud

/ Copyright ©2014 by Readify Pty Ltd15

@fekberg

Page 16: Azure Mobile Services .NET Backend

Page

DemoUsing WebAPI and Mobile Services

/ Copyright ©2014 by Readify Pty Ltd16

@fekberg

Page 17: Azure Mobile Services .NET Backend

Page

Going Offline

/ Copyright ©2014 by Readify Pty Ltd17

@fekberg

Page 18: Azure Mobile Services .NET Backend

Page

Different connectivity patterns› Always connected with High-Speed Internet

› Always connected with Mobile Internet Connection

› Occasionally Connected

› Barely Connected

/ Copyright ©2014 by Readify Pty Ltd18

@fekberg

Page 19: Azure Mobile Services .NET Backend

Page

We need to cater for all connectivity patterns

/ Copyright ©2014 by Readify Pty Ltd19

@fekberg

Page 20: Azure Mobile Services .NET Backend

Page

Delivering data costs money!

/ Copyright ©2014 by Readify Pty Ltd20

@fekberg

Page 21: Azure Mobile Services .NET Backend

Page

Managing Offline Data

/ Copyright ©2014 by Readify Pty Ltd21

@fekberg

Page 22: Azure Mobile Services .NET Backend

Page

Out of the box support for SQLite

/ Copyright ©2014 by Readify Pty Ltd22

@fekberg

Page 23: Azure Mobile Services .NET Backend

Page

Synchronizing Data

/ Copyright ©2014 by Readify Pty Ltd23

@fekberg

Page 24: Azure Mobile Services .NET Backend

Page

Handling concurrency

/ Copyright ©2014 by Readify Pty Ltd24

@fekberg

Page 25: Azure Mobile Services .NET Backend

Page

Who wins in a collision?

/ Copyright ©2014 by Readify Pty Ltd25

@fekberg

Page 26: Azure Mobile Services .NET Backend

Page

Concurrency Strategies

/ Copyright ©2014 by Readify Pty Ltd26

@fekberg

Page 27: Azure Mobile Services .NET Backend

Page

Optimistic Concurrency› No locks!

› Notified about conflicts

› Ask the end-user which version to take?

/ Copyright ©2014 by Readify Pty Ltd27

@fekberg

Page 28: Azure Mobile Services .NET Backend

Page

Advanced Conflict Resolution› Can we merge data?

/ Copyright ©2014 by Readify Pty Ltd28

@fekberg

Page 29: Azure Mobile Services .NET Backend

Page

DemoTaking Data Offline

/ Copyright ©2014 by Readify Pty Ltd29

@fekberg

Page 30: Azure Mobile Services .NET Backend

Page

Alternative Data Stores

/ Copyright ©2014 by Readify Pty Ltd30

@fekberg

Page 31: Azure Mobile Services .NET Backend

Page

Use your on-premises solution

/ Copyright ©2014 by Readify Pty Ltd31

@fekberg

Page 32: Azure Mobile Services .NET Backend

Page

Supports a wide range of stores

/ Copyright ©2014 by Readify Pty Ltd32

@fekberg

Page 33: Azure Mobile Services .NET Backend

Page

DemoGoing offline with SQL Server &

MongoDB

/ Copyright ©2014 by Readify Pty Ltd33

@fekberg

Page 34: Azure Mobile Services .NET Backend

Page

Summary› Mobile Services just got a whole lot more powerful

› Create a powerful backend using WebAPI

› We can easily debug our WebAPI once in the cloud

› Offline data let’s us cater for all usage patterns

› Support for a wide range of different data stores

› Synchronization problems(collisions) can be handled

in multiple ways

/ Copyright ©2014 by Readify Pty Ltd34

@fekberg

Page 35: Azure Mobile Services .NET Backend

Page

Questions?

/ Copyright ©2014 by Readify Pty Ltd35

@fekberg

Page 36: Azure Mobile Services .NET Backend

Page

Thank you!

http://fekberg.com

@fekberg

C# Smorgasbord

/ Copyright ©2014 by Readify Pty Ltd36