jtong srob - introduction to google cloud platform...dec 16, 2015  · songpop 100 400,075 800,050...

50
@MimmingCodes @SRobTweets Jenny Tong Sara Robinson Developer Advocates Introduction to Google Cloud Platform

Upload: others

Post on 06-Oct-2020

1 views

Category:

Documents


0 download

TRANSCRIPT

Page 1: jtong srob - Introduction to Google Cloud Platform...Dec 16, 2015  · SongPop 100 400,075 800,050 1,200,025 1,600,000 May 2012 July 2012 Sept 2012 December 2012 500,000 1,500,000

@MimmingCodes @SRobTweets

Jenny Tong Sara Robinson

Developer Advocates

Introduction to Google Cloud Platform

Page 2: jtong srob - Introduction to Google Cloud Platform...Dec 16, 2015  · SongPop 100 400,075 800,050 1,200,025 1,600,000 May 2012 July 2012 Sept 2012 December 2012 500,000 1,500,000

@MimmingCodes @SRobTweets

Jen Tong @MimmingCodes

Sara Robinson @SRobTweets

Page 3: jtong srob - Introduction to Google Cloud Platform...Dec 16, 2015  · SongPop 100 400,075 800,050 1,200,025 1,600,000 May 2012 July 2012 Sept 2012 December 2012 500,000 1,500,000

@MimmingCodes @SRobTweets

Who are you?

Page 4: jtong srob - Introduction to Google Cloud Platform...Dec 16, 2015  · SongPop 100 400,075 800,050 1,200,025 1,600,000 May 2012 July 2012 Sept 2012 December 2012 500,000 1,500,000

@MimmingCodes @SRobTweets

Introduction

Page 5: jtong srob - Introduction to Google Cloud Platform...Dec 16, 2015  · SongPop 100 400,075 800,050 1,200,025 1,600,000 May 2012 July 2012 Sept 2012 December 2012 500,000 1,500,000
Page 6: jtong srob - Introduction to Google Cloud Platform...Dec 16, 2015  · SongPop 100 400,075 800,050 1,200,025 1,600,000 May 2012 July 2012 Sept 2012 December 2012 500,000 1,500,000
Page 7: jtong srob - Introduction to Google Cloud Platform...Dec 16, 2015  · SongPop 100 400,075 800,050 1,200,025 1,600,000 May 2012 July 2012 Sept 2012 December 2012 500,000 1,500,000
Page 8: jtong srob - Introduction to Google Cloud Platform...Dec 16, 2015  · SongPop 100 400,075 800,050 1,200,025 1,600,000 May 2012 July 2012 Sept 2012 December 2012 500,000 1,500,000
Page 9: jtong srob - Introduction to Google Cloud Platform...Dec 16, 2015  · SongPop 100 400,075 800,050 1,200,025 1,600,000 May 2012 July 2012 Sept 2012 December 2012 500,000 1,500,000
Page 10: jtong srob - Introduction to Google Cloud Platform...Dec 16, 2015  · SongPop 100 400,075 800,050 1,200,025 1,600,000 May 2012 July 2012 Sept 2012 December 2012 500,000 1,500,000

@MimmingCodes @SRobTweets

Google Cloud Platform

Compute

Connectivity

Big Data

Storage

Developer Tools

MobileManagement

Page 11: jtong srob - Introduction to Google Cloud Platform...Dec 16, 2015  · SongPop 100 400,075 800,050 1,200,025 1,600,000 May 2012 July 2012 Sept 2012 December 2012 500,000 1,500,000

@MimmingCodes @SRobTweets

Google Cloud Platform

Compute

Connectivity

Big Data

Storage

Developer Tools

MobileManagement

Page 12: jtong srob - Introduction to Google Cloud Platform...Dec 16, 2015  · SongPop 100 400,075 800,050 1,200,025 1,600,000 May 2012 July 2012 Sept 2012 December 2012 500,000 1,500,000

@MimmingCodes @SRobTweets

Google Cloud Platform

Compute

Connectivity

Big Data

Storage

Developer Tools

MobileManagement

Page 13: jtong srob - Introduction to Google Cloud Platform...Dec 16, 2015  · SongPop 100 400,075 800,050 1,200,025 1,600,000 May 2012 July 2012 Sept 2012 December 2012 500,000 1,500,000

@MimmingCodes @SRobTweets

Google Cloud Platform

Compute

Connectivity

Big Data

Storage

Developer Tools

MobileManagement

