CS-6030 Cloud compung Google App engine · CS-6030 Cloud compung content • Categories of cloud...

5
8/10/17 1 Google App engine Sepideh Mohammadi Summer II 2017 Western Michigan University CS-6030 Cloud compu;ng content Categories of cloud compu;ng Google cloud plaBorm Google App Engine Storage technologies Datastore vs. tradi;onal database scaling Service comparison Summary References Deploy Java example on Google App Engine Categories of Cloud Compu6ng

Transcript of CS-6030 Cloud compung Google App engine · CS-6030 Cloud compung content • Categories of cloud...

Page 1: CS-6030 Cloud compung Google App engine · CS-6030 Cloud compung content • Categories of cloud compu;ng • Google cloud plaorm • Google App Engine • Storage technologies •

8/10/17

1

Google App engine

SepidehMohammadi

SummerII2017

WesternMichiganUniversity

CS-6030Cloudcompu;ng

content

•  Categoriesofcloudcompu;ng•  GooglecloudplaBorm•  GoogleAppEngine•  Storagetechnologies•  Datastorevs.tradi;onaldatabase•  scaling•  Servicecomparison•  Summary•  References•  DeployJavaexampleonGoogleAppEngine

Categories of Cloud Compu6ng

Page 2: CS-6030 Cloud compung Google App engine · CS-6030 Cloud compung content • Categories of cloud compu;ng • Google cloud plaorm • Google App Engine • Storage technologies •

8/10/17

2

Google Cloud pla7orm

App Engine

• pla$ormasaservice(PaaS)• Resourcemanagement• Automa;callyscales• Handlingsecurity

App Engine Cont. •  StandardEnvironment

•  basedoncontainerinstancesrunningonGoogle'sinfrastructure

•  Containersarepreconfiguredwithoneofseveralavailablerun;mes:•  Python,Java,Go,PHP

•  Persistentstoragewithqueries,sor;ng,andtransac;ons.•  Automa;cscalingandloadbalancing.•  Asynchronoustaskqueuesforperformingworkoutsidethescopeofarequest.

•  Scheduledtasksfortriggeringeventsatspecified;mesorregularintervals.

•  Integra;onwithotherGooglecloudservicesandAPIs.•  Serviceintegrated:

•  Datastore•  Memcache•  TaskQueue•  Cron•  Search

•  FlexibleEnvironment•  Na;vesupportfor

•  Java,Python,Go,Node.js•  Customizerun;me

•  HTTPsupportrun;me•  Performance

•  specifyhowmuchCPUandmemoryeachinstanceofyourapplica;onneedsandtheflexibleenvironmentwillprovisionthenecessaryinfrastructureforyou.

Page 3: CS-6030 Cloud compung Google App engine · CS-6030 Cloud compung content • Categories of cloud compu;ng • Google cloud plaorm • Google App Engine • Storage technologies •

8/10/17

3

Storage technologies

• GoogleCloudSQL•  isyourSQLdatabase,suppor;ngeitherMySQLorPostgreSQL.

• AppEngineDatastore•  isyourschemaless,NoSQLdatastore.•  providingrobust,scalablestorageforyourwebapplica;on•  Freeupto:

•  1GBstorage•  50,000reads,20,000writes,20,000delete

• GoogleCloudStorage•  providesspaceforyourlargefiles.

Datastore vs. tradi6onal databases

Instance Scaling

• ManualScaling•  Aservicewithmanualscalingrunscon;nuously,allowingyoutoperformcomplexini;aliza;onandrelyonthestateofitsmemoryover;me.

• BasicScaling•  Aservicewithbasicscalingwillcreateaninstancewhentheapplica;onreceivesarequest.Theinstancewillbeturneddownwhentheappbecomesidle.Basicscalingisidealforworkthatisintermicentordrivenbyuserac;vity.

• Automa;cScaling•  Automa;cscalingisbasedonrequestrate,responselatencies,andotherapplica;onmetrics.

Page 4: CS-6030 Cloud compung Google App engine · CS-6030 Cloud compung content • Categories of cloud compu;ng • Google cloud plaorm • Google App Engine • Storage technologies •

8/10/17

4

AWS vs. Google Cloud Pla7orm side-by-side comparison of the various services available on AWS and Cloud Pla7orm

AWS vs. Google Cloud Pla7orm cont.

BuildyourappontopoftheAppEnginestandardenvironmentrun;meswithsupportedlanguages,including:Python2.7,Java7,PHP,andGo.

Easilyusethestoragetechnologies

BuildyourappontopofTheAppEngineflexibleenvironmentrun;meswithsupportedlanguages,including:Python2.7/3.4,Java8,Go,Node.js,andRuby

UsetheAppEngineSDKtodevelopandtestonyourlocalmachine.

2 41 3 5 6

WhenyoubuildyourapponAppEngine,youcan

LetGooglemanageapphos;ng,scaling,monitoringandinfrastructureforyou

7

Usebuilt-in,managedservicesforac;vi;essuchasemailandusermanagement.

UseCloudEndpointsinthestandardenvironmenttogenerateAPIsandclientlibraries,thatyoucanusetosimplifydataaccessfromotherapplica;ons.

Page 5: CS-6030 Cloud compung Google App engine · CS-6030 Cloud compung content • Categories of cloud compu;ng • Google cloud plaorm • Google App Engine • Storage technologies •

8/10/17

5

UseCloudSecurityScannertoiden;fysecurityvulnerabili;esasacomplementtoyourexis;ngsecuredesignanddevelopmentprocesses

Forthestandardenvironment,runyourappfromtheCentralUSorWesternEuroperegions.

DeployyourappbyusingtheAppEnginelauncherGUIapplica;ononMacOSXorMicrosoiWindowsorbyusingthecommandline

8 9 10

Cont.

References:

• GoogleCloudPlaBormDocumenta;on•  hcps://cloud.google.com/docs/

• GoogleAppEngineDocumenta;on•  hcps://cloud.google.com/appengine/docs/

• ProgrammingGoogleAppEngine:•  hcp://shop.oreilly.com/product/9780596522735.do

• DevelopadeepunderstandingofComputeEngine•  hcps://cloud.google.com/compute/docs/concepts

• AppEnginePricing•  hcps://cloud.google.com/appengine/pricing

Thank you!

let’s deploy Java example on Google App Engine