Top Banner
Backend, Simplified A sane look at the mobile backend world
25

Backend, Simplified - A sane look on the mobile backend world, Nir Orpaz, MobileXperts

Aug 15, 2015

Download

Technology

DroidConTLV
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: Backend, Simplified - A sane look on the mobile backend world, Nir Orpaz, MobileXperts

Backend, SimplifiedA sane look at the mobile backend world

Page 3: Backend, Simplified - A sane look on the mobile backend world, Nir Orpaz, MobileXperts

Server is Coming

Page 4: Backend, Simplified - A sane look on the mobile backend world, Nir Orpaz, MobileXperts

Mobile Backend Roles• Statistics

• Users Management

• Configurations management

• Logging & Crash Report

• Push Notifications

• Scoring & other user information

Page 5: Backend, Simplified - A sane look on the mobile backend world, Nir Orpaz, MobileXperts

Mobile Backend Roles• Statistics

• Users Management

• Configurations management

• Logging & Crash Report

• Push Notifications

• Scoring & other user information

Page 6: Backend, Simplified - A sane look on the mobile backend world, Nir Orpaz, MobileXperts

Mobile Backend Roles• Statistics

• Users Management

• Configurations management

• Logging & Crash Report

• Push Notifications

• Scoring & other user information

Page 7: Backend, Simplified - A sane look on the mobile backend world, Nir Orpaz, MobileXperts

Mobile Backend Roles• Statistics

• Users Management

• Configurations management

• Logging & Crash Report

• Push Notifications

• Scoring & other user information

Page 8: Backend, Simplified - A sane look on the mobile backend world, Nir Orpaz, MobileXperts

Mobile Backend Roles• Statistics

• Users Management

• Configurations management

• Logging & Crash Report

• Push Notifications

• Scoring & other user information

Page 9: Backend, Simplified - A sane look on the mobile backend world, Nir Orpaz, MobileXperts

Mobile Backend Roles• Statistics

• Users Management

• Configurations management

• Logging & Crash Report

• Push Notifications

• Scoring & other user information

Page 10: Backend, Simplified - A sane look on the mobile backend world, Nir Orpaz, MobileXperts

4. Send push notifications

Push Server

APN or GCM (Google or Apple)

Our Push ServerThe Application

1. App re

gister fo

r push

2. App re

ceive to

ken

3. App sent the token to our server

DB

Store Token in DB

5. Got

push

Page 11: Backend, Simplified - A sane look on the mobile backend world, Nir Orpaz, MobileXperts

Mobile Backend Roles• Statistics

• Users Management

• Configurations management

• Logging & Crash Report

• Push Notifications

• Scoring & other user information

Page 12: Backend, Simplified - A sane look on the mobile backend world, Nir Orpaz, MobileXperts

3rd Party Solutions(MBaaS)

Page 13: Backend, Simplified - A sane look on the mobile backend world, Nir Orpaz, MobileXperts
Page 14: Backend, Simplified - A sane look on the mobile backend world, Nir Orpaz, MobileXperts

But, Can We Build Our Own Backend?

Yes we can!

Page 15: Backend, Simplified - A sane look on the mobile backend world, Nir Orpaz, MobileXperts

Technology

• Node.js

• .Net (C#)

• PHP

• Java

• …..

• MySQL

• MS-SQL

• MongoDB

• Riak

• BigQuery

• …..

Page 16: Backend, Simplified - A sane look on the mobile backend world, Nir Orpaz, MobileXperts

Infrastructure• AWS

• Google Cloud

• Microsoft Azure

• Heroku

• Modulus

• Google App Engine

} iaas

paas}

Page 17: Backend, Simplified - A sane look on the mobile backend world, Nir Orpaz, MobileXperts
Page 18: Backend, Simplified - A sane look on the mobile backend world, Nir Orpaz, MobileXperts

Let’s Build a Backend Together

We will use:

IDE:

Page 19: Backend, Simplified - A sane look on the mobile backend world, Nir Orpaz, MobileXperts

What is Node.js?• Server-side Javascript

• Built on Google’s V8

• Include npm - Node Package Manager

• Written in C++

• Evented. Non blocking I/O

Page 20: Backend, Simplified - A sane look on the mobile backend world, Nir Orpaz, MobileXperts

Non Blocking I/O?

var result = db.query(‘select * from t’);

Page 21: Backend, Simplified - A sane look on the mobile backend world, Nir Orpaz, MobileXperts

db.query(‘select * from t’, function (result) { // do something with the result});

Page 22: Backend, Simplified - A sane look on the mobile backend world, Nir Orpaz, MobileXperts

Node.js Introduction

var http = require(‘http');http.createServer(function (req, res) { res.writeHead(200, {'Content-Type': 'text/plain'}); res.end('Hello World\n');}).listen(1337, ‘127.0.0.1');console.log('Server running at http://127.0.0.1:1337/');

Page 23: Backend, Simplified - A sane look on the mobile backend world, Nir Orpaz, MobileXperts

Target: Creating a logging server in less than 10 min

{ "userid": "1234", "screen": "main Screen", "log": "NetworkOnMainThreadException" }

Page 24: Backend, Simplified - A sane look on the mobile backend world, Nir Orpaz, MobileXperts

DemoCoding, fun!