going "serverless" in 2016

22
Going “serverless” in 2016 A high level introduction to serverless architecture and the Serverless framework Twitter: @dkcwd

Upload: dave-clark

Post on 16-Apr-2017

263 views

Category:

Software


5 download

TRANSCRIPT

Page 1: Going "serverless" in 2016

Going“serverless”in2016Ahighlevelintroductiontoserverless architectureandtheServerless framework

Twitter:@dkcwd

Page 2: Going "serverless" in 2016

Firstalittlebackground….

Page 3: Going "serverless" in 2016

Serverless architecture isanapproach

A“serverless”applicationarchitecturedescribesanapproachwhereyoucanbuildapplicationswithoutdirectlymanagingserversorcontainers.

TheServerless framework isaprojectwhichhasbeencreatedtomakeiteasiertogetstartedwithdevelopingandmaintainingyourownapplicationswhichleverageaserverless approach.

Page 4: Going "serverless" in 2016

Noserversandconfigurationtomanage?

Whenyouadoptserverless programmingparadigmsyoumaynotneedtomaintainserversorcontainers.

Note: Thereisstillsomeworktodointermsofconfigurationandthat’soneofthereasonswhytheServerless frameworkexists.

Page 5: Going "serverless" in 2016

WhyshouldIcare?

Youmightreduceyourspendoninfrastructurebyavoidingchargesforidleservers(includingcontainerhosts)andincreasetherateatwhichyourteamcandevelop/deploynewfeatures.

Subjecttotheusagepolicyofagiven“FunctionasaService”provider,theremaybesignificantbenefitsforyouintermsofscalabilityinadditiontothepointsmentionedabove.

Page 6: Going "serverless" in 2016

Soyou’retalkingaboutAWSLambda?

AttheAWSSummitinSydney(April2016)therewasalotofexcitementsurroundingserverless programmingparadigmsusingAWSLambda.

Othervendorssupporting“FunctionasaService”offeringsinclude:§AzureFunctions§GoogleCloudFunctions§ IBMOpenWhisk

Page 7: Going "serverless" in 2016

Concernsaboutdevelopmenteffort

TheexamplesshownattheAWSSummitwereinterestinghowevertherewassomethingabouthavingtoleveragetheAWSinterfacethroughyourbrowserwhichfeltalittlebackwardsandoff-putting.

Serverless frameworkinterestedmebecauseitfeltlikeamissinglinktoallowrapiddevelopmentandmaintenanceofserverlessfunctionality.

Page 8: Going "serverless" in 2016

Concernsabout“vendorlock-in”?

WhiletheusecaseswerecompellingattheAWSSummitandtherewasplentyofbuzzaroundhowtogetstarted,therewereplentyofattendeesconcernedaboutthepotentialforissuesrelatedto“vendorlock-in”.

ThatisanotherreasonwhytheServerless frameworkinterestedme.

Page 9: Going "serverless" in 2016

IntroducingServerless framework

Page 10: Going "serverless" in 2016

IntroducingServerless framework

Theprojectexistsat:https://github.com/serverless/serverless

ThefirstcommitstotheprojectweremadeonApril21st,2015

Workingtowardsupportingmajorvendorsreducinglock-infear

Page 11: Going "serverless" in 2016

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

Canyoushowmeareferencediagram?

Yes!I’llshowyouoneforasinglepageJSapplicationonthenextslide.

The“serverless backend”isbasedonserverless-graphql

See:https://github.com/serverless/serverless-graphql

Page 13: Going "serverless" in 2016
Page 14: Going "serverless" in 2016

DoIhavetobuildanddeployafrontend?

No!Someofthestartedprojectshaveafrontendcomponentwhichyoucan deployifyouwish.

Youmaychoosetousetheframeworkjusttofocusonbackendcomponents.

Page 15: Going "serverless" in 2016

Whatistheworkflowlike?

§ Vendorconfigurationbeforeanythingelse§ InitialprojectsetupviaCLI§ Development§ Localtesting§ DeploymentofendpointsandfunctionsviaCLI§ Rinse&Repeat

Page 16: Going "serverless" in 2016

Vendorconfiguration

AssumingyoustartoutwithAWS….

MakesureyouhaveaAWSaccountandcreateanIAMuserforworkingwithyourserverless projectsviatheServerless framework.

YouneedyourAccessKeyIDandSecretAccessKeyfortheIAMuser.

Page 17: Going "serverless" in 2016

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

Atiponceyou’reupandrunning

Ifyoudon’talready,considerusingatoollikePostmantocreatesometestsforyourAPIendpoints.

Itcanmakeiteasytocreaterequestcollectionsandcaptureexampleresponsesforuseduringdevelopment.Ifusedeffectivelyitcanbealeveragedaspartofaleanintegrationtestsuite.

Page 19: Going "serverless" in 2016

CreaterequestcollectionswithPostman

See:https://www.getpostman.com

Page 20: Going "serverless" in 2016

Fromhere

RememberServerless frameworkisjustoneofmanyprojectsthatareevolving.

WithServerless frameworkyoucanrunapplicationslocallywithoutusingAWSifyouwanttoexperimentalittlemorebeforedeploying.

SeethepluginssectionontheServerless frameworkREADME.md

https://github.com/serverless/serverless#plugins

Page 21: Going "serverless" in 2016

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

Enjoyandsharewhatyoudo….

I’monTwitter:@dkcwdLinkedIn:https://au.linkedin.com/in/daveclarkprofile