Page 14: jtong srob - Introduction to Google Cloud Platform...Dec 16, 2015  · SongPop 100 400,075 800,050 1,200,025 1,600,000 May 2012 July 2012 Sept 2012 December 2012 500,000 1,500,000

@MimmingCodes @SRobTweets

Google Cloud Platform

Compute

Connectivity

Big Data

Storage

Developer Tools

MobileManagement

Page 15: jtong srob - Introduction to Google Cloud Platform...Dec 16, 2015  · SongPop 100 400,075 800,050 1,200,025 1,600,000 May 2012 July 2012 Sept 2012 December 2012 500,000 1,500,000

@MimmingCodes @SRobTweets

Google Cloud Platform

Compute

Connectivity

Big Data

Storage

Developer Tools

MobileManagement

Page 16: jtong srob - Introduction to Google Cloud Platform...Dec 16, 2015  · SongPop 100 400,075 800,050 1,200,025 1,600,000 May 2012 July 2012 Sept 2012 December 2012 500,000 1,500,000

@MimmingCodes @SRobTweets

Google Cloud Platform

Compute

Connectivity

Big Data

Storage

Developer Tools

MobileManagement

Page 17: jtong srob - Introduction to Google Cloud Platform...Dec 16, 2015  · SongPop 100 400,075 800,050 1,200,025 1,600,000 May 2012 July 2012 Sept 2012 December 2012 500,000 1,500,000

@MimmingCodes @SRobTweets

B I N G OVirtual

Machine PAAS

Storage No Ops Dev Ops

IAASContainerLogging

SQL NoSQL Big Data

Load Balancer CDN

Scale Latency

VPN SSD Terabyte

CLOUDMicroservicesMobile

DataCenter Client

Data HTTPS

Page 18: jtong srob - Introduction to Google Cloud Platform...Dec 16, 2015  · SongPop 100 400,075 800,050 1,200,025 1,600,000 May 2012 July 2012 Sept 2012 December 2012 500,000 1,500,000

@MimmingCodes @SRobTweets

What’s the difference?

Page 19: jtong srob - Introduction to Google Cloud Platform...Dec 16, 2015  · SongPop 100 400,075 800,050 1,200,025 1,600,000 May 2012 July 2012 Sept 2012 December 2012 500,000 1,500,000

@MimmingCodes @SRobTweets

Google Cloud Platform

Compute

Connectivity

Big Data

Storage

Developer Tools

MobileManagement

Page 20: jtong srob - Introduction to Google Cloud Platform...Dec 16, 2015  · SongPop 100 400,075 800,050 1,200,025 1,600,000 May 2012 July 2012 Sept 2012 December 2012 500,000 1,500,000

@MimmingCodes @SRobTweets

Google Cloud Platform

Compute

Connectivity

Big Data

Storage

Developer Tools

MobileManagement

Page 21: jtong srob - Introduction to Google Cloud Platform...Dec 16, 2015  · SongPop 100 400,075 800,050 1,200,025 1,600,000 May 2012 July 2012 Sept 2012 December 2012 500,000 1,500,000

@MimmingCodes @SRobTweets

Highlight

App Engine BigQuery Firebase

Page 22: jtong srob - Introduction to Google Cloud Platform...Dec 16, 2015  · SongPop 100 400,075 800,050 1,200,025 1,600,000 May 2012 July 2012 Sept 2012 December 2012 500,000 1,500,000

@MimmingCodes @SRobTweets

01 App Engine

Page 23: jtong srob - Introduction to Google Cloud Platform...Dec 16, 2015  · SongPop 100 400,075 800,050 1,200,025 1,600,000 May 2012 July 2012 Sept 2012 December 2012 500,000 1,500,000

@MimmingCodes @SRobTweets

• Platform as a Service • Lots of built-in stuff • Auto scales

App Engine

Python Java PHP Go

Page 24: jtong srob - Introduction to Google Cloud Platform...Dec 16, 2015  · SongPop 100 400,075 800,050 1,200,025 1,600,000 May 2012 July 2012 Sept 2012 December 2012 500,000 1,500,000

@MimmingCodes @SRobTweets

App Engine

Typical

86 M

• Platform as a Service • Lots of built-in stuff • Auto scales

Monthly Requests

Page 25: jtong srob - Introduction to Google Cloud Platform...Dec 16, 2015  · SongPop 100 400,075 800,050 1,200,025 1,600,000 May 2012 July 2012 Sept 2012 December 2012 500,000 1,500,000

@MimmingCodes @SRobTweets

App Engine

Popular

500 M

• Platform as a Service • Lots of built-in stuff • Auto scales

