Predicting the Future

and other creative ways to use Google’s cloud computing service

Marc Cohen
Cloud Fair 2012, Seattle
April 17, 2012

Google Trivia

About Me

Guided tour of several Google Cloud Services

Google Cloud Storage


not so easy.

Google faces some of the world's most demanding storage challenges:

We've met those challenges by inventing internal storage solutions that are:

Now you can take advantage of the same technology with Google Cloud Storage

Google has data centers all over the world to serve data, providing fast response times.

Controlling access to your data

Google Cloud Storage provides powerful and flexible sharing primitives based on Access Control Lists (ACLs).

Google Cloud Storage Manager (Web UI)

gsutil (Command Line Utility)

Continuous Innovation: recently added features...

Google App Engine Integration

# Create an object and write some data.
path ='/gs/my_bucket/my_object')
with, 'a') as f:
  f.write('Hello World!\n')

# Read data back out and display to web client.
with, 'r') as f:
  data =

Challenge: find the OAuth logic. :)

More extensive example here.

Detour: XMLHttpRequest (XHR)

function testGet() {
  var callback = function() {
    if ((this.readyState == 4) && (this.status == '200')) {
      alert("received: " + this.responseText);
  xmlHttp = new XMLHttpRequest();
  var url = "/marc-pres/CloudFair2012/test.txt";
  xmlHttp.onreadystatechange = callback;"GET", url, true);
<a href="#" onclick="testGet();">Get content using XHR</a>
Get content using XHR

Cross-Origin Resource Sharing (CORS) Demo


Monthly StoragePrice (per GB)
First 0 - 1TB$0.12
Next 9TB$0.105
Next 90TB$0.095
Next 400TB$0.085
Additional StorageContact Us

Additional charges apply for network/request usage. See our Pricing and Support page for further details.

Formulating your storage strategy...

Some advice...

Google BigQuery

Map Reduce


Now you can take advantage of the same technology with Google BigQuery

Blog post announcing BigQuery

Why should you care?

How big is mobile going to be?

Example Use Cases

We've made it easy to try BigQuery


Claritics: Massive Social Game Analysis

BigQuery Demo

Google Prediction API

Google routinely uses internally developed machine learning technology to solve challenging problems at scale


Now you can take advantage of the same technology with the Google Prediction API

Example Use Cases

The Basics

Using the Prediction API

Prediction Demo (Kevin Cocco,

Google Refine

What is it?

Google Refine is a power tool for...

A demo is worth 1K words...

Tying it all together...

Some of our customers...

If you remember only one thing from this talk...

Google manages many petabytes of data on a planet-wide scale, securely, with sub-second response times, for hundreds of millions of users every day.

Focus on your customers and what you are good at and take advantage of Google's world class cloud computing services (rather than trying to build your own).

Choose a partner that does these sort of things, routinely, every day:

Image Credits