Getting Started with Serverless Architectures - August 2016 Monthly Webinar Series
Going "serverless" in 2016
-
Upload
dave-clark -
Category
Software
-
view
263 -
download
5
Transcript of Going "serverless" in 2016
![Page 1: Going "serverless" in 2016](https://reader031.fdocuments.us/reader031/viewer/2022022414/5872e8081a28abfa548b660b/html5/thumbnails/1.jpg)
Going“serverless”in2016Ahighlevelintroductiontoserverless architectureandtheServerless framework
Twitter:@dkcwd
![Page 2: Going "serverless" in 2016](https://reader031.fdocuments.us/reader031/viewer/2022022414/5872e8081a28abfa548b660b/html5/thumbnails/2.jpg)
Firstalittlebackground….
![Page 3: Going "serverless" in 2016](https://reader031.fdocuments.us/reader031/viewer/2022022414/5872e8081a28abfa548b660b/html5/thumbnails/3.jpg)
Serverless architecture isanapproach
A“serverless”applicationarchitecturedescribesanapproachwhereyoucanbuildapplicationswithoutdirectlymanagingserversorcontainers.
TheServerless framework isaprojectwhichhasbeencreatedtomakeiteasiertogetstartedwithdevelopingandmaintainingyourownapplicationswhichleverageaserverless approach.
![Page 4: Going "serverless" in 2016](https://reader031.fdocuments.us/reader031/viewer/2022022414/5872e8081a28abfa548b660b/html5/thumbnails/4.jpg)
Noserversandconfigurationtomanage?
Whenyouadoptserverless programmingparadigmsyoumaynotneedtomaintainserversorcontainers.
Note: Thereisstillsomeworktodointermsofconfigurationandthat’soneofthereasonswhytheServerless frameworkexists.
![Page 5: Going "serverless" in 2016](https://reader031.fdocuments.us/reader031/viewer/2022022414/5872e8081a28abfa548b660b/html5/thumbnails/5.jpg)
WhyshouldIcare?
Youmightreduceyourspendoninfrastructurebyavoidingchargesforidleservers(includingcontainerhosts)andincreasetherateatwhichyourteamcandevelop/deploynewfeatures.
Subjecttotheusagepolicyofagiven“FunctionasaService”provider,theremaybesignificantbenefitsforyouintermsofscalabilityinadditiontothepointsmentionedabove.
![Page 6: Going "serverless" in 2016](https://reader031.fdocuments.us/reader031/viewer/2022022414/5872e8081a28abfa548b660b/html5/thumbnails/6.jpg)
Soyou’retalkingaboutAWSLambda?
AttheAWSSummitinSydney(April2016)therewasalotofexcitementsurroundingserverless programmingparadigmsusingAWSLambda.
Othervendorssupporting“FunctionasaService”offeringsinclude:§AzureFunctions§GoogleCloudFunctions§ IBMOpenWhisk
![Page 7: Going "serverless" in 2016](https://reader031.fdocuments.us/reader031/viewer/2022022414/5872e8081a28abfa548b660b/html5/thumbnails/7.jpg)
Concernsaboutdevelopmenteffort
TheexamplesshownattheAWSSummitwereinterestinghowevertherewassomethingabouthavingtoleveragetheAWSinterfacethroughyourbrowserwhichfeltalittlebackwardsandoff-putting.
Serverless frameworkinterestedmebecauseitfeltlikeamissinglinktoallowrapiddevelopmentandmaintenanceofserverlessfunctionality.
![Page 8: Going "serverless" in 2016](https://reader031.fdocuments.us/reader031/viewer/2022022414/5872e8081a28abfa548b660b/html5/thumbnails/8.jpg)
Concernsabout“vendorlock-in”?
WhiletheusecaseswerecompellingattheAWSSummitandtherewasplentyofbuzzaroundhowtogetstarted,therewereplentyofattendeesconcernedaboutthepotentialforissuesrelatedto“vendorlock-in”.
ThatisanotherreasonwhytheServerless frameworkinterestedme.
![Page 9: Going "serverless" in 2016](https://reader031.fdocuments.us/reader031/viewer/2022022414/5872e8081a28abfa548b660b/html5/thumbnails/9.jpg)
IntroducingServerless framework
![Page 10: Going "serverless" in 2016](https://reader031.fdocuments.us/reader031/viewer/2022022414/5872e8081a28abfa548b660b/html5/thumbnails/10.jpg)
IntroducingServerless framework
Theprojectexistsat:https://github.com/serverless/serverless
ThefirstcommitstotheprojectweremadeonApril21st,2015
Workingtowardsupportingmajorvendorsreducinglock-infear
![Page 11: Going "serverless" in 2016](https://reader031.fdocuments.us/reader031/viewer/2022022414/5872e8081a28abfa548b660b/html5/thumbnails/11.jpg)
Arethereexampleprojects?
Yes!Youcanfindoutmoreherehttps://github.com/serverless
Inparticularcheckout:serverless-graphql-blog
Note:ElliotSpira createdanexcellenttutorialoncreatingaHipChat Connector
Checkitouthere:https://bitbucket.org/gorillastack/serverless-hipchat-connect
![Page 12: Going "serverless" in 2016](https://reader031.fdocuments.us/reader031/viewer/2022022414/5872e8081a28abfa548b660b/html5/thumbnails/12.jpg)
Canyoushowmeareferencediagram?
Yes!I’llshowyouoneforasinglepageJSapplicationonthenextslide.
The“serverless backend”isbasedonserverless-graphql
See:https://github.com/serverless/serverless-graphql
![Page 13: Going "serverless" in 2016](https://reader031.fdocuments.us/reader031/viewer/2022022414/5872e8081a28abfa548b660b/html5/thumbnails/13.jpg)
![Page 14: Going "serverless" in 2016](https://reader031.fdocuments.us/reader031/viewer/2022022414/5872e8081a28abfa548b660b/html5/thumbnails/14.jpg)
DoIhavetobuildanddeployafrontend?
No!Someofthestartedprojectshaveafrontendcomponentwhichyoucan deployifyouwish.
Youmaychoosetousetheframeworkjusttofocusonbackendcomponents.
![Page 15: Going "serverless" in 2016](https://reader031.fdocuments.us/reader031/viewer/2022022414/5872e8081a28abfa548b660b/html5/thumbnails/15.jpg)
Whatistheworkflowlike?
§ Vendorconfigurationbeforeanythingelse§ InitialprojectsetupviaCLI§ Development§ Localtesting§ DeploymentofendpointsandfunctionsviaCLI§ Rinse&Repeat
![Page 16: Going "serverless" in 2016](https://reader031.fdocuments.us/reader031/viewer/2022022414/5872e8081a28abfa548b660b/html5/thumbnails/16.jpg)
Vendorconfiguration
AssumingyoustartoutwithAWS….
MakesureyouhaveaAWSaccountandcreateanIAMuserforworkingwithyourserverless projectsviatheServerless framework.
YouneedyourAccessKeyIDandSecretAccessKeyfortheIAMuser.
![Page 17: Going "serverless" in 2016](https://reader031.fdocuments.us/reader031/viewer/2022022414/5872e8081a28abfa548b660b/html5/thumbnails/17.jpg)
HmmmIhaven’tdonethatbefore….um
Don’tworry,hereisanawesometutorialtohelpyougetstartedwithallaspectsofworkingwiththeServerless framework.
Getinthereandhaveago.Beforeyouknowityou’llbeworkingyourwayaroundthecommandlineinterfacedeployingendpointslikeapro!
Checkout:http://justserverless.com/blog/your-first-serverless-application/
![Page 18: Going "serverless" in 2016](https://reader031.fdocuments.us/reader031/viewer/2022022414/5872e8081a28abfa548b660b/html5/thumbnails/18.jpg)
Atiponceyou’reupandrunning
Ifyoudon’talready,considerusingatoollikePostmantocreatesometestsforyourAPIendpoints.
Itcanmakeiteasytocreaterequestcollectionsandcaptureexampleresponsesforuseduringdevelopment.Ifusedeffectivelyitcanbealeveragedaspartofaleanintegrationtestsuite.
![Page 19: Going "serverless" in 2016](https://reader031.fdocuments.us/reader031/viewer/2022022414/5872e8081a28abfa548b660b/html5/thumbnails/19.jpg)
CreaterequestcollectionswithPostman
See:https://www.getpostman.com
![Page 20: Going "serverless" in 2016](https://reader031.fdocuments.us/reader031/viewer/2022022414/5872e8081a28abfa548b660b/html5/thumbnails/20.jpg)
Fromhere
RememberServerless frameworkisjustoneofmanyprojectsthatareevolving.
WithServerless frameworkyoucanrunapplicationslocallywithoutusingAWSifyouwanttoexperimentalittlemorebeforedeploying.
SeethepluginssectionontheServerless frameworkREADME.md
https://github.com/serverless/serverless#plugins
![Page 21: Going "serverless" in 2016](https://reader031.fdocuments.us/reader031/viewer/2022022414/5872e8081a28abfa548b660b/html5/thumbnails/21.jpg)
Fromhere
CheckouttheSydneyServerless Meetup Group:
http://www.meetup.com/Sydney-Serverless-Meetup-Group/
Helpbuildthecommunity,ChrisDorrington startedaSlackchannelrecentlysocomejoinusathttps://letsgoserverless.stamplayapp.com/
Askquestions,meetothersandshareyourexperiences.
![Page 22: Going "serverless" in 2016](https://reader031.fdocuments.us/reader031/viewer/2022022414/5872e8081a28abfa548b660b/html5/thumbnails/22.jpg)
Enjoyandsharewhatyoudo….
I’monTwitter:@dkcwdLinkedIn:https://au.linkedin.com/in/daveclarkprofile