intro to the google cloud for developers

53
Introduction to the Google Cloud for Developers @LynnLangit

Upload: lynn-langit

Post on 14-May-2015

4.649 views

Category:

Technology


2 download

DESCRIPTION

presentation from Techorama -- Google Cloud, Google Compute Engine, Google App Engine, Big Query

TRANSCRIPT

Page 1: Intro to the Google Cloud for Developers

Introduction to the Google Cloud for Developers

@LynnLangit

Page 2: Intro to the Google Cloud for Developers

Run your application on Google’s Infrastructure

Page 3: Intro to the Google Cloud for Developers

Understanding Google’s Cloud Services

Page 4: Intro to the Google Cloud for Developers

Finding the Google CloudDEMO

Page 5: Intro to the Google Cloud for Developers

Working with the Web console – navigating & projects

DEMO

Page 6: Intro to the Google Cloud for Developers

About Billing

Information about free usage tier quotas Scalable storage via

many choices Monitoring Usage

Via Service Dashboards

Via APIs (programmable alerts / alarms)

How Scaling Works Default is auto-scale

Page 7: Intro to the Google Cloud for Developers

Google Cloud Starter Pack

Use code“gde-in”

Page 8: Intro to the Google Cloud for Developers

Working with the Web Console for GCE –

Creating an instance

DEMO

Page 9: Intro to the Google Cloud for Developers

Core Cloud Services

Page 10: Intro to the Google Cloud for Developers

GCE Architecture

Page 11: Intro to the Google Cloud for Developers

Console – GCE Instance Settings

Page 12: Intro to the Google Cloud for Developers

Getting started with GAE

Use the API Console (browser

tool)

Setup a NEW Google Cloud

Project

Create a GAE project using

the GAE console

Generates a REST request

Add other Google Cloud services• Google Cloud

Storage• Google App Engine• BigQuery• Other APIs

Page 13: Intro to the Google Cloud for Developers

Working with the Web Console for GAE –

Creating an instance

DEMO

Page 14: Intro to the Google Cloud for Developers

Core Cloud Services

Page 15: Intro to the Google Cloud for Developers

Sample GAE & CGE Architecture

Page 16: Intro to the Google Cloud for Developers

About Data and GAE

Page 17: Intro to the Google Cloud for Developers

About Cloud Endpoints for GAE Services

Allows clients (such as iOS, Android, Chrome) to access your GAE services

Easy to add (via attribute decorations or method annotations) Makes internal Google API common services libraries for endpoints

available Create RESTful services from your GAE & make them accessible to iOS, Android

and JavaScript clients Integrated with tooling (admin console API Explorer) Built-in critical infrastructure includes denial-of-service protection, OAuth 2.0

support and client key management

Page 18: Intro to the Google Cloud for Developers

Another Service Example – Big Query

• Queries massive amounts of data • No indexes needed• Upload source data to

Google Cloud storage• SQL-like query language

Query as a Service

• REST API• Tip: use LIMIT keyword

when testing

Web-console for testing • Log analysis

• Sensor output streams• Mobile game

instrumentation & optimization

Use cases

Page 19: Intro to the Google Cloud for Developers

Looking at the BigQuery console

Page 20: Intro to the Google Cloud for Developers

Working with the Web Console for BigQuery – Running a Query

DEMO

Page 21: Intro to the Google Cloud for Developers

Sample Google Cloud Solution Architecture - Services

Page 22: Intro to the Google Cloud for Developers

Sample Google Cloud Solution Architecture - Hadoop

Page 23: Intro to the Google Cloud for Developers

Programming– download the Google Cloud SDK

NOTE: “The Cloud SDK is currently a developer preview, and is under active development.”

Page 24: Intro to the Google Cloud for Developers

Installing the Google Cloud SDK on Windows

Page 25: Intro to the Google Cloud for Developers

What are the command line tools?

gcloud - provides authentication, configuration, and component management (future) “more cloud developer workflow utilities” for various Google Cloud Services, also has an interactive mode (Python scripting)

