Slide 1

Slide 1 text

What’s new in Firebase & Google Cloud GDG Post I/O Tour ‘18 Constantine Mars Lead Software Engineer @ EPAM Systems

Slide 2

Slide 2 text

Firebase

Slide 3

Slide 3 text

Francis Ma

Slide 4

Slide 4 text

Platform Grows

Slide 5

Slide 5 text

3 large categories of services

Slide 6

Slide 6 text

Develop

Slide 7

Slide 7 text

Quality

Slide 8

Slide 8 text

Grow

Slide 9

Slide 9 text

Develop

Slide 10

Slide 10 text

Authentication Plus: Phone sign-in Passwordless sign-in Play Games sign-in

Slide 11

Slide 11 text

Cloud Functions

Slide 12

Slide 12 text

Call Cloud Functions from Android code

Slide 13

Slide 13 text

Test Cloud Functions with JS in Web project

Slide 14

Slide 14 text

Cloud Firestore - better NoSQL (Beta)

Slide 15

Slide 15 text

Firebase ML Kit

Slide 16

Slide 16 text

Use GCP or TensorFlow Lite for online/offline

Slide 17

Slide 17 text

Upload custom TensorFlow Lite Models

Slide 18

Slide 18 text

Use case - VSCO presets suggestion on-device

Slide 19

Slide 19 text

ML Kit 5 APIs Text Extraction Face Detection Barcode Scanning Image Labeling Landmark Detection

Slide 20

Slide 20 text

ML Kit 5 APIs

Slide 21

Slide 21 text

Quality

Slide 22

Slide 22 text

No content

Slide 23

Slide 23 text

Firebase TestLab for iOS Soon...

Slide 24

Slide 24 text

Firebase TestLab for iOS - now in Beta

Slide 25

Slide 25 text

Firebase TestLab for iOS

Slide 26

Slide 26 text

Performance Dashboard

Slide 27

Slide 27 text

New Performance Dashboard

Slide 28

Slide 28 text

Performance Monitoring

Slide 29

Slide 29 text

Performance Monitoring

Slide 30

Slide 30 text

Performance Monitoring

Slide 31

Slide 31 text

Automatic traces

Slide 32

Slide 32 text

Grow

Slide 33

Slide 33 text

How to… Grow?

Slide 34

Slide 34 text

Analytics

Slide 35

Slide 35 text

Predictions - make ML work for you

Slide 36

Slide 36 text

Customize user experiences

Slide 37

Slide 37 text

Adjust Risk Tolerance

Slide 38

Slide 38 text

Send smarter notifications

Slide 39

Slide 39 text

A/B Testing

Slide 40

Slide 40 text

A/B Testing

Slide 41

Slide 41 text

A/B Testing

Slide 42

Slide 42 text

A/B Testing

Slide 43

Slide 43 text

GCP Overview

Slide 44

Slide 44 text

GCP Overview

Slide 45

Slide 45 text

GCP Overview

Slide 46

Slide 46 text

Why Cloud? Avoid routine Disaster recovery Backups Security patches Updates

Slide 47

Slide 47 text

GCE = Google Compute Engine / IaaS / VMs

Slide 48

Slide 48 text

GAE = Google App Engine / PaaS / Serverless App Platform

Slide 49

Slide 49 text

GCF = Google Cloud Functions / FaaS / Event-driven serverless stateless apps

Slide 50

Slide 50 text

Pub/Sub

Slide 51

Slide 51 text

Google Kubernetes Engine / CaaS Containers and k8s Nodes Clusters Pods Services Deployments

Slide 52

Slide 52 text

Sample architecture - CatFacts *from session “Pick the right tools to grow your app on Google Cloud Platform”

Slide 53

Slide 53 text

Cloud IoT Core

Slide 54

Slide 54 text

Growth of IoT

Slide 55

Slide 55 text

Constrained Device - MCU

Slide 56

Slide 56 text

Constrained Device - MCU

Slide 57

Slide 57 text

