Upgrade to Pro — share decks privately, control downloads, hide ads and more …

Deploy Go Apps with Google App Engine

Deploy Go Apps with Google App Engine

Presented at "An Evening with Go" hosted by Forward Technology on 20 March 2012

stephenlewis

March 23, 2012
Tweet

Other Decks in Technology

Transcript

  1. Deploying Go Apps with Google App Engine Stephen Lewis Code

    samples at https://github.com/stephenlewis/eveningwithgo
  2. What is App Engine? • Application hosting on Google infrastructure

    • Free to get started • Supports Python (since 2008), Java (2009) and Go (2011) • Comes with a suite of services (most importantly the Datastore) • Automatically manages resources to allow scaling according to demand
  3. How to get started 1. Download SDK 2. Write a

    Go app with net/http handlers 3. Write an app.yaml 4. Use appcfg.py to upload your code
  4. Services available on App Engine Datastore URL Fetch Memcache Users

    Blobstore Capabilities Channel Task Queues Mail (A few more with Python and Java...)
  5. The Datastore • A schemaless key-value store • Emphasis on

    read/query performance • Only answers queries using existing indexes • Offers transactions (within entity groups) • Eventually consistent queries • Data replicated across data centres
  6. Pricing • Compute-wise, you pay for instance hours ($0.08 per

    hour) • Datastore writes ($0.10 per 100k operations) • Datastore reads ($0.07 per 100k operations) • Also: outgoing bandwidth, storage, outgoing HTTP requests, emails sent, channels opened • Memcache is free (and use is encouraged!) • Minimum charge: $9 per month
  7. Questions? N.B. I made a mistake in an answer to

    one of the questions in the video: the first SLA trigger is 99.95%, not 100%