Predicting the Future

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


Marc Cohen
Cloud Fair 2012, Seattle
April 17, 2012

http://goo.gl/OcTLv

Google Trivia

http://goo.gl/OcTLv

About Me

http://goo.gl/OcTLv

Guided tour of several Google Cloud Services

http://goo.gl/OcTLv

Google Cloud Storage

Fast,
scalable,
secure,
reliable
storage:

not so easy.

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

http://goo.gl/OcTLv

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

http://goo.gl/OcTLv

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

http://goo.gl/OcTLv

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

http://goo.gl/OcTLv

Controlling access to your data

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

http://goo.gl/OcTLv

Google Cloud Storage Manager (Web UI)

http://goo.gl/OcTLv

gsutil (Command Line Utility)

http://goo.gl/OcTLv

Continuous Innovation: recently added features...

http://goo.gl/OcTLv

Google App Engine Integration

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

# Read data back out and display to web client.
with files.open(filename, 'r') as f:
  data = f.read()
self.response.out(data)

Challenge: find the OAuth logic. :)

More extensive example here. http://goo.gl/OcTLv

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;
  xmlHttp.open("GET", url, true);
  xmlHttp.send();
}
<a href="#" onclick="testGet();">Get content using XHR</a>
Get content using XHR

Cross-Origin Resource Sharing (CORS) Demo

http://goo.gl/OcTLv

Pricing

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. http://goo.gl/OcTLv

Formulating your storage strategy...

Some advice...

http://goo.gl/OcTLv

Google BigQuery

Map Reduce

http://goo.gl/OcTLv

Dremel

http://goo.gl/OcTLv

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

Blog post announcing BigQuery http://goo.gl/OcTLv

Why should you care?

http://goo.gl/OcTLv

How big is mobile going to be?


http://goo.gl/OcTLv

Example Use Cases

http://goo.gl/OcTLv

We've made it easy to try BigQuery

http://goo.gl/OcTLv

Scalability


http://goo.gl/OcTLv

Claritics: Massive Social Game Analysis


http://goo.gl/OcTLv

BigQuery Demo


http://goo.gl/OcTLv

Google Prediction API

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

http://goo.gl/OcTLv

Examples...

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

http://goo.gl/OcTLv

Example Use Cases

http://goo.gl/OcTLv

The Basics

Using the Prediction API


http://goo.gl/OcTLv

Prediction Demo (Kevin Cocco, sproutloop.com)

http://goo.gl/OcTLv

Google Refine

What is it?


Google Refine is a power tool for... http://goo.gl/OcTLv

A demo is worth 1K words...

http://goo.gl/OcTLv

Tying it all together...


http://goo.gl/OcTLv

Some of our customers...

http://goo.gl/OcTLv

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:

http://goo.gl/OcTLv

Image Credits