2 components

Slide 58

Slide 58 text

Cloud IoT Core Dashboard

Slide 59

Slide 59 text

Basic architecture

Slide 60

Slide 60 text

Cloud IoT Architecture… with more options :)

Slide 61

Slide 61 text

Useful for example - to make robots dance :)

Slide 62

Slide 62 text

Robo-dance presented by Gus Class, btw...

Slide 63

Slide 63 text

Back to CatFacts... *from session “Pick the right tools to grow your app on Google Cloud Platform”

Slide 64

Slide 64 text

CatFacts...

Slide 65

Slide 65 text

No content

Slide 66

Slide 66 text

No content

Slide 67

Slide 67 text

Cost-effective GCP

Slide 68

Slide 68 text

Enterprise vs Startup

Slide 69

Slide 69 text

GCP Pricing Calculator

Slide 70

Slide 70 text

No content

Slide 71

Slide 71 text

Free tier (monthly, actual on May 2018)

Slide 72

Slide 72 text

Serving data costs Serve 1TB -> Storage + Network

Slide 73

Slide 73 text

1TB costs

Slide 74

Slide 74 text

Network optimizations

Slide 75

Slide 75 text

Free traffic in single region

Slide 76

Slide 76 text

Price between regions

Slide 77

Slide 77 text

Cost of duplication

Slide 78

Slide 78 text

Multiregion option

Slide 79

Slide 79 text

Mutli US - EU

Slide 80

Slide 80 text

CDN usage

Slide 81

Slide 81 text

CDN in / out is not equal. Assume 80%/20%

Slide 82

Slide 82 text

Cost options

Slide 83

Slide 83 text

Compute optimizations

Slide 84

Slide 84 text

Consider GCF vs GAE vs GCE

Slide 85

Slide 85 text

Costs of GCF vs GAE vs GCE

Slide 86

Slide 86 text

Free tier GCF vs GAE vs GCE

Slide 87

Slide 87 text

Always-on costs

Slide 88

Slide 88 text

Compute duration limitations

Slide 89

Slide 89 text

Get Discounts on GCE ;)

Slide 90

Slide 90 text

Pre-emptible GCE

Slide 91

Slide 91 text

Accumulate cost-saving methods

Slide 92

Slide 92 text

Cost-saving tactics

Slide 93

Slide 93 text

Scenarios

Slide 94

Slide 94 text

VPN

Slide 95

Slide 95 text

Free tier

Slide 96

Slide 96 text

VPN for free when use F1-micro

Slide 97

Slide 97 text

Switch to nearest vpn / instance for free with Cloud Functions

Slide 98

Slide 98 text

WordPress

Slide 99

Slide 99 text

Google Cloud Launcher. Wordpress setup

Slide 100

Slide 100 text

N1-Standard

Slide 101

Slide 101 text

Use free tier

Slide 102

Slide 102 text

Traffic estimates for WP

Slide 103

Slide 103 text

Switch to paid when ~4000 visitors

Slide 104

Slide 104 text

Scale up and down on GCE?

Slide 105

Slide 105 text

App Engine

Slide 106

Slide 106 text

WP recommendations

Slide 107

Slide 107 text

Video content website

Slide 108

Slide 108 text

Standard layout

Slide 109

Slide 109 text

Cheapest

Slide 110

Slide 110 text

And even cheaper :D

Slide 111

Slide 111 text

Links and fun ;)

Slide 112

Slide 112 text

Links, watches and fun ;) What's new in Firebase (Google I/O '18) Firebase Docs The Firebase Blog Google Cloud Platform on a shoestring budget (Google I/O '18) Pick the right tools to grow your app on Google Cloud Platform (Google I/O '18) An overview of Cloud IoT Core (Google I/O '18) Google Cloud Performance Atlas Google Cloud Docs and Recommended Courses Mobile Architecture Club

Slide 113

Slide 113 text

T h anks =) Constantine Mars Lead Software Engineer @ EPAM Systems @ConstantineMars