gcd – to manage the Google Cloud datastore gcloud sql – to manage Google Cloud SQL instances gcutil – to manage Google Compute Engine gsutil – to manage Google Cloud storage appcfg – to deploy to Google App Engine bq – to manage Google BigQuery

Page 26: Intro to the Google Cloud for Developers

Authentication

Page 27: Intro to the Google Cloud for Developers

Using gcloud

DEMO

Page 28: Intro to the Google Cloud for Developers

gcloud command line examples

$ gcloud auth login

$ gcloud config set project <new-project-id>

$ gcloud config unset project

$ gcloud config list

$ gcloud components list

Page 29: Intro to the Google Cloud for Developers

Using gcutil with GCEDEMO

Page 30: Intro to the Google Cloud for Developers

Using gcutil with GCE

Page 31: Intro to the Google Cloud for Developers

Using gsutil with Google Cloud Storage

DEMO

Page 32: Intro to the Google Cloud for Developers

Using gsutil with Google Cloud Storage

Page 33: Intro to the Google Cloud for Developers

Using bq with Google BigQuery

DEMO

Page 34: Intro to the Google Cloud for Developers

Using bq with Google Big Query

Page 35: Intro to the Google Cloud for Developers

Command line examples

$ gcutil addinstance my-first-instance --wait_until_running

$ gcloud sql instances create your-instance-name

$ bq query "SELECT name,count FROM mydataset.babynames WHERE gender = 'M' ORDER BY count DESC LIMIT 6"

Page 36: Intro to the Google Cloud for Developers

Prepare to Program on the Google Cloud

• GAE, GCE, etc…• Download & InstallGoogle Cloud SDK

• Java (Eclipse)Google Cloud plug-in for IDE

• GWT tools (optional)• Android tools (optional)

Other Google Web API tools

• MySQL ClientOther Tools

Page 37: Intro to the Google Cloud for Developers

Configure Eclipse for Google Cloud

• Get Cloud SDK• Get Eclipse Plug-in

Page 38: Intro to the Google Cloud for Developers

Start Programming

Create a new web app project Add Google APIs Write Code Run locally Deploy (ex. push to GAE)

Page 39: Intro to the Google Cloud for Developers

Adding the service SDK tools via Eclipse

Page 40: Intro to the Google Cloud for Developers

Running Locally

Page 41: Intro to the Google Cloud for Developers

Using the Java API with GCE

DEMO

Page 42: Intro to the Google Cloud for Developers

Using the Java API with Big Query

DEMO

Page 43: Intro to the Google Cloud for Developers

DEMOCreating and Testing ‘Hello Google Cloud’ on GAE in Eclipse

Page 44: Intro to the Google Cloud for Developers

Hello (Google) World application

Page 45: Intro to the Google Cloud for Developers

DEMODeploying to GAE and Using the Web Admin Console

Page 46: Intro to the Google Cloud for Developers

Viewing Deployed Applications

• Create up to 10 applications• Click application to view detailed information about each

instance• Can try out ‘push-to-deploy’

Page 47: Intro to the Google Cloud for Developers

Version Control

Updating current versions Using appcfg

Page 48: Intro to the Google Cloud for Developers

Considering Data: Storage Options

Page 49: Intro to the Google Cloud for Developers
Page 50: Intro to the Google Cloud for Developers

Keep Coding – More Samples

googlecloudplatform.github.io

Page 51: Intro to the Google Cloud for Developers

Learn More – YouTube Google Cloud Series

Is a series of screencasts including demos and code samples• Designed for Java

developers• Shows how to work

with Google Cloud Services

Delivered in Six Parts• Part One – What is the

Google Cloud?• Part Two – Using the

web consoles• Part Three –

Understanding billing• Part Four – Using

command line • Part Five –

Programming APIs with Java• Part Six – Learning

More / Next steps

Page 52: Intro to the Google Cloud for Developers

www.TeachingKidsProgramming.org• Free Courseware (Java, Small Basic or C# [on Pluralsight])

• Do a Recipe Teach a Kid (Ages 10 ++)

• recipes)

Page 53: Intro to the Google Cloud for Developers

53

A big thank you to our sponsors

Gold Partners

Silver & Track Partners

Platinum Partners