Monthly Requests

Page 26: jtong srob - Introduction to Google Cloud Platform...Dec 16, 2015  · SongPop 100 400,075 800,050 1,200,025 1,600,000 May 2012 July 2012 Sept 2012 December 2012 500,000 1,500,000

@MimmingCodes @SRobTweets

App Engine

Wikipedia

2.6 B• Platform as a Service • Lots of built-in stuff • Auto scales

Monthly Requests

Page 27: jtong srob - Introduction to Google Cloud Platform...Dec 16, 2015  · SongPop 100 400,075 800,050 1,200,025 1,600,000 May 2012 July 2012 Sept 2012 December 2012 500,000 1,500,000

@MimmingCodes @SRobTweets

App Engine

App Engine

• Platform as a Service • Lots of built-in stuff • Auto scales

Monthly Requests

Page 28: jtong srob - Introduction to Google Cloud Platform...Dec 16, 2015  · SongPop 100 400,075 800,050 1,200,025 1,600,000 May 2012 July 2012 Sept 2012 December 2012 500,000 1,500,000

@MimmingCodes @SRobTweets

App Engine28 B

• Platform as a Service • Lots of built-in stuff • Auto scales

Monthly Requests

App Engine

Page 29: jtong srob - Introduction to Google Cloud Platform...Dec 16, 2015  · SongPop 100 400,075 800,050 1,200,025 1,600,000 May 2012 July 2012 Sept 2012 December 2012 500,000 1,500,000

@MimmingCodes @SRobTweets

SongPop

• Casual Game • 6 Engineers

Page 30: jtong srob - Introduction to Google Cloud Platform...Dec 16, 2015  · SongPop 100 400,075 800,050 1,200,025 1,600,000 May 2012 July 2012 Sept 2012 December 2012 500,000 1,500,000

@MimmingCodes @SRobTweets

SongPop

100

400,075

800,050

1,200,025

1,600,000

May 2012 July 2012 Sept 2012 December 2012

500,000

1,500,000

100,000

500,000

100,000

Tweaked caching and data model

Adjusted Indices

Daily Active Users

Page 31: jtong srob - Introduction to Google Cloud Platform...Dec 16, 2015  · SongPop 100 400,075 800,050 1,200,025 1,600,000 May 2012 July 2012 Sept 2012 December 2012 500,000 1,500,000

@MimmingCodes @SRobTweets

Demo: App Engine Scaling

Page 32: jtong srob - Introduction to Google Cloud Platform...Dec 16, 2015  · SongPop 100 400,075 800,050 1,200,025 1,600,000 May 2012 July 2012 Sept 2012 December 2012 500,000 1,500,000

@MimmingCodes @SRobTweets

02 BigQuery

Page 33: jtong srob - Introduction to Google Cloud Platform...Dec 16, 2015  · SongPop 100 400,075 800,050 1,200,025 1,600,000 May 2012 July 2012 Sept 2012 December 2012 500,000 1,500,000

@MimmingCodes @SRobTweets

Big Query

• Scales flat into petabytes

• Use SQL Queries • REST, Web UI, ODBC • 1TB free each month

Page 34: jtong srob - Introduction to Google Cloud Platform...Dec 16, 2015  · SongPop 100 400,075 800,050 1,200,025 1,600,000 May 2012 July 2012 Sept 2012 December 2012 500,000 1,500,000

@MimmingCodes @SRobTweets

Demo: BigQuery

Page 35: jtong srob - Introduction to Google Cloud Platform...Dec 16, 2015  · SongPop 100 400,075 800,050 1,200,025 1,600,000 May 2012 July 2012 Sept 2012 December 2012 500,000 1,500,000

@MimmingCodes @SRobTweets

Count Shakespeare

SELECT count(word)FROM publicdata:samples.shakespeare

Page 36: jtong srob - Introduction to Google Cloud Platform...Dec 16, 2015  · SongPop 100 400,075 800,050 1,200,025 1,600,000 May 2012 July 2012 Sept 2012 December 2012 500,000 1,500,000

@MimmingCodes @SRobTweets

Count to a Million

SELECT sum(requests) as totalFROM [fh-bigquery:wikipedia.pagecounts_20151109_18]

Page 37: jtong srob - Introduction to Google Cloud Platform...Dec 16, 2015  · SongPop 100 400,075 800,050 1,200,025 1,600,000 May 2012 July 2012 Sept 2012 December 2012 500,000 1,500,000

@MimmingCodes @SRobTweets

Count to a Billion

