aws lambda in practice

Download AWS Lambda in Practice

If you can't read please download the document

Post on 05-Apr-2017

275 views

Category:

Technology

0 download

Embed Size (px)

TRANSCRIPT

in Practice or how i learned to stop worrying and love not having servers

@tobyhedeToby Hede

OH HAI

100%Technology LeadDigital Transformation OfficeTeh GOvernment************

BackgroundWhat is it?Why ?

All-of-Gov Performance DashboardMeasure the performance of government services against metrics defined in the Digital Service Standard.

All-of-Gov Performance DashboardMeasure the performance of government services against metrics defined in the Digital Service Standard.

Drive the continuous improvement of government services for users and increase government transparency.

DataMultiple data sourcesDisparate data sourcesWe dont actually know what they all are yetWe dont know how much of it we will have

Obligatory GIF

DataConnect all the moving piecesTransform data from many different sourcesMove fastAdapt quickly

ArchitectureHow are we using ?

CaveatsWe are just finishing AlphaProduction this week, pending approvalsGoing into Beta phaseExpanding our usage of

YOUR SHIPMENT OF CLOUD HAS ARRIVED

Serverless Framework

Configuration

Environments

Deployment

Random ThoughtsVendor Lock InDependenciesSecurityTestingWhat about other Amazon products and/or servicesZero infrastructure and a surprising amount of configuration

Vendor Lock InMeh

Businesswoman with question marks behind her, hard decision

What about vendor lock-in!!!!?

Convert to an express function

An aside

Security and IAMAmazonAPIGatewayAdministratorAWSLambdaFullAccessAWSLambdaVPCAccessExecutionRoleec2:DescribeSecurityGroupsec2:DescribeSubnetsBuilt-in Serverless Policy

DependenciesRequires some planningNest packages with npmFavour reimplementation of simple helpers rather then pull in a dependency

TestingUnit test functionsIf testing a function is hard, you are doing it wrongava is goodCan run Serverless locally using a plugin

What about other AWS productsPossible for future developmentWeve played it safe on the database tierSome limitations to what Gov can supportContenders:KinesisElastic search

ConfigurationServerless means replying infrastructure with configurationDont underestimate the complexity

THE END

100%@tobyhedetobyhede.com************