Intro to the Google Cloud for Developers
-
Upload
lynn-langit -
Category
Technology
-
view
4.652 -
download
2
description
Transcript of Intro to the Google Cloud for Developers
Introduction to the Google Cloud for Developers
@LynnLangit
Run your application on Google’s Infrastructure
Understanding Google’s Cloud Services
Finding the Google CloudDEMO
Working with the Web console – navigating & projects
DEMO
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
Google Cloud Starter Pack
Use code“gde-in”
Working with the Web Console for GCE –
Creating an instance
DEMO
Core Cloud Services
GCE Architecture
Console – GCE Instance Settings
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
Working with the Web Console for GAE –
Creating an instance
DEMO
Core Cloud Services
Sample GAE & CGE Architecture
About Data and GAE
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
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
Looking at the BigQuery console
Working with the Web Console for BigQuery – Running a Query
DEMO
Sample Google Cloud Solution Architecture - Services
Sample Google Cloud Solution Architecture - Hadoop
Programming– download the Google Cloud SDK
NOTE: “The Cloud SDK is currently a developer preview, and is under active development.”
Installing the Google Cloud SDK on Windows
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
Authentication
Using gcloud
DEMO
gcloud command line examples
$ gcloud auth login
$ gcloud config set project <new-project-id>
$ gcloud config unset project
$ gcloud config list
$ gcloud components list
Using gcutil with GCEDEMO
Using gcutil with GCE
Using gsutil with Google Cloud Storage
DEMO
Using gsutil with Google Cloud Storage
Using bq with Google BigQuery
DEMO
Using bq with Google Big Query
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"
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
Configure Eclipse for Google Cloud
• Get Cloud SDK• Get Eclipse Plug-in
Start Programming
Create a new web app project Add Google APIs Write Code Run locally Deploy (ex. push to GAE)
Adding the service SDK tools via Eclipse
Running Locally
Using the Java API with GCE
DEMO
Using the Java API with Big Query
DEMO
DEMOCreating and Testing ‘Hello Google Cloud’ on GAE in Eclipse
Hello (Google) World application
DEMODeploying to GAE and Using the Web Admin Console
Viewing Deployed Applications
• Create up to 10 applications• Click application to view detailed information about each
instance• Can try out ‘push-to-deploy’
Version Control
Updating current versions Using appcfg
Considering Data: Storage Options
Keep Coding – More Samples
googlecloudplatform.github.io
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
www.TeachingKidsProgramming.org• Free Courseware (Java, Small Basic or C# [on Pluralsight])
• Do a Recipe Teach a Kid (Ages 10 ++)
• recipes)
53
A big thank you to our sponsors
Gold Partners
Silver & Track Partners
Platinum Partners