CS-6030 Cloud compung Google App engine · CS-6030 Cloud compung content • Categories of cloud...
Transcript of CS-6030 Cloud compung Google App engine · CS-6030 Cloud compung content • Categories of cloud...
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
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.
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.
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.
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