© 2022, Amazon Web Services, Inc. or its Affiliates. All rights reserved.
VADODARA
© 2022, Amazon Web Services, Inc. or its Affiliates. All rights reserved.
Mainstream Serverless
Dhaval Nagar | Founder @ APPGAMBIT
AWS Hero, AWS SME
© 2022, Amazon Web Services, Inc. or its Affiliates. All rights reserved.
● Founder @ APPGAMBIT, AWS Consulting Partner
● 12x AWS Certified
● AWS Hero (since 2020)
● AWS Certification SME
● AWS Surat User Group Lead
● Practicing Barista
Dhaval Nagar
© 2022, Amazon Web Services, Inc. or its Affiliates. All rights reserved.
Quick Poll
New to Serverless Familiar with Serverless Running Serverless in
Production
© 2022, Amazon Web Services, Inc. or its Affiliates. All rights reserved.
Agenda
● Current State of Serverless
● Enterprise Adoption
● Services and Features
● How to Go Serverless
● 3rd party services and tools
● Hard things about Serverless
© 2022, Amazon Web Services, Inc. or its Affiliates. All rights reserved.
A Simple Serverless Flow
© 2022, Amazon Web Services, Inc. or its Affiliates. All rights reserved.
NodeJS
Python
Java
C#
Ruby
Go
Custom Runtime
Event Source Function Destination
API Requests
File Uploads
Resource Changes
Data State Changes
Datastore
or
Other Resources
{
“event”: “test”,
“data”: 9999
}
© 2022, Amazon Web Services, Inc. or its Affiliates. All rights reserved.
Current state of Serverless
● AWS Lambda launched in re:invent 2014
● Initial Events Sources were
○ S3 Event Notifications
○ Kinesis Stream
○ DynamoDB Update Stream
● API Gateway released in 2015
● Over the years, Lambda, became the core of Serverless Ecosystem with exciting
features and services like Step Functions, EventBridge, AppSync, VPC and Container
Support, etc.
● McKinsey calls Serverless Infrastructure as Cloud 2.0
© 2022, Amazon Web Services, Inc. or its Affiliates. All rights reserved. https://www.datadoghq.com/state-of-serverless/ (June 2022)
© 2022, Amazon Web Services, Inc. or its Affiliates. All rights reserved.
Lambda Fargate
ECS / EKS
App Runner
Serverless Compute is not limited
to Lambda Functions
© 2022, Amazon Web Services, Inc. or its Affiliates. All rights reserved.
© 2022, Amazon Web Services, Inc. or its Affiliates. All rights reserved.
Enterprise Adoption
© 2022, Amazon Web Services, Inc. or its Affiliates. All rights reserved.
© 2022, Amazon Web Services, Inc. or its Affiliates. All rights reserved.
● All 4 companies represent different category of business
● They all serve Millions of users
● They have adopted AWS Serverless architecture with services
like Lambda, Step Functions, API Gateway, DynamoDB, Kinesis
Stream, etc
© 2022, Amazon Web Services, Inc. or its Affiliates. All rights reserved.
● All 4 companies represent different category of business
● They all serve Millions of users
● They have adopted AWS Serverless architecture with services
like Lambda, Step Functions, API Gateway, DynamoDB, Kinesis
Stream, etc
Lower Cost of Ownership Faster Time to Market Scale on Demand
© 2022, Amazon Web Services, Inc. or its Affiliates. All rights reserved.
Serverless has demonstrated that it is the operational model of the
future. Over the past year, we’ve seen 125 percent growth in the
number of serverless function invocations on Vercel, fueled by
serverless-oriented frameworks like Next.js.
– Guillermo Rauch, CEO, Vercel
© 2022, Amazon Web Services, Inc. or its Affiliates. All rights reserved.
© 2022, Amazon Web Services, Inc. or its Affiliates. All rights reserved.
● Ryan and Ant Stanley built online training platform in 2015, within a
few weeks
● His AWS Solution Architect Certification course got immensely
popular
● Sam joined the company from Microsoft
● Raised over $40 Million in next 4 years
● Acquired Linux Academy
● Acquired by Pluralsight with valuation of $2 Billion
© 2022, Amazon Web Services, Inc. or its Affiliates. All rights reserved.
We don’t run a single server.
Sam Kroonenburg
CEO - A Cloud Guru
Oct 2015
https://medium.com/a-cloud-guru/come-hear-us-talk-about-serverless-architectures-on-aws-melbourne-dublin-london-a7615c8736a2
© 2022, Amazon Web Services, Inc. or its Affiliates. All rights reserved.
© 2022, Amazon Web Services, Inc. or its Affiliates. All rights reserved.
© 2022, Amazon Web Services, Inc. or its Affiliates. All rights reserved.
Services and Features
© 2022, Amazon Web Services, Inc. or its Affiliates. All rights reserved.
Before
Use Lambda, wherever possible.
Now
Avoid Lambda, wherever possible.
© 2022, Amazon Web Services, Inc. or its Affiliates. All rights reserved.
● Core services have improved a lot in the past few years
● Steep increase in the adoption across all segments
● Enterprises see a huge value addition - Low Ops, Low Cost
● API Gateway, Step Functions, AppSync, EventBridge have direct integrations with
other AWS Services
● Reduce unnecessary Lambda functions and increase reliability
Critical Services and Features
© 2022, Amazon Web Services, Inc. or its Affiliates. All rights reserved.
How to Go Serverless
© 2022, Amazon Web Services, Inc. or its Affiliates. All rights reserved.
● Have baseline familiarity with core AWS Services
○ IAM, S3, VPC, and CloudFormation
● Serverless Framework is the easiest among the bunch
● Full-stack Developers with API Gateway and Lambda
● Generate JWT Tokens with Amazon Cognito
● Database with Aurora Serverless or DynamoDB
● Process decoupling with SQS/SNS
● Coordinate different Lambda functions and services with Step
Functions
● Use S3 for file storage and automation
© 2022, Amazon Web Services, Inc. or its Affiliates. All rights reserved.
Dev to Prod
© 2022, Amazon Web Services, Inc. or its Affiliates. All rights reserved.
● Local Testing vs Cloud Native Testing
○ LocalStack, SST
● Monitoring and Debugging
○ Lumigo, Datadog, Thundra
● Microservices and how to implement
○ Micro doesn’t mean small
○ Keep logical responsibilities separate
○ Communicate with abstraction
● Mono repos vs Multi Repos
○ Follow the team culture
● Deployment Pipeline
○ Automation always help
○ Use AWS Services like CodePipeline and CodeDeploy
© 2022, Amazon Web Services, Inc. or its Affiliates. All rights reserved.
● Lambda with Container support
● Lambda with improved VPC support
● Step Functions with advanced integrations and functions
● EventBridge SaaS Partner like MongoDB Atlas, Github, Stripe and Twilio
● Improve User Experience with WebSocket/API Gateway or GraphQL AppSync
Subscriptions
Critical Services and Features
© 2022, Amazon Web Services, Inc. or its Affiliates. All rights reserved.
● Fullstack Services - Vercel and Cloudflare
● Monitoring and Oberservability – DataDog, Lumigo, Epsagon, Thundra, IOPipes, etc
● Frameworks – Serverless Framework, AWS SAM, Serverless Stack (sst)
● Databases - MongoDB Atlas Serverless, CockroachDB Serverless, Upstash
Redis/Kafka, Momento Cache, etc
● Auth0 for Authentication
● Twilio for SMS and Calls
3rd Party Ecosystem
© 2022, Amazon Web Services, Inc. or its Affiliates. All rights reserved.
Serverless is (still) Hard
© 2022, Amazon Web Services, Inc. or its Affiliates. All rights reserved.
● Just knowing Lambda is NOT enough
● Unoptimised Lambda functions can result into cost overrun or bad user
experience
● Steep learning curve involved - if doing anything past the normal HTTP
requests or other patterns
● Requires good familiarity with AWS Services, CloudFormation or CDK
depending on the framework you choose
● Mono Repos vs Individual Repos will still be a question
● Familirity with Serverless Principles will still be required among the
team members
© 2022, Amazon Web Services, Inc. or its Affiliates. All rights reserved.
x86 vs Arm
© 2022, Amazon Web Services, Inc. or its Affiliates. All rights reserved.
© 2022, Amazon Web Services, Inc. or its Affiliates. All rights reserved.
● S3 Event Notifications to EventBridge unlocks advanced
integration with message filtering, routing, event retention and
event replays
● EventBridge supports events from GitHub, Stripe and Twilio
making it easier to build advanced external integrations
© 2022, Amazon Web Services, Inc. or its Affiliates. All rights reserved. Q3 2022 - https://www.pluralsight.com/resource-center/state-of-cloud#download-report
© 2022, Amazon Web Services, Inc. or its Affiliates. All rights reserved.
Further References
© 2022, Amazon Web Services, Inc. or its Affiliates. All rights reserved.
● https://serverless.com
● https://serverlessland.com/
● https://www.jeremydaly.com/
● https://theburningmonk.com/
● https://cdkpatterns.com/
© 2022, Amazon Web Services, Inc. or its Affiliates. All rights reserved.
Thank You
https://www.linkedin.com/in/dhavaln/

Mainstream Serverless

  • 1.
    © 2022, AmazonWeb Services, Inc. or its Affiliates. All rights reserved. VADODARA
  • 2.
    © 2022, AmazonWeb Services, Inc. or its Affiliates. All rights reserved. Mainstream Serverless Dhaval Nagar | Founder @ APPGAMBIT AWS Hero, AWS SME
  • 3.
    © 2022, AmazonWeb Services, Inc. or its Affiliates. All rights reserved. ● Founder @ APPGAMBIT, AWS Consulting Partner ● 12x AWS Certified ● AWS Hero (since 2020) ● AWS Certification SME ● AWS Surat User Group Lead ● Practicing Barista Dhaval Nagar
  • 4.
    © 2022, AmazonWeb Services, Inc. or its Affiliates. All rights reserved. Quick Poll New to Serverless Familiar with Serverless Running Serverless in Production
  • 5.
    © 2022, AmazonWeb Services, Inc. or its Affiliates. All rights reserved. Agenda ● Current State of Serverless ● Enterprise Adoption ● Services and Features ● How to Go Serverless ● 3rd party services and tools ● Hard things about Serverless
  • 6.
    © 2022, AmazonWeb Services, Inc. or its Affiliates. All rights reserved. A Simple Serverless Flow
  • 7.
    © 2022, AmazonWeb Services, Inc. or its Affiliates. All rights reserved. NodeJS Python Java C# Ruby Go Custom Runtime Event Source Function Destination API Requests File Uploads Resource Changes Data State Changes Datastore or Other Resources { “event”: “test”, “data”: 9999 }
  • 8.
    © 2022, AmazonWeb Services, Inc. or its Affiliates. All rights reserved. Current state of Serverless ● AWS Lambda launched in re:invent 2014 ● Initial Events Sources were ○ S3 Event Notifications ○ Kinesis Stream ○ DynamoDB Update Stream ● API Gateway released in 2015 ● Over the years, Lambda, became the core of Serverless Ecosystem with exciting features and services like Step Functions, EventBridge, AppSync, VPC and Container Support, etc. ● McKinsey calls Serverless Infrastructure as Cloud 2.0
  • 9.
    © 2022, AmazonWeb Services, Inc. or its Affiliates. All rights reserved. https://www.datadoghq.com/state-of-serverless/ (June 2022)
  • 10.
    © 2022, AmazonWeb Services, Inc. or its Affiliates. All rights reserved. Lambda Fargate ECS / EKS App Runner Serverless Compute is not limited to Lambda Functions
  • 11.
    © 2022, AmazonWeb Services, Inc. or its Affiliates. All rights reserved.
  • 12.
    © 2022, AmazonWeb Services, Inc. or its Affiliates. All rights reserved. Enterprise Adoption
  • 13.
    © 2022, AmazonWeb Services, Inc. or its Affiliates. All rights reserved.
  • 14.
    © 2022, AmazonWeb Services, Inc. or its Affiliates. All rights reserved. ● All 4 companies represent different category of business ● They all serve Millions of users ● They have adopted AWS Serverless architecture with services like Lambda, Step Functions, API Gateway, DynamoDB, Kinesis Stream, etc
  • 15.
    © 2022, AmazonWeb Services, Inc. or its Affiliates. All rights reserved. ● All 4 companies represent different category of business ● They all serve Millions of users ● They have adopted AWS Serverless architecture with services like Lambda, Step Functions, API Gateway, DynamoDB, Kinesis Stream, etc Lower Cost of Ownership Faster Time to Market Scale on Demand
  • 16.
    © 2022, AmazonWeb Services, Inc. or its Affiliates. All rights reserved. Serverless has demonstrated that it is the operational model of the future. Over the past year, we’ve seen 125 percent growth in the number of serverless function invocations on Vercel, fueled by serverless-oriented frameworks like Next.js. – Guillermo Rauch, CEO, Vercel
  • 17.
    © 2022, AmazonWeb Services, Inc. or its Affiliates. All rights reserved.
  • 18.
    © 2022, AmazonWeb Services, Inc. or its Affiliates. All rights reserved. ● Ryan and Ant Stanley built online training platform in 2015, within a few weeks ● His AWS Solution Architect Certification course got immensely popular ● Sam joined the company from Microsoft ● Raised over $40 Million in next 4 years ● Acquired Linux Academy ● Acquired by Pluralsight with valuation of $2 Billion
  • 19.
    © 2022, AmazonWeb Services, Inc. or its Affiliates. All rights reserved. We don’t run a single server. Sam Kroonenburg CEO - A Cloud Guru Oct 2015 https://medium.com/a-cloud-guru/come-hear-us-talk-about-serverless-architectures-on-aws-melbourne-dublin-london-a7615c8736a2
  • 20.
    © 2022, AmazonWeb Services, Inc. or its Affiliates. All rights reserved.
  • 21.
    © 2022, AmazonWeb Services, Inc. or its Affiliates. All rights reserved.
  • 22.
    © 2022, AmazonWeb Services, Inc. or its Affiliates. All rights reserved. Services and Features
  • 23.
    © 2022, AmazonWeb Services, Inc. or its Affiliates. All rights reserved. Before Use Lambda, wherever possible. Now Avoid Lambda, wherever possible.
  • 24.
    © 2022, AmazonWeb Services, Inc. or its Affiliates. All rights reserved. ● Core services have improved a lot in the past few years ● Steep increase in the adoption across all segments ● Enterprises see a huge value addition - Low Ops, Low Cost ● API Gateway, Step Functions, AppSync, EventBridge have direct integrations with other AWS Services ● Reduce unnecessary Lambda functions and increase reliability Critical Services and Features
  • 25.
    © 2022, AmazonWeb Services, Inc. or its Affiliates. All rights reserved. How to Go Serverless
  • 26.
    © 2022, AmazonWeb Services, Inc. or its Affiliates. All rights reserved. ● Have baseline familiarity with core AWS Services ○ IAM, S3, VPC, and CloudFormation ● Serverless Framework is the easiest among the bunch ● Full-stack Developers with API Gateway and Lambda ● Generate JWT Tokens with Amazon Cognito ● Database with Aurora Serverless or DynamoDB ● Process decoupling with SQS/SNS ● Coordinate different Lambda functions and services with Step Functions ● Use S3 for file storage and automation
  • 27.
    © 2022, AmazonWeb Services, Inc. or its Affiliates. All rights reserved. Dev to Prod
  • 28.
    © 2022, AmazonWeb Services, Inc. or its Affiliates. All rights reserved. ● Local Testing vs Cloud Native Testing ○ LocalStack, SST ● Monitoring and Debugging ○ Lumigo, Datadog, Thundra ● Microservices and how to implement ○ Micro doesn’t mean small ○ Keep logical responsibilities separate ○ Communicate with abstraction ● Mono repos vs Multi Repos ○ Follow the team culture ● Deployment Pipeline ○ Automation always help ○ Use AWS Services like CodePipeline and CodeDeploy
  • 29.
    © 2022, AmazonWeb Services, Inc. or its Affiliates. All rights reserved. ● Lambda with Container support ● Lambda with improved VPC support ● Step Functions with advanced integrations and functions ● EventBridge SaaS Partner like MongoDB Atlas, Github, Stripe and Twilio ● Improve User Experience with WebSocket/API Gateway or GraphQL AppSync Subscriptions Critical Services and Features
  • 30.
    © 2022, AmazonWeb Services, Inc. or its Affiliates. All rights reserved. ● Fullstack Services - Vercel and Cloudflare ● Monitoring and Oberservability – DataDog, Lumigo, Epsagon, Thundra, IOPipes, etc ● Frameworks – Serverless Framework, AWS SAM, Serverless Stack (sst) ● Databases - MongoDB Atlas Serverless, CockroachDB Serverless, Upstash Redis/Kafka, Momento Cache, etc ● Auth0 for Authentication ● Twilio for SMS and Calls 3rd Party Ecosystem
  • 31.
    © 2022, AmazonWeb Services, Inc. or its Affiliates. All rights reserved. Serverless is (still) Hard
  • 32.
    © 2022, AmazonWeb Services, Inc. or its Affiliates. All rights reserved. ● Just knowing Lambda is NOT enough ● Unoptimised Lambda functions can result into cost overrun or bad user experience ● Steep learning curve involved - if doing anything past the normal HTTP requests or other patterns ● Requires good familiarity with AWS Services, CloudFormation or CDK depending on the framework you choose ● Mono Repos vs Individual Repos will still be a question ● Familirity with Serverless Principles will still be required among the team members
  • 33.
    © 2022, AmazonWeb Services, Inc. or its Affiliates. All rights reserved. x86 vs Arm
  • 34.
    © 2022, AmazonWeb Services, Inc. or its Affiliates. All rights reserved.
  • 35.
    © 2022, AmazonWeb Services, Inc. or its Affiliates. All rights reserved. ● S3 Event Notifications to EventBridge unlocks advanced integration with message filtering, routing, event retention and event replays ● EventBridge supports events from GitHub, Stripe and Twilio making it easier to build advanced external integrations
  • 36.
    © 2022, AmazonWeb Services, Inc. or its Affiliates. All rights reserved. Q3 2022 - https://www.pluralsight.com/resource-center/state-of-cloud#download-report
  • 37.
    © 2022, AmazonWeb Services, Inc. or its Affiliates. All rights reserved. Further References
  • 38.
    © 2022, AmazonWeb Services, Inc. or its Affiliates. All rights reserved. ● https://serverless.com ● https://serverlessland.com/ ● https://www.jeremydaly.com/ ● https://theburningmonk.com/ ● https://cdkpatterns.com/
  • 39.
    © 2022, AmazonWeb Services, Inc. or its Affiliates. All rights reserved. Thank You https://www.linkedin.com/in/dhavaln/