15
Join the conversation on Twitter: @SoftArchConf #SA2014 This presentation: http://s.sashag.net/sa- Modern Backends for Mobile Apps Sasha Goldshtein CTO, Sela Group blog.sashag.net @goldshtn

Modern Backends for Mobile Apps

Embed Size (px)

DESCRIPTION

Presentation from Software Architect 2014, covering modern cloud backends for mobile apps with a focus on Microsoft Azure Mobile Services and Facebook Parse.

Citation preview

Page 1: Modern Backends for Mobile Apps

Join the conversation on Twitter: @SoftArchConf #SA2014

This presentation: http://s.sashag.net/sa-mobilebackends

Modern Backends for Mobile Apps

Sasha GoldshteinCTO, Sela Group

blog.sashag.net @goldshtn

Page 2: Modern Backends for Mobile Apps

Join the conversation on Twitter: @SoftArchConf #SA2014

This presentation: http://s.sashag.net/sa-mobilebackends

An Exercise in Estimation

Page 3: Modern Backends for Mobile Apps

Join the conversation on Twitter: @SoftArchConf #SA2014

This presentation: http://s.sashag.net/sa-mobilebackends

modern mobile apps need friction-free, hassle-free, free-to-get-started

backends

Page 4: Modern Backends for Mobile Apps

Join the conversation on Twitter: @SoftArchConf #SA2014

This presentation: http://s.sashag.net/sa-mobilebackends

Key Scenarios

• POC/MVP development

• Extremely elastic loads

• Availability of mostly front-end skillset

P.S. Scalable, elastic, distributed systems are hard. Why build them yourself?

Page 5: Modern Backends for Mobile Apps

Join the conversation on Twitter: @SoftArchConf #SA2014

This presentation: http://s.sashag.net/sa-mobilebackends

Key Offerings

• Data storage (SQL database/files)

• Efficient queries and caching

• Push notifications

• User management and authentication

Page 6: Modern Backends for Mobile Apps

Join the conversation on Twitter: @SoftArchConf #SA2014

This presentation: http://s.sashag.net/sa-mobilebackends

Key Players

• Microsoft Azure Mobile Services

• Facebook Parse

• BaasBox (open source)

• Appcelerator (tightly bound with Titanium)

…several others

Everyone has a great free plan for you to try!

Page 7: Modern Backends for Mobile Apps

Join the conversation on Twitter: @SoftArchConf #SA2014

This presentation: http://s.sashag.net/sa-mobilebackends

DEMOGetting started with Azure Mobile Services

Page 8: Modern Backends for Mobile Apps

Join the conversation on Twitter: @SoftArchConf #SA2014

This presentation: http://s.sashag.net/sa-mobilebackends

Scenario 1: Complete Reliance

Azure Mobile Service

Data DB Push DBFile

Storage

Custom logic in server scripts (JavaScript) or API controllers (.NET)

Azure

Page 9: Modern Backends for Mobile Apps

Join the conversation on Twitter: @SoftArchConf #SA2014

This presentation: http://s.sashag.net/sa-mobilebackends

Scenario 2: Offloading

Your Backend

Data DB

File Storage

Azure

Azure Mobile Service

RESTREST

Hybrid Connection

Hybrid Connection

Page 10: Modern Backends for Mobile Apps

Join the conversation on Twitter: @SoftArchConf #SA2014

This presentation: http://s.sashag.net/sa-mobilebackends

Scenario 3: Occasional Burst

Your Backend

Data DB

File Storage

Azure

Azure Mobile Service

or Notification

Hub

Push DB

Page 11: Modern Backends for Mobile Apps

Join the conversation on Twitter: @SoftArchConf #SA2014

This presentation: http://s.sashag.net/sa-mobilebackends

DEMOUsing push and authentication

Page 12: Modern Backends for Mobile Apps

Join the conversation on Twitter: @SoftArchConf #SA2014

This presentation: http://s.sashag.net/sa-mobilebackends

Pricing Models

Azure•Scaled in “units”/mo•$15/basic unit:

– 1.5M API calls– 10M pushes– Unlimited CPU

capacity and data transfer

– Storage and DB priced separately

Parse•Pay per resource:

– 30 req/s free, add $100 per 10 req/s

– 20GB file storage free, add $0.03/GB extra

– 20GB DB free, add $200/20GB extra

– 2TB data transfer free, add $0.10/GB extra

Page 13: Modern Backends for Mobile Apps

Join the conversation on Twitter: @SoftArchConf #SA2014

This presentation: http://s.sashag.net/sa-mobilebackends

1 Million Users for $1K/month

• Credit card bill and special offers app with queries and push notifications– 1,000,000 active devices/month– Average 2 calls/day/device = 60M calls/mo– Average 1 push/day/device = 30M pushes/mo– Average 100KB data/device = 100GB data

• Azure price:– 3 Standard Mobile Service units, $560– 1 Premium SQL DB (500GB, 100TPS), $465

Page 14: Modern Backends for Mobile Apps

Join the conversation on Twitter: @SoftArchConf #SA2014

This presentation: http://s.sashag.net/sa-mobilebackends

Going with a Backend

Pros•Elastic scale•Productivity•Cheap for common scenarios•Flexible customization

Cons•Integration with on-premise resources can be challenging•Uncommon scenarios can be expensive

Page 15: Modern Backends for Mobile Apps

Join the conversation on Twitter: @SoftArchConf #SA2014

This presentation: http://s.sashag.net/sa-mobilebackends

Thank You!

Sasha Goldshtein

blog.sashag.net

@goldshtn

s.sashag.net/sa-mobile-backends