SELECT sum(requests) as totalFROM [fh-bigquery:wikipedia.pagecounts_201505]

Page 38: jtong srob - Introduction to Google Cloud Platform...Dec 16, 2015  · SongPop 100 400,075 800,050 1,200,025 1,600,000 May 2012 July 2012 Sept 2012 December 2012 500,000 1,500,000

@MimmingCodes @SRobTweets

Count to a Trillion

SELECT SUM(requests) AS totalFROM TABLE_QUERY( [fh-bigquery:wikipedia], 'REGEXP_MATCH( table_id, r"pagecounts_2015[0-9]{2}$")')

Page 39: jtong srob - Introduction to Google Cloud Platform...Dec 16, 2015  · SongPop 100 400,075 800,050 1,200,025 1,600,000 May 2012 July 2012 Sept 2012 December 2012 500,000 1,500,000

@MimmingCodes @SRobTweets

Run a RegEx on a TrillionSELECT SUM(requests) AS totalFROM TABLE_QUERY( [fh-bigquery:wikipedia], 'REGEXP_MATCH( table_id, r"pagecounts_2015[0-9]{2}$")')WHERE (REGEXP_MATCH(title, '.*[dD]inosaur.*'))

Page 40: jtong srob - Introduction to Google Cloud Platform...Dec 16, 2015  · SongPop 100 400,075 800,050 1,200,025 1,600,000 May 2012 July 2012 Sept 2012 December 2012 500,000 1,500,000

@MimmingCodes @SRobTweets

03 Firebase

Page 41: jtong srob - Introduction to Google Cloud Platform...Dec 16, 2015  · SongPop 100 400,075 800,050 1,200,025 1,600,000 May 2012 July 2012 Sept 2012 December 2012 500,000 1,500,000

Realtime Data

Page 42: jtong srob - Introduction to Google Cloud Platform...Dec 16, 2015  · SongPop 100 400,075 800,050 1,200,025 1,600,000 May 2012 July 2012 Sept 2012 December 2012 500,000 1,500,000

@MimmingCodes @SRobTweets

Demo: Firebase

Page 43: jtong srob - Introduction to Google Cloud Platform...Dec 16, 2015  · SongPop 100 400,075 800,050 1,200,025 1,600,000 May 2012 July 2012 Sept 2012 December 2012 500,000 1,500,000

@MimmingCodes @SRobTweets

wherebus.firebaseapp.com

Where’s my Bus?

Page 44: jtong srob - Introduction to Google Cloud Platform...Dec 16, 2015  · SongPop 100 400,075 800,050 1,200,025 1,600,000 May 2012 July 2012 Sept 2012 December 2012 500,000 1,500,000

@MimmingCodes @SRobTweets

mmoasteroids.firebaseapp.com

Multiplayer Games

Page 45: jtong srob - Introduction to Google Cloud Platform...Dec 16, 2015  · SongPop 100 400,075 800,050 1,200,025 1,600,000 May 2012 July 2012 Sept 2012 December 2012 500,000 1,500,000

Client-side Development

Page 46: jtong srob - Introduction to Google Cloud Platform...Dec 16, 2015  · SongPop 100 400,075 800,050 1,200,025 1,600,000 May 2012 July 2012 Sept 2012 December 2012 500,000 1,500,000

@MimmingCodes @SRobTweets

Conclusions

Page 47: jtong srob - Introduction to Google Cloud Platform...Dec 16, 2015  · SongPop 100 400,075 800,050 1,200,025 1,600,000 May 2012 July 2012 Sept 2012 December 2012 500,000 1,500,000
Page 48: jtong srob - Introduction to Google Cloud Platform...Dec 16, 2015  · SongPop 100 400,075 800,050 1,200,025 1,600,000 May 2012 July 2012 Sept 2012 December 2012 500,000 1,500,000
Page 49: jtong srob - Introduction to Google Cloud Platform...Dec 16, 2015  · SongPop 100 400,075 800,050 1,200,025 1,600,000 May 2012 July 2012 Sept 2012 December 2012 500,000 1,500,000

Your App Here

Page 50: jtong srob - Introduction to Google Cloud Platform...Dec 16, 2015  · SongPop 100 400,075 800,050 1,200,025 1,600,000 May 2012 July 2012 Sept 2012 December 2012 500,000 1,500,000

@MimmingCodes @SRobTweets

Thank You!Contact us: @MimmingCodes @SRobTweets

Slides: mimming.com/presos/gcp-overview/ Free trial: cloud.google.com/free-trial