Slide 1

Slide 1 text

No content

Slide 2

Slide 2 text

Backend Integration Introduction to Parse.com and .... Reynold Xin MEET Y3, 2012

Slide 3

Slide 3 text

server

Slide 4

Slide 4 text

No content

Slide 5

Slide 5 text

No content

Slide 6

Slide 6 text

No content

Slide 7

Slide 7 text

operations hardware software

Slide 8

Slide 8 text

No content

Slide 9

Slide 9 text

“The Parse platform provides a complete backend solution for your mobile application. Our goal is to totally eliminate the need for writing server code or maintaining servers.”

Slide 10

Slide 10 text

No content

Slide 11

Slide 11 text

ParseObject (Java class) • Key concept in Parse • A “row” in the Parse backend database. • It is a Java class, and you can add fields to it. • To save it in the Parse backend, call “save”.

Slide 12

Slide 12 text

public long createNote(String title, String body) { ContentValues initialValues = new ContentValues(); initialValues.put(KEY_TITLE, title); initialValues.put(KEY_BODY, body); return mDb.insert(DB_TABLE, null, initialValues); } public String createNote(String title, String body) { ParseObject note = new ParseObject("Note"); note.put(KEY_TITLE, title); note.put(KEY_BODY, body); note.save(); }

Slide 13

Slide 13 text

No content

Slide 14

Slide 14 text

user accounts: registration, email verification, password resets

Slide 15

Slide 15 text

key/value data store social integration user accounts file management push notification geo-location integration

Slide 16

Slide 16 text

Group exercise: Evaluate the decision to use Parse vs our own backend.

Slide 17

Slide 17 text

How do you evaluate a technology? • Fit: Does it fit our business model and support our use case? • Skill: Are there developers already proficient in the new technology? Will there need to be training? Can it be easily picked up? • Cost: Is the technology worth the price?

Slide 18

Slide 18 text

Cost Estimation • We will focus on Cost in this exercise. • Step 1: Estimate the demand on technology. • Step 2: Calculate the cost of the technology based on the demand.

Slide 19

Slide 19 text

Estimate Demand • How many active users will we have? • What is the usage pattern? E.g. using it once a day for 5 mins. • How many requests do the app make every minute? • Example: For the notepad app, if we assume an average user uses the app twice a day (by showing the list, viewing 3 notes, and creating a new note), ~ 10 requests a day. For 1000 active users, that’s 10000 requests a day.

Slide 20

Slide 20 text

Estimate Cost • Estimate the cost of Parse. • Estimate the cost of building our own backend.

Slide 21

Slide 21 text

No content

Slide 22

Slide 22 text

operations hardware software operations engineer: $100k/yr each engineer can support 10 machines $5k/machine; each machine supports 50 requests/sec software engineer: $100k/yr