orchestrating aws lambda with step functions · what is aws lambda serverless as far as you are...
TRANSCRIPT
![Page 1: Orchestrating AWS Lambda with Step Functions · What is AWS Lambda Serverless As far as you are concerned Don’t pay for idle Scale with ease FaaS Node 8.10 (java, go, python, c#)](https://reader031.vdocuments.us/reader031/viewer/2022041418/5e1d4de8fc73f06e9828567e/html5/thumbnails/1.jpg)
Orchestrating Lambda with Step Functions
![Page 2: Orchestrating AWS Lambda with Step Functions · What is AWS Lambda Serverless As far as you are concerned Don’t pay for idle Scale with ease FaaS Node 8.10 (java, go, python, c#)](https://reader031.vdocuments.us/reader031/viewer/2022041418/5e1d4de8fc73f06e9828567e/html5/thumbnails/2.jpg)
@technovangelist
![Page 3: Orchestrating AWS Lambda with Step Functions · What is AWS Lambda Serverless As far as you are concerned Don’t pay for idle Scale with ease FaaS Node 8.10 (java, go, python, c#)](https://reader031.vdocuments.us/reader031/viewer/2022041418/5e1d4de8fc73f06e9828567e/html5/thumbnails/3.jpg)
@technovangelist
![Page 4: Orchestrating AWS Lambda with Step Functions · What is AWS Lambda Serverless As far as you are concerned Don’t pay for idle Scale with ease FaaS Node 8.10 (java, go, python, c#)](https://reader031.vdocuments.us/reader031/viewer/2022041418/5e1d4de8fc73f06e9828567e/html5/thumbnails/4.jpg)
![Page 5: Orchestrating AWS Lambda with Step Functions · What is AWS Lambda Serverless As far as you are concerned Don’t pay for idle Scale with ease FaaS Node 8.10 (java, go, python, c#)](https://reader031.vdocuments.us/reader031/viewer/2022041418/5e1d4de8fc73f06e9828567e/html5/thumbnails/5.jpg)
![Page 6: Orchestrating AWS Lambda with Step Functions · What is AWS Lambda Serverless As far as you are concerned Don’t pay for idle Scale with ease FaaS Node 8.10 (java, go, python, c#)](https://reader031.vdocuments.us/reader031/viewer/2022041418/5e1d4de8fc73f06e9828567e/html5/thumbnails/6.jpg)
@technovangelist
![Page 7: Orchestrating AWS Lambda with Step Functions · What is AWS Lambda Serverless As far as you are concerned Don’t pay for idle Scale with ease FaaS Node 8.10 (java, go, python, c#)](https://reader031.vdocuments.us/reader031/viewer/2022041418/5e1d4de8fc73f06e9828567e/html5/thumbnails/7.jpg)
@technovangelist
Who am I
Matt Williams
Evangelist at Datadog@[email protected]
Organizer of DevOps Days Boston 2017 & 2018
![Page 8: Orchestrating AWS Lambda with Step Functions · What is AWS Lambda Serverless As far as you are concerned Don’t pay for idle Scale with ease FaaS Node 8.10 (java, go, python, c#)](https://reader031.vdocuments.us/reader031/viewer/2022041418/5e1d4de8fc73f06e9828567e/html5/thumbnails/8.jpg)
@technovangelist
Who is Datadog
SaaS-based Monitoring & Analytics Infrastructure, APM, LogsOpen Source AgentTrillions of data
points per day
We are hiring!!
![Page 9: Orchestrating AWS Lambda with Step Functions · What is AWS Lambda Serverless As far as you are concerned Don’t pay for idle Scale with ease FaaS Node 8.10 (java, go, python, c#)](https://reader031.vdocuments.us/reader031/viewer/2022041418/5e1d4de8fc73f06e9828567e/html5/thumbnails/9.jpg)
© 2017, Amazon Web Services, Inc. or its Affiliates. All rights reserved.
I l ike to talk about Serverless…
![Page 10: Orchestrating AWS Lambda with Step Functions · What is AWS Lambda Serverless As far as you are concerned Don’t pay for idle Scale with ease FaaS Node 8.10 (java, go, python, c#)](https://reader031.vdocuments.us/reader031/viewer/2022041418/5e1d4de8fc73f06e9828567e/html5/thumbnails/10.jpg)
@technovangelist
What is AWS Lambda
ServerlessAs far as you are concernedDon’t pay for idleScale with ease
FaaSNode 8.10 (java, go, python, c#)
Trigger-based
![Page 11: Orchestrating AWS Lambda with Step Functions · What is AWS Lambda Serverless As far as you are concerned Don’t pay for idle Scale with ease FaaS Node 8.10 (java, go, python, c#)](https://reader031.vdocuments.us/reader031/viewer/2022041418/5e1d4de8fc73f06e9828567e/html5/thumbnails/11.jpg)
@technovangelist
Trigger Based?
S3DynamoDBKinesisSNSSESCognitoCloudFormationCloudwatch Logs & Events
CodeCommitConfigAlexaLexAPI GatewayIoTCloudFrontLambda
![Page 12: Orchestrating AWS Lambda with Step Functions · What is AWS Lambda Serverless As far as you are concerned Don’t pay for idle Scale with ease FaaS Node 8.10 (java, go, python, c#)](https://reader031.vdocuments.us/reader031/viewer/2022041418/5e1d4de8fc73f06e9828567e/html5/thumbnails/12.jpg)
@technovangelist
AWS Lambda
![Page 13: Orchestrating AWS Lambda with Step Functions · What is AWS Lambda Serverless As far as you are concerned Don’t pay for idle Scale with ease FaaS Node 8.10 (java, go, python, c#)](https://reader031.vdocuments.us/reader031/viewer/2022041418/5e1d4de8fc73f06e9828567e/html5/thumbnails/13.jpg)
@technovangelist
![Page 14: Orchestrating AWS Lambda with Step Functions · What is AWS Lambda Serverless As far as you are concerned Don’t pay for idle Scale with ease FaaS Node 8.10 (java, go, python, c#)](https://reader031.vdocuments.us/reader031/viewer/2022041418/5e1d4de8fc73f06e9828567e/html5/thumbnails/14.jpg)
@technovangelist
![Page 15: Orchestrating AWS Lambda with Step Functions · What is AWS Lambda Serverless As far as you are concerned Don’t pay for idle Scale with ease FaaS Node 8.10 (java, go, python, c#)](https://reader031.vdocuments.us/reader031/viewer/2022041418/5e1d4de8fc73f06e9828567e/html5/thumbnails/15.jpg)
@technovangelist
That’s pretty cool right? But not perfect
You still have to configure everything elseS3DynamoDBAPI GWetc
SAMCloudformationServerless
![Page 16: Orchestrating AWS Lambda with Step Functions · What is AWS Lambda Serverless As far as you are concerned Don’t pay for idle Scale with ease FaaS Node 8.10 (java, go, python, c#)](https://reader031.vdocuments.us/reader031/viewer/2022041418/5e1d4de8fc73f06e9828567e/html5/thumbnails/16.jpg)
@technovangelist
AWS Lambda
![Page 17: Orchestrating AWS Lambda with Step Functions · What is AWS Lambda Serverless As far as you are concerned Don’t pay for idle Scale with ease FaaS Node 8.10 (java, go, python, c#)](https://reader031.vdocuments.us/reader031/viewer/2022041418/5e1d4de8fc73f06e9828567e/html5/thumbnails/17.jpg)
@technovangelist
…but serverless !== ec2
![Page 18: Orchestrating AWS Lambda with Step Functions · What is AWS Lambda Serverless As far as you are concerned Don’t pay for idle Scale with ease FaaS Node 8.10 (java, go, python, c#)](https://reader031.vdocuments.us/reader031/viewer/2022041418/5e1d4de8fc73f06e9828567e/html5/thumbnails/18.jpg)
@technovangelist
…but serverless !== applications
![Page 19: Orchestrating AWS Lambda with Step Functions · What is AWS Lambda Serverless As far as you are concerned Don’t pay for idle Scale with ease FaaS Node 8.10 (java, go, python, c#)](https://reader031.vdocuments.us/reader031/viewer/2022041418/5e1d4de8fc73f06e9828567e/html5/thumbnails/19.jpg)
@technovangelist
…applications are complicated
![Page 20: Orchestrating AWS Lambda with Step Functions · What is AWS Lambda Serverless As far as you are concerned Don’t pay for idle Scale with ease FaaS Node 8.10 (java, go, python, c#)](https://reader031.vdocuments.us/reader031/viewer/2022041418/5e1d4de8fc73f06e9828567e/html5/thumbnails/20.jpg)
@technovangelist
…serverless functions should respect the single responsibility principle…
![Page 21: Orchestrating AWS Lambda with Step Functions · What is AWS Lambda Serverless As far as you are concerned Don’t pay for idle Scale with ease FaaS Node 8.10 (java, go, python, c#)](https://reader031.vdocuments.us/reader031/viewer/2022041418/5e1d4de8fc73f06e9828567e/html5/thumbnails/21.jpg)
@technovangelist
![Page 22: Orchestrating AWS Lambda with Step Functions · What is AWS Lambda Serverless As far as you are concerned Don’t pay for idle Scale with ease FaaS Node 8.10 (java, go, python, c#)](https://reader031.vdocuments.us/reader031/viewer/2022041418/5e1d4de8fc73f06e9828567e/html5/thumbnails/22.jpg)
@technovangelist
![Page 23: Orchestrating AWS Lambda with Step Functions · What is AWS Lambda Serverless As far as you are concerned Don’t pay for idle Scale with ease FaaS Node 8.10 (java, go, python, c#)](https://reader031.vdocuments.us/reader031/viewer/2022041418/5e1d4de8fc73f06e9828567e/html5/thumbnails/23.jpg)
@technovangelist
we can create many serverless functions
![Page 24: Orchestrating AWS Lambda with Step Functions · What is AWS Lambda Serverless As far as you are concerned Don’t pay for idle Scale with ease FaaS Node 8.10 (java, go, python, c#)](https://reader031.vdocuments.us/reader031/viewer/2022041418/5e1d4de8fc73f06e9828567e/html5/thumbnails/24.jpg)
@technovangelist
we can create many serverless functions
but how do we orchestrate them?
![Page 25: Orchestrating AWS Lambda with Step Functions · What is AWS Lambda Serverless As far as you are concerned Don’t pay for idle Scale with ease FaaS Node 8.10 (java, go, python, c#)](https://reader031.vdocuments.us/reader031/viewer/2022041418/5e1d4de8fc73f06e9828567e/html5/thumbnails/25.jpg)
@technovangelist
Event/Message/Database as Traffic Cop
Amazon Kinesis Amazon SQS Amazon DynamoDB
![Page 26: Orchestrating AWS Lambda with Step Functions · What is AWS Lambda Serverless As far as you are concerned Don’t pay for idle Scale with ease FaaS Node 8.10 (java, go, python, c#)](https://reader031.vdocuments.us/reader031/viewer/2022041418/5e1d4de8fc73f06e9828567e/html5/thumbnails/26.jpg)
© 2017, Amazon Web Services, Inc. or its Affiliates. All rights reserved.
https://github.com/Nordstrom/hello-retail
![Page 27: Orchestrating AWS Lambda with Step Functions · What is AWS Lambda Serverless As far as you are concerned Don’t pay for idle Scale with ease FaaS Node 8.10 (java, go, python, c#)](https://reader031.vdocuments.us/reader031/viewer/2022041418/5e1d4de8fc73f06e9828567e/html5/thumbnails/27.jpg)
@technovangelist
Enter AWS Step Functions
![Page 28: Orchestrating AWS Lambda with Step Functions · What is AWS Lambda Serverless As far as you are concerned Don’t pay for idle Scale with ease FaaS Node 8.10 (java, go, python, c#)](https://reader031.vdocuments.us/reader031/viewer/2022041418/5e1d4de8fc73f06e9828567e/html5/thumbnails/28.jpg)
What about Azure?
![Page 29: Orchestrating AWS Lambda with Step Functions · What is AWS Lambda Serverless As far as you are concerned Don’t pay for idle Scale with ease FaaS Node 8.10 (java, go, python, c#)](https://reader031.vdocuments.us/reader031/viewer/2022041418/5e1d4de8fc73f06e9828567e/html5/thumbnails/29.jpg)
@technovangelist
a step function is
![Page 30: Orchestrating AWS Lambda with Step Functions · What is AWS Lambda Serverless As far as you are concerned Don’t pay for idle Scale with ease FaaS Node 8.10 (java, go, python, c#)](https://reader031.vdocuments.us/reader031/viewer/2022041418/5e1d4de8fc73f06e9828567e/html5/thumbnails/30.jpg)
@technovangelist
a step function is
a state machine
![Page 31: Orchestrating AWS Lambda with Step Functions · What is AWS Lambda Serverless As far as you are concerned Don’t pay for idle Scale with ease FaaS Node 8.10 (java, go, python, c#)](https://reader031.vdocuments.us/reader031/viewer/2022041418/5e1d4de8fc73f06e9828567e/html5/thumbnails/31.jpg)
@technovangelist
but what about SWF?(Amazon Simple Workflow Service)
![Page 32: Orchestrating AWS Lambda with Step Functions · What is AWS Lambda Serverless As far as you are concerned Don’t pay for idle Scale with ease FaaS Node 8.10 (java, go, python, c#)](https://reader031.vdocuments.us/reader031/viewer/2022041418/5e1d4de8fc73f06e9828567e/html5/thumbnails/32.jpg)
@technovangelist
AWS Step Function Concepts
State MachineStates
TaskChoiceSucceed/FailPassWaitParallel
TransitionsExecutions
You define the State Machine with the Amazon States Language
A diagram will be generated based on that structure
![Page 33: Orchestrating AWS Lambda with Step Functions · What is AWS Lambda Serverless As far as you are concerned Don’t pay for idle Scale with ease FaaS Node 8.10 (java, go, python, c#)](https://reader031.vdocuments.us/reader031/viewer/2022041418/5e1d4de8fc73f06e9828567e/html5/thumbnails/33.jpg)
@technovangelist
State Example: Task
![Page 34: Orchestrating AWS Lambda with Step Functions · What is AWS Lambda Serverless As far as you are concerned Don’t pay for idle Scale with ease FaaS Node 8.10 (java, go, python, c#)](https://reader031.vdocuments.us/reader031/viewer/2022041418/5e1d4de8fc73f06e9828567e/html5/thumbnails/34.jpg)
@technovangelist
State Example: Choice
![Page 35: Orchestrating AWS Lambda with Step Functions · What is AWS Lambda Serverless As far as you are concerned Don’t pay for idle Scale with ease FaaS Node 8.10 (java, go, python, c#)](https://reader031.vdocuments.us/reader031/viewer/2022041418/5e1d4de8fc73f06e9828567e/html5/thumbnails/35.jpg)
@technovangelist
State Example: Succeed / Fail
![Page 36: Orchestrating AWS Lambda with Step Functions · What is AWS Lambda Serverless As far as you are concerned Don’t pay for idle Scale with ease FaaS Node 8.10 (java, go, python, c#)](https://reader031.vdocuments.us/reader031/viewer/2022041418/5e1d4de8fc73f06e9828567e/html5/thumbnails/36.jpg)
@technovangelist
State Example: Pass
![Page 37: Orchestrating AWS Lambda with Step Functions · What is AWS Lambda Serverless As far as you are concerned Don’t pay for idle Scale with ease FaaS Node 8.10 (java, go, python, c#)](https://reader031.vdocuments.us/reader031/viewer/2022041418/5e1d4de8fc73f06e9828567e/html5/thumbnails/37.jpg)
@technovangelist
State Example: Wait
![Page 38: Orchestrating AWS Lambda with Step Functions · What is AWS Lambda Serverless As far as you are concerned Don’t pay for idle Scale with ease FaaS Node 8.10 (java, go, python, c#)](https://reader031.vdocuments.us/reader031/viewer/2022041418/5e1d4de8fc73f06e9828567e/html5/thumbnails/38.jpg)
@technovangelist
State Example: Parallel
![Page 39: Orchestrating AWS Lambda with Step Functions · What is AWS Lambda Serverless As far as you are concerned Don’t pay for idle Scale with ease FaaS Node 8.10 (java, go, python, c#)](https://reader031.vdocuments.us/reader031/viewer/2022041418/5e1d4de8fc73f06e9828567e/html5/thumbnails/39.jpg)
@technovangelist
Many ways to build Step Functions
I used Serverless Framework
![Page 40: Orchestrating AWS Lambda with Step Functions · What is AWS Lambda Serverless As far as you are concerned Don’t pay for idle Scale with ease FaaS Node 8.10 (java, go, python, c#)](https://reader031.vdocuments.us/reader031/viewer/2022041418/5e1d4de8fc73f06e9828567e/html5/thumbnails/40.jpg)
@technovangelist
Benefits of Serverless Framework
Define everything in a single file:IAM Role StatementsLambda Function HandlersLambda Function TriggersStep Function StatesCloudFormation for other things
![Page 41: Orchestrating AWS Lambda with Step Functions · What is AWS Lambda Serverless As far as you are concerned Don’t pay for idle Scale with ease FaaS Node 8.10 (java, go, python, c#)](https://reader031.vdocuments.us/reader031/viewer/2022041418/5e1d4de8fc73f06e9828567e/html5/thumbnails/41.jpg)
@technovangelist
Amazon ECRAWS
Lambda
AmazonS3
AmazonDynamoDB
Amazon CloudFront
AWS CodeBuild
AWS CodeCommit
AWSCloudFormation
IAM
Amazon API Gateway*
AWS Step Functions
AmazonSNS
![Page 42: Orchestrating AWS Lambda with Step Functions · What is AWS Lambda Serverless As far as you are concerned Don’t pay for idle Scale with ease FaaS Node 8.10 (java, go, python, c#)](https://reader031.vdocuments.us/reader031/viewer/2022041418/5e1d4de8fc73f06e9828567e/html5/thumbnails/42.jpg)
@technovangelist
![Page 43: Orchestrating AWS Lambda with Step Functions · What is AWS Lambda Serverless As far as you are concerned Don’t pay for idle Scale with ease FaaS Node 8.10 (java, go, python, c#)](https://reader031.vdocuments.us/reader031/viewer/2022041418/5e1d4de8fc73f06e9828567e/html5/thumbnails/43.jpg)
![Page 44: Orchestrating AWS Lambda with Step Functions · What is AWS Lambda Serverless As far as you are concerned Don’t pay for idle Scale with ease FaaS Node 8.10 (java, go, python, c#)](https://reader031.vdocuments.us/reader031/viewer/2022041418/5e1d4de8fc73f06e9828567e/html5/thumbnails/44.jpg)
![Page 45: Orchestrating AWS Lambda with Step Functions · What is AWS Lambda Serverless As far as you are concerned Don’t pay for idle Scale with ease FaaS Node 8.10 (java, go, python, c#)](https://reader031.vdocuments.us/reader031/viewer/2022041418/5e1d4de8fc73f06e9828567e/html5/thumbnails/45.jpg)
![Page 46: Orchestrating AWS Lambda with Step Functions · What is AWS Lambda Serverless As far as you are concerned Don’t pay for idle Scale with ease FaaS Node 8.10 (java, go, python, c#)](https://reader031.vdocuments.us/reader031/viewer/2022041418/5e1d4de8fc73f06e9828567e/html5/thumbnails/46.jpg)
![Page 47: Orchestrating AWS Lambda with Step Functions · What is AWS Lambda Serverless As far as you are concerned Don’t pay for idle Scale with ease FaaS Node 8.10 (java, go, python, c#)](https://reader031.vdocuments.us/reader031/viewer/2022041418/5e1d4de8fc73f06e9828567e/html5/thumbnails/47.jpg)
![Page 48: Orchestrating AWS Lambda with Step Functions · What is AWS Lambda Serverless As far as you are concerned Don’t pay for idle Scale with ease FaaS Node 8.10 (java, go, python, c#)](https://reader031.vdocuments.us/reader031/viewer/2022041418/5e1d4de8fc73f06e9828567e/html5/thumbnails/48.jpg)
@technovangelist
1.Use ML to figure out which slide2.Is this slide different than the last time?3.If so, pull slide data from Dynamo4.If slide different then create document
in s35.Build the site6.Wait for it
1.Is it built7.Done
![Page 49: Orchestrating AWS Lambda with Step Functions · What is AWS Lambda Serverless As far as you are concerned Don’t pay for idle Scale with ease FaaS Node 8.10 (java, go, python, c#)](https://reader031.vdocuments.us/reader031/viewer/2022041418/5e1d4de8fc73f06e9828567e/html5/thumbnails/49.jpg)
@technovangelist
Type: TaskResource: Lambda Function
![Page 50: Orchestrating AWS Lambda with Step Functions · What is AWS Lambda Serverless As far as you are concerned Don’t pay for idle Scale with ease FaaS Node 8.10 (java, go, python, c#)](https://reader031.vdocuments.us/reader031/viewer/2022041418/5e1d4de8fc73f06e9828567e/html5/thumbnails/50.jpg)
@technovangelist
![Page 51: Orchestrating AWS Lambda with Step Functions · What is AWS Lambda Serverless As far as you are concerned Don’t pay for idle Scale with ease FaaS Node 8.10 (java, go, python, c#)](https://reader031.vdocuments.us/reader031/viewer/2022041418/5e1d4de8fc73f06e9828567e/html5/thumbnails/51.jpg)
![Page 52: Orchestrating AWS Lambda with Step Functions · What is AWS Lambda Serverless As far as you are concerned Don’t pay for idle Scale with ease FaaS Node 8.10 (java, go, python, c#)](https://reader031.vdocuments.us/reader031/viewer/2022041418/5e1d4de8fc73f06e9828567e/html5/thumbnails/52.jpg)
@technovangelist
Type: TaskResource: Lambda Function
![Page 53: Orchestrating AWS Lambda with Step Functions · What is AWS Lambda Serverless As far as you are concerned Don’t pay for idle Scale with ease FaaS Node 8.10 (java, go, python, c#)](https://reader031.vdocuments.us/reader031/viewer/2022041418/5e1d4de8fc73f06e9828567e/html5/thumbnails/53.jpg)
![Page 54: Orchestrating AWS Lambda with Step Functions · What is AWS Lambda Serverless As far as you are concerned Don’t pay for idle Scale with ease FaaS Node 8.10 (java, go, python, c#)](https://reader031.vdocuments.us/reader031/viewer/2022041418/5e1d4de8fc73f06e9828567e/html5/thumbnails/54.jpg)
@technovangelist
![Page 55: Orchestrating AWS Lambda with Step Functions · What is AWS Lambda Serverless As far as you are concerned Don’t pay for idle Scale with ease FaaS Node 8.10 (java, go, python, c#)](https://reader031.vdocuments.us/reader031/viewer/2022041418/5e1d4de8fc73f06e9828567e/html5/thumbnails/55.jpg)
@technovangelist
Type: TaskResource: Lambda Function
![Page 56: Orchestrating AWS Lambda with Step Functions · What is AWS Lambda Serverless As far as you are concerned Don’t pay for idle Scale with ease FaaS Node 8.10 (java, go, python, c#)](https://reader031.vdocuments.us/reader031/viewer/2022041418/5e1d4de8fc73f06e9828567e/html5/thumbnails/56.jpg)
![Page 57: Orchestrating AWS Lambda with Step Functions · What is AWS Lambda Serverless As far as you are concerned Don’t pay for idle Scale with ease FaaS Node 8.10 (java, go, python, c#)](https://reader031.vdocuments.us/reader031/viewer/2022041418/5e1d4de8fc73f06e9828567e/html5/thumbnails/57.jpg)
@technovangelist
Type: TaskResource: Lambda Function
![Page 58: Orchestrating AWS Lambda with Step Functions · What is AWS Lambda Serverless As far as you are concerned Don’t pay for idle Scale with ease FaaS Node 8.10 (java, go, python, c#)](https://reader031.vdocuments.us/reader031/viewer/2022041418/5e1d4de8fc73f06e9828567e/html5/thumbnails/58.jpg)
![Page 59: Orchestrating AWS Lambda with Step Functions · What is AWS Lambda Serverless As far as you are concerned Don’t pay for idle Scale with ease FaaS Node 8.10 (java, go, python, c#)](https://reader031.vdocuments.us/reader031/viewer/2022041418/5e1d4de8fc73f06e9828567e/html5/thumbnails/59.jpg)
![Page 60: Orchestrating AWS Lambda with Step Functions · What is AWS Lambda Serverless As far as you are concerned Don’t pay for idle Scale with ease FaaS Node 8.10 (java, go, python, c#)](https://reader031.vdocuments.us/reader031/viewer/2022041418/5e1d4de8fc73f06e9828567e/html5/thumbnails/60.jpg)
@technovangelist
How about monitoring?
We monitor Lambda via Logs
MONITORING|unix_epoch_timestamp|value|count|my.metric.name|#tag1:value,tag2
console.log(monitoringstring);
![Page 61: Orchestrating AWS Lambda with Step Functions · What is AWS Lambda Serverless As far as you are concerned Don’t pay for idle Scale with ease FaaS Node 8.10 (java, go, python, c#)](https://reader031.vdocuments.us/reader031/viewer/2022041418/5e1d4de8fc73f06e9828567e/html5/thumbnails/61.jpg)
@technovangelist
What are the Lambda Metrics
aws.lambda.duration, min, max, sumaws.lambda.errorsaws.lambda.invocationsaws.lambda.throttlesaws.lambda.iterator_age
![Page 62: Orchestrating AWS Lambda with Step Functions · What is AWS Lambda Serverless As far as you are concerned Don’t pay for idle Scale with ease FaaS Node 8.10 (java, go, python, c#)](https://reader031.vdocuments.us/reader031/viewer/2022041418/5e1d4de8fc73f06e9828567e/html5/thumbnails/62.jpg)
@technovangelist
What are the Step Function Metrics
aws.states.execution_time (.maximum, .minimum)aws.states.executions_aborted, failed, started, succeeded, timed_outaws.states.lambda_functions_scheduled, started, succeeded, timed_outaws.states.execution_throttledaws.states.lambda_function_time (.maximum, .minimum)aws.states.lambda_function_run_time (.maximum, .minimum)aws.states.lambda_function_schedule_time (.maximum, .minimum)aws.states.lambda_functions_started
![Page 63: Orchestrating AWS Lambda with Step Functions · What is AWS Lambda Serverless As far as you are concerned Don’t pay for idle Scale with ease FaaS Node 8.10 (java, go, python, c#)](https://reader031.vdocuments.us/reader031/viewer/2022041418/5e1d4de8fc73f06e9828567e/html5/thumbnails/63.jpg)
@technovangelist
![Page 64: Orchestrating AWS Lambda with Step Functions · What is AWS Lambda Serverless As far as you are concerned Don’t pay for idle Scale with ease FaaS Node 8.10 (java, go, python, c#)](https://reader031.vdocuments.us/reader031/viewer/2022041418/5e1d4de8fc73f06e9828567e/html5/thumbnails/64.jpg)
@technovangelist
![Page 65: Orchestrating AWS Lambda with Step Functions · What is AWS Lambda Serverless As far as you are concerned Don’t pay for idle Scale with ease FaaS Node 8.10 (java, go, python, c#)](https://reader031.vdocuments.us/reader031/viewer/2022041418/5e1d4de8fc73f06e9828567e/html5/thumbnails/65.jpg)
@technovangelist
![Page 66: Orchestrating AWS Lambda with Step Functions · What is AWS Lambda Serverless As far as you are concerned Don’t pay for idle Scale with ease FaaS Node 8.10 (java, go, python, c#)](https://reader031.vdocuments.us/reader031/viewer/2022041418/5e1d4de8fc73f06e9828567e/html5/thumbnails/66.jpg)
@technovangelist
![Page 67: Orchestrating AWS Lambda with Step Functions · What is AWS Lambda Serverless As far as you are concerned Don’t pay for idle Scale with ease FaaS Node 8.10 (java, go, python, c#)](https://reader031.vdocuments.us/reader031/viewer/2022041418/5e1d4de8fc73f06e9828567e/html5/thumbnails/67.jpg)
@technovangelist
![Page 68: Orchestrating AWS Lambda with Step Functions · What is AWS Lambda Serverless As far as you are concerned Don’t pay for idle Scale with ease FaaS Node 8.10 (java, go, python, c#)](https://reader031.vdocuments.us/reader031/viewer/2022041418/5e1d4de8fc73f06e9828567e/html5/thumbnails/68.jpg)
@technovangelist
![Page 69: Orchestrating AWS Lambda with Step Functions · What is AWS Lambda Serverless As far as you are concerned Don’t pay for idle Scale with ease FaaS Node 8.10 (java, go, python, c#)](https://reader031.vdocuments.us/reader031/viewer/2022041418/5e1d4de8fc73f06e9828567e/html5/thumbnails/69.jpg)
@technovangelist
Lambda and Step Function Challenges
• Logging and debugging is a bit…painful• Don’t trust the SF when it claims a step is complete• Cold start is a thing but it may not be as bad as you think. • Cold start is a thing and it could be worse than you think• Every Lambda should do one thing…except if you can’t
afford it
@technovangelist
![Page 70: Orchestrating AWS Lambda with Step Functions · What is AWS Lambda Serverless As far as you are concerned Don’t pay for idle Scale with ease FaaS Node 8.10 (java, go, python, c#)](https://reader031.vdocuments.us/reader031/viewer/2022041418/5e1d4de8fc73f06e9828567e/html5/thumbnails/70.jpg)
@technovangelist
Summary
Step Functions make AWS Lambda orchestration easyLambda, Serverless, and Step Functions can be an interesting part of your infrastructureMonitor your Lambda functions to ensure peak performance
Source can be found at:https://github.com/DataDog/mattw-reinvent2017-demo
![Page 71: Orchestrating AWS Lambda with Step Functions · What is AWS Lambda Serverless As far as you are concerned Don’t pay for idle Scale with ease FaaS Node 8.10 (java, go, python, c#)](https://reader031.vdocuments.us/reader031/viewer/2022041418/5e1d4de8fc73f06e9828567e/html5/thumbnails/71.jpg)
@technovangelist
Matt Williams
Evangelist at Datadog@[email protected]
Organizer of DevOps Days Boston 2017 & 2018