Building a scalable mobile application on Go Google gle Cloud ud - - PowerPoint PPT Presentation

building a scalable mobile application on go google gle
SMART_READER_LITE
LIVE PREVIEW

Building a scalable mobile application on Go Google gle Cloud ud - - PowerPoint PPT Presentation

Building a scalable mobile application on Go Google gle Cloud ud Pl Platfo tform rm About us Lukas Masuch Google+: +LukasMasuch Twitter: @lukasmasuch Henning Muszynski Google+: +HenningBalboa Twitter: @henningmus Benjamin Rthlein


slide-1
SLIDE 1

Building a scalable mobile application on

Go Google gle Cloud ud Pl Platfo tform rm

slide-2
SLIDE 2

About us

Lukas Masuch

Google+: +LukasMasuch Twitter: @lukasmasuch

Henning Muszynski

Google+: +HenningBalboa Twitter: @henningmus

Benjamin Räthlein

Google+: +BenjaminRäthlein Twitter: @B3nRa

slide-3
SLIDE 3

Drop

Make the world around you more social

slide-4
SLIDE 4
slide-5
SLIDE 5
slide-6
SLIDE 6

Google Cloud Platform

slide-7
SLIDE 7

Google Cloud Platform

slide-8
SLIDE 8

Cloud Platform – Compute

Conta tain iner er Engine: ine: Run Docker container cluster on Google Cloud Platform – Container-as-a-Service App Engine: ine: Deploy your code directly to a fully- managed platform - Platform-as-a-Service Compute te Engine: ine: Virtual machines hosted on Google's infrastructure - Infrastructure-as-a-Service

slide-9
SLIDE 9

Cloud Platform – Storage Options

Cloud Data tasto store re: : Store highly structured objects and query with SQL-like statements Cloud SQL: Full SQL support for an online transaction processing (OLTP) system Cloud Storage rage: Store immutable blobs larger than 10 MB, such as large images or videos Cloud BigTa Table: : High-performance, extremely scalable NoSQL database, scales to billions of entries

slide-10
SLIDE 10

Google Cloud Platform

slide-11
SLIDE 11

Cloud Datastore Cloud Storage

Cloud Endpoints File Servlet GCM Endpoint Objectify

Other Dev Tools App Engine

slide-12
SLIDE 12

App Engine

Cloud Endpoints

slide-13
SLIDE 13
  • 1. Annotate 2. Generate 3. Run everywhere

Cloud Endpoint

REST has never been easier!

Automatically generate client libraries to make wiring up the client to your backend easy.

+ Annotation based + Easy declaration of REST methods and services + support for local testing

Really ?

slide-14
SLIDE 14

Cloud Endpoint - Pitfalls

What we should have known before

Endpoint methods allow only one object as parameter

1

Enums are neither returnable nor allowed as parameters

1..2..3

No native data types are returnable. Use Wrappers!

int

Getter / Setter require to be named same as the member

  • variables. Otherwise duplicate methods are generated
slide-15
SLIDE 15

App Engine Cloud Datastore Cloud Storage

File Servlet Cloud Endpoints

slide-16
SLIDE 16

Cloud Datastore & Cloud Storage

Save everything in the cloud!

Datastore: Store all entities Storage: Store all files Better database design vs.

  • vs. less data operations

Cloud Storage: Convenient API for Images. Additional Servlet for Files needed. Manageable with an easy-to-use Interface on Google Cloud Console

slide-17
SLIDE 17

App Engine Cloud Datastore Cloud Storage

File Servlet Cloud Endpoints

Cloud Datastore Cloud Storage

File Servlet Cloud Endpoints Objectify

slide-18
SLIDE 18

Objectify

The simplest convenient ORM for App Engine datastore

Enables you to store and retrieve your Object directly from Cloud Datastore. It is that simple! It just works like a charm! + Annotation based + Easy caching and indexing + Human-friendly query interface

slide-19
SLIDE 19

App Engine Cloud Datastore Cloud Storage

File Servlet Cloud Endpoints

Cloud Datastore Cloud Storage

File Servlet Cloud Endpoints Objectify GCM Endpoint

slide-20
SLIDE 20

Google Cloud Messaging - Users want to be notified!

  • 1. Registration
  • 2. GCM ID

App Engine Cloud Datastore

Cloud Endpoints GCM Endpoint Objectify

  • 3. Send GCM ID

to App Engine

  • 4. push messages
slide-21
SLIDE 21

App Engine Cloud Datastore Cloud Storage

File Servlet Cloud Endpoints

Cloud Datastore Cloud Storage

File Servlet Cloud Endpoints Objectify GCM Endpoint

slide-22
SLIDE 22

App Engine Cloud Datastore Cloud Storage

File Servlet Cloud Endpoints

Cloud Datastore Cloud Storage

File Servlet Cloud Endpoints Objectify GCM Endpoint

Other Dev Tools

slide-23
SLIDE 23

Resources & Links

Drop

  • p - Websit

bsite Googl gle Cloud

  • ud Play

aygroun ground d (Python) ython) Github thub Reposit pository

  • ry – Ap

App p Engin gine Skelet eton

  • n
slide-24
SLIDE 24

Lukas Masuch Henning Muszynski Benjamin Räthlein