SlideShare a Scribd company logo
1 of 16
Serverless Architectures
The Good, The Bad & The Ugly
Geethika Guruge
Lead Consultant @ CMD Solutions
Agenda
• How did we get here
• What's so good about this
• What's not so good about serverless
• When does it get really ugly
• Learnings and food for thought
How did we get here
How did we get here
What's so good about this
• On Demand Infrastructure
• You Pay for What What You Use
• No Undifferentiated Heavy Lifting
• The Developer Experience
What's Not So Good
• Time Outs
• Gets too complicated too soon
• Dependency management
• Not Everything is stateless
When Does It Get Really Ugly
• Lambdalith (Lambda Monolith)
• Lambda Orchestrator
• Lambda Pinball
• Invocation Loops
• Lambda calling Lambda
• Synchronous waiting
Lambdalith (Lambda Monolith)
What's so bad?
• Package size
• Harder to enforce least privilege
• Harder to upgrade
• Harder to maintain
• Harder to reuse code
• Harder to test
Useful Hints
Lambda Orchestrator
A Typical Order Workflow
1. Customer places an order
2. System notifies the restaurant
3. Restaurant accepts the order
4. System notifies the customer
5. Food is delivered to the customer
Lambda Pinball
1. A customer places an order
2. place-order function calls the notify-
restaurant function .
3. notify-restaurant function sends a message to the
restaurant.
4. The restaurant Accept Order, which calls
the orders API.
5. accept-order function is called, and it triggers
notify-user function
6. notify-user function sends an order confirmation
to the customer.
7. Once the food is delivered, the restaurant
completes the order. This calls the orders API.
8. complete-order function is called
Useful Hint
• Use Step Functions to orchestrate
the workflow
Invocation Loops
• Lambda will automatically
scale
• S3 will continue to write
• You will receive a
$BILL_SHOCK$
Useful Hints
• The service or resource that invokes a Lambda function should be different to
the service or resource that the function outputs to.
• Use a positive trigger – use metadata to trigger the lambda only on the first
S3 Put Object
• Use reserved concurrency for lambda
• Use Alarms (CloudWatch)
Lambda calling Lambda
• Cost – you pay for the duration
• Error handling – Complex
• Tight coupling
• Scaling – Concurrency for all
lambdas must be equal
Useful Hints
• Use SQS – Create order publishes to a queue and Process
payment consumes from the queue
• Use Step Functions to orchestrate the workflow
Synchronous waiting
• Wait times are compounded
OR
Useful
Hints
Learnings & Food for Thought
• Serverless is NOT a silver bullet
• Treat Observability as a first class citizen
• Serverless is NOT just Lambda
AWS Programming & Tooling Meetups
 Kick off 16th February 2023
 3rd Week of every month there after
 AWS Credit Vouchers $$$ and more….
 Things you can expect
 Debugging in the cloud: When things stop working, what tools can I use to find the root cause?
 “Should I stay or should I go 🎶”: The untold list of things to consider before choosing between single region vs
Multi-region
 Tell me why you can't run on spot instances? Common misconceptions about the model, practical solutions and
why you might be missing out great savings!
 How to protect your secrets in AWS Lambda? and what are the tradeoffs
 How to test your serverless application
 Build your own ngrok in AWS
Thank You

More Related Content

Similar to serverless_meetup_Jan_2023_v1.0.pptx

URP? Excuse You! The Three Metrics You Have to Know
URP? Excuse You! The Three Metrics You Have to Know URP? Excuse You! The Three Metrics You Have to Know
URP? Excuse You! The Three Metrics You Have to Know confluent
 
Cloud anti-patterns
Cloud anti-patternsCloud anti-patterns
Cloud anti-patternsMallika Iyer
 
Serverless Computing Model
Serverless Computing ModelServerless Computing Model
Serverless Computing ModelMohamed Samir
 
Reactive Programming in Java 8 with Rx-Java
Reactive Programming in Java 8 with Rx-JavaReactive Programming in Java 8 with Rx-Java
Reactive Programming in Java 8 with Rx-JavaKasun Indrasiri
 
URP? Excuse You! The Three Kafka Metrics You Need to Know
URP? Excuse You! The Three Kafka Metrics You Need to KnowURP? Excuse You! The Three Kafka Metrics You Need to Know
URP? Excuse You! The Three Kafka Metrics You Need to KnowTodd Palino
 
Microservices: The Best Practices
Microservices: The Best PracticesMicroservices: The Best Practices
Microservices: The Best PracticesPavel Mička
 
Lotuscript for large systems
Lotuscript for large systemsLotuscript for large systems
Lotuscript for large systemsBill Buchan
 
Scaling a High Traffic Web Application: Our Journey from Java to PHP
Scaling a High Traffic Web Application: Our Journey from Java to PHPScaling a High Traffic Web Application: Our Journey from Java to PHP
Scaling a High Traffic Web Application: Our Journey from Java to PHP120bi
 
Scaling High Traffic Web Applications
Scaling High Traffic Web ApplicationsScaling High Traffic Web Applications
Scaling High Traffic Web ApplicationsAchievers Tech
 
Building Resilient Serverless Systems with Non-Serverless Components
Building Resilient Serverless Systems with Non-Serverless ComponentsBuilding Resilient Serverless Systems with Non-Serverless Components
Building Resilient Serverless Systems with Non-Serverless ComponentsJeremy Daly
 
Make It Cooler: Using Decentralized Version Control
Make It Cooler: Using Decentralized Version ControlMake It Cooler: Using Decentralized Version Control
Make It Cooler: Using Decentralized Version Controlindiver
 
Introduction to Agile - Scrum, Kanban, and everything in between
Introduction to Agile - Scrum, Kanban, and everything in betweenIntroduction to Agile - Scrum, Kanban, and everything in between
Introduction to Agile - Scrum, Kanban, and everything in betweenPravin Kumar Singh, PMP, PSM
 
Best practices with development of enterprise-scale SharePoint solutions - Pa...
Best practices with development of enterprise-scale SharePoint solutions - Pa...Best practices with development of enterprise-scale SharePoint solutions - Pa...
Best practices with development of enterprise-scale SharePoint solutions - Pa...SPC Adriatics
 
Serverless Toronto helps Startups
Serverless Toronto helps StartupsServerless Toronto helps Startups
Serverless Toronto helps StartupsDaniel Zivkovic
 
AWS Lambda: Best Practices and Common Mistakes - DevOps East 2019
AWS Lambda: Best Practices and Common Mistakes - DevOps East 2019AWS Lambda: Best Practices and Common Mistakes - DevOps East 2019
AWS Lambda: Best Practices and Common Mistakes - DevOps East 2019Derek Ashmore
 
When small problems become big problems
When small problems become big problemsWhen small problems become big problems
When small problems become big problemsAdrian Cole
 
Metrics Are Not Enough: Monitoring Apache Kafka and Streaming Applications
Metrics Are Not Enough: Monitoring Apache Kafka and Streaming ApplicationsMetrics Are Not Enough: Monitoring Apache Kafka and Streaming Applications
Metrics Are Not Enough: Monitoring Apache Kafka and Streaming Applicationsconfluent
 
Microsoft Azure Cost Optimization and improve efficiency
Microsoft Azure Cost Optimization and improve efficiencyMicrosoft Azure Cost Optimization and improve efficiency
Microsoft Azure Cost Optimization and improve efficiencyKushan Lahiru Perera
 

Similar to serverless_meetup_Jan_2023_v1.0.pptx (20)

Scrum toufiq
Scrum toufiqScrum toufiq
Scrum toufiq
 
URP? Excuse You! The Three Metrics You Have to Know
URP? Excuse You! The Three Metrics You Have to Know URP? Excuse You! The Three Metrics You Have to Know
URP? Excuse You! The Three Metrics You Have to Know
 
Cloud anti-patterns
Cloud anti-patternsCloud anti-patterns
Cloud anti-patterns
 
Serverless Computing Model
Serverless Computing ModelServerless Computing Model
Serverless Computing Model
 
Reactive Programming in Java 8 with Rx-Java
Reactive Programming in Java 8 with Rx-JavaReactive Programming in Java 8 with Rx-Java
Reactive Programming in Java 8 with Rx-Java
 
Redundant devops
Redundant devopsRedundant devops
Redundant devops
 
URP? Excuse You! The Three Kafka Metrics You Need to Know
URP? Excuse You! The Three Kafka Metrics You Need to KnowURP? Excuse You! The Three Kafka Metrics You Need to Know
URP? Excuse You! The Three Kafka Metrics You Need to Know
 
Microservices: The Best Practices
Microservices: The Best PracticesMicroservices: The Best Practices
Microservices: The Best Practices
 
Lotuscript for large systems
Lotuscript for large systemsLotuscript for large systems
Lotuscript for large systems
 
Scaling a High Traffic Web Application: Our Journey from Java to PHP
Scaling a High Traffic Web Application: Our Journey from Java to PHPScaling a High Traffic Web Application: Our Journey from Java to PHP
Scaling a High Traffic Web Application: Our Journey from Java to PHP
 
Scaling High Traffic Web Applications
Scaling High Traffic Web ApplicationsScaling High Traffic Web Applications
Scaling High Traffic Web Applications
 
Building Resilient Serverless Systems with Non-Serverless Components
Building Resilient Serverless Systems with Non-Serverless ComponentsBuilding Resilient Serverless Systems with Non-Serverless Components
Building Resilient Serverless Systems with Non-Serverless Components
 
Make It Cooler: Using Decentralized Version Control
Make It Cooler: Using Decentralized Version ControlMake It Cooler: Using Decentralized Version Control
Make It Cooler: Using Decentralized Version Control
 
Introduction to Agile - Scrum, Kanban, and everything in between
Introduction to Agile - Scrum, Kanban, and everything in betweenIntroduction to Agile - Scrum, Kanban, and everything in between
Introduction to Agile - Scrum, Kanban, and everything in between
 
Best practices with development of enterprise-scale SharePoint solutions - Pa...
Best practices with development of enterprise-scale SharePoint solutions - Pa...Best practices with development of enterprise-scale SharePoint solutions - Pa...
Best practices with development of enterprise-scale SharePoint solutions - Pa...
 
Serverless Toronto helps Startups
Serverless Toronto helps StartupsServerless Toronto helps Startups
Serverless Toronto helps Startups
 
AWS Lambda: Best Practices and Common Mistakes - DevOps East 2019
AWS Lambda: Best Practices and Common Mistakes - DevOps East 2019AWS Lambda: Best Practices and Common Mistakes - DevOps East 2019
AWS Lambda: Best Practices and Common Mistakes - DevOps East 2019
 
When small problems become big problems
When small problems become big problemsWhen small problems become big problems
When small problems become big problems
 
Metrics Are Not Enough: Monitoring Apache Kafka and Streaming Applications
Metrics Are Not Enough: Monitoring Apache Kafka and Streaming ApplicationsMetrics Are Not Enough: Monitoring Apache Kafka and Streaming Applications
Metrics Are Not Enough: Monitoring Apache Kafka and Streaming Applications
 
Microsoft Azure Cost Optimization and improve efficiency
Microsoft Azure Cost Optimization and improve efficiencyMicrosoft Azure Cost Optimization and improve efficiency
Microsoft Azure Cost Optimization and improve efficiency
 

More from ssuserd4e0d2

Lambda SnapStart - wellington meetup Apr-2024.pptx
Lambda SnapStart - wellington meetup Apr-2024.pptxLambda SnapStart - wellington meetup Apr-2024.pptx
Lambda SnapStart - wellington meetup Apr-2024.pptxssuserd4e0d2
 
LX-COMM-XX-Streamlined-deployment to Amazon EKS (1).pptx
LX-COMM-XX-Streamlined-deployment to Amazon EKS (1).pptxLX-COMM-XX-Streamlined-deployment to Amazon EKS (1).pptx
LX-COMM-XX-Streamlined-deployment to Amazon EKS (1).pptxssuserd4e0d2
 
Bootstrapping Clusters with EKS Blueprints.pptx
Bootstrapping Clusters with EKS Blueprints.pptxBootstrapping Clusters with EKS Blueprints.pptx
Bootstrapping Clusters with EKS Blueprints.pptxssuserd4e0d2
 
CommunityDay_Aotearoa_Geethika.pptx
CommunityDay_Aotearoa_Geethika.pptxCommunityDay_Aotearoa_Geethika.pptx
CommunityDay_Aotearoa_Geethika.pptxssuserd4e0d2
 
Accelerating Serverless Performance with AWS Lambda SnapStart
Accelerating Serverless Performance withAWS Lambda SnapStartAccelerating Serverless Performance withAWS Lambda SnapStart
Accelerating Serverless Performance with AWS Lambda SnapStartssuserd4e0d2
 
akl-reInvent-recap-2022.pptx
akl-reInvent-recap-2022.pptxakl-reInvent-recap-2022.pptx
akl-reInvent-recap-2022.pptxssuserd4e0d2
 
Architecting for Sustainability - Community Summit v1.0.pptx
Architecting for Sustainability - Community Summit v1.0.pptxArchitecting for Sustainability - Community Summit v1.0.pptx
Architecting for Sustainability - Community Summit v1.0.pptxssuserd4e0d2
 
reInventReCap.pptx
reInventReCap.pptxreInventReCap.pptx
reInventReCap.pptxssuserd4e0d2
 
Bootstrapping Clusters with EKS Blueprints.pptx
Bootstrapping Clusters with EKS Blueprints.pptxBootstrapping Clusters with EKS Blueprints.pptx
Bootstrapping Clusters with EKS Blueprints.pptxssuserd4e0d2
 
Architecting for Sustainability
Architecting for SustainabilityArchitecting for Sustainability
Architecting for Sustainabilityssuserd4e0d2
 

More from ssuserd4e0d2 (10)

Lambda SnapStart - wellington meetup Apr-2024.pptx
Lambda SnapStart - wellington meetup Apr-2024.pptxLambda SnapStart - wellington meetup Apr-2024.pptx
Lambda SnapStart - wellington meetup Apr-2024.pptx
 
LX-COMM-XX-Streamlined-deployment to Amazon EKS (1).pptx
LX-COMM-XX-Streamlined-deployment to Amazon EKS (1).pptxLX-COMM-XX-Streamlined-deployment to Amazon EKS (1).pptx
LX-COMM-XX-Streamlined-deployment to Amazon EKS (1).pptx
 
Bootstrapping Clusters with EKS Blueprints.pptx
Bootstrapping Clusters with EKS Blueprints.pptxBootstrapping Clusters with EKS Blueprints.pptx
Bootstrapping Clusters with EKS Blueprints.pptx
 
CommunityDay_Aotearoa_Geethika.pptx
CommunityDay_Aotearoa_Geethika.pptxCommunityDay_Aotearoa_Geethika.pptx
CommunityDay_Aotearoa_Geethika.pptx
 
Accelerating Serverless Performance with AWS Lambda SnapStart
Accelerating Serverless Performance withAWS Lambda SnapStartAccelerating Serverless Performance withAWS Lambda SnapStart
Accelerating Serverless Performance with AWS Lambda SnapStart
 
akl-reInvent-recap-2022.pptx
akl-reInvent-recap-2022.pptxakl-reInvent-recap-2022.pptx
akl-reInvent-recap-2022.pptx
 
Architecting for Sustainability - Community Summit v1.0.pptx
Architecting for Sustainability - Community Summit v1.0.pptxArchitecting for Sustainability - Community Summit v1.0.pptx
Architecting for Sustainability - Community Summit v1.0.pptx
 
reInventReCap.pptx
reInventReCap.pptxreInventReCap.pptx
reInventReCap.pptx
 
Bootstrapping Clusters with EKS Blueprints.pptx
Bootstrapping Clusters with EKS Blueprints.pptxBootstrapping Clusters with EKS Blueprints.pptx
Bootstrapping Clusters with EKS Blueprints.pptx
 
Architecting for Sustainability
Architecting for SustainabilityArchitecting for Sustainability
Architecting for Sustainability
 

Recently uploaded

Developing An App To Navigate The Roads of Brazil
Developing An App To Navigate The Roads of BrazilDeveloping An App To Navigate The Roads of Brazil
Developing An App To Navigate The Roads of BrazilV3cube
 
Strategies for Unlocking Knowledge Management in Microsoft 365 in the Copilot...
Strategies for Unlocking Knowledge Management in Microsoft 365 in the Copilot...Strategies for Unlocking Knowledge Management in Microsoft 365 in the Copilot...
Strategies for Unlocking Knowledge Management in Microsoft 365 in the Copilot...Drew Madelung
 
Kalyanpur ) Call Girls in Lucknow Finest Escorts Service 🍸 8923113531 🎰 Avail...
Kalyanpur ) Call Girls in Lucknow Finest Escorts Service 🍸 8923113531 🎰 Avail...Kalyanpur ) Call Girls in Lucknow Finest Escorts Service 🍸 8923113531 🎰 Avail...
Kalyanpur ) Call Girls in Lucknow Finest Escorts Service 🍸 8923113531 🎰 Avail...gurkirankumar98700
 
Scaling API-first – The story of a global engineering organization
Scaling API-first – The story of a global engineering organizationScaling API-first – The story of a global engineering organization
Scaling API-first – The story of a global engineering organizationRadu Cotescu
 
Raspberry Pi 5: Challenges and Solutions in Bringing up an OpenGL/Vulkan Driv...
Raspberry Pi 5: Challenges and Solutions in Bringing up an OpenGL/Vulkan Driv...Raspberry Pi 5: Challenges and Solutions in Bringing up an OpenGL/Vulkan Driv...
Raspberry Pi 5: Challenges and Solutions in Bringing up an OpenGL/Vulkan Driv...Igalia
 
Boost PC performance: How more available memory can improve productivity
Boost PC performance: How more available memory can improve productivityBoost PC performance: How more available memory can improve productivity
Boost PC performance: How more available memory can improve productivityPrincipled Technologies
 
CNv6 Instructor Chapter 6 Quality of Service
CNv6 Instructor Chapter 6 Quality of ServiceCNv6 Instructor Chapter 6 Quality of Service
CNv6 Instructor Chapter 6 Quality of Servicegiselly40
 
Data Cloud, More than a CDP by Matt Robison
Data Cloud, More than a CDP by Matt RobisonData Cloud, More than a CDP by Matt Robison
Data Cloud, More than a CDP by Matt RobisonAnna Loughnan Colquhoun
 
Slack Application Development 101 Slides
Slack Application Development 101 SlidesSlack Application Development 101 Slides
Slack Application Development 101 Slidespraypatel2
 
08448380779 Call Girls In Diplomatic Enclave Women Seeking Men
08448380779 Call Girls In Diplomatic Enclave Women Seeking Men08448380779 Call Girls In Diplomatic Enclave Women Seeking Men
08448380779 Call Girls In Diplomatic Enclave Women Seeking MenDelhi Call girls
 
From Event to Action: Accelerate Your Decision Making with Real-Time Automation
From Event to Action: Accelerate Your Decision Making with Real-Time AutomationFrom Event to Action: Accelerate Your Decision Making with Real-Time Automation
From Event to Action: Accelerate Your Decision Making with Real-Time AutomationSafe Software
 
Top 5 Benefits OF Using Muvi Live Paywall For Live Streams
Top 5 Benefits OF Using Muvi Live Paywall For Live StreamsTop 5 Benefits OF Using Muvi Live Paywall For Live Streams
Top 5 Benefits OF Using Muvi Live Paywall For Live StreamsRoshan Dwivedi
 
How to convert PDF to text with Nanonets
How to convert PDF to text with NanonetsHow to convert PDF to text with Nanonets
How to convert PDF to text with Nanonetsnaman860154
 
GenCyber Cyber Security Day Presentation
GenCyber Cyber Security Day PresentationGenCyber Cyber Security Day Presentation
GenCyber Cyber Security Day PresentationMichael W. Hawkins
 
Breaking the Kubernetes Kill Chain: Host Path Mount
Breaking the Kubernetes Kill Chain: Host Path MountBreaking the Kubernetes Kill Chain: Host Path Mount
Breaking the Kubernetes Kill Chain: Host Path MountPuma Security, LLC
 
The Role of Taxonomy and Ontology in Semantic Layers - Heather Hedden.pdf
The Role of Taxonomy and Ontology in Semantic Layers - Heather Hedden.pdfThe Role of Taxonomy and Ontology in Semantic Layers - Heather Hedden.pdf
The Role of Taxonomy and Ontology in Semantic Layers - Heather Hedden.pdfEnterprise Knowledge
 
Workshop - Best of Both Worlds_ Combine KG and Vector search for enhanced R...
Workshop - Best of Both Worlds_ Combine  KG and Vector search for  enhanced R...Workshop - Best of Both Worlds_ Combine  KG and Vector search for  enhanced R...
Workshop - Best of Both Worlds_ Combine KG and Vector search for enhanced R...Neo4j
 
EIS-Webinar-Prompt-Knowledge-Eng-2024-04-08.pptx
EIS-Webinar-Prompt-Knowledge-Eng-2024-04-08.pptxEIS-Webinar-Prompt-Knowledge-Eng-2024-04-08.pptx
EIS-Webinar-Prompt-Knowledge-Eng-2024-04-08.pptxEarley Information Science
 
[2024]Digital Global Overview Report 2024 Meltwater.pdf
[2024]Digital Global Overview Report 2024 Meltwater.pdf[2024]Digital Global Overview Report 2024 Meltwater.pdf
[2024]Digital Global Overview Report 2024 Meltwater.pdfhans926745
 
The 7 Things I Know About Cyber Security After 25 Years | April 2024
The 7 Things I Know About Cyber Security After 25 Years | April 2024The 7 Things I Know About Cyber Security After 25 Years | April 2024
The 7 Things I Know About Cyber Security After 25 Years | April 2024Rafal Los
 

Recently uploaded (20)

Developing An App To Navigate The Roads of Brazil
Developing An App To Navigate The Roads of BrazilDeveloping An App To Navigate The Roads of Brazil
Developing An App To Navigate The Roads of Brazil
 
Strategies for Unlocking Knowledge Management in Microsoft 365 in the Copilot...
Strategies for Unlocking Knowledge Management in Microsoft 365 in the Copilot...Strategies for Unlocking Knowledge Management in Microsoft 365 in the Copilot...
Strategies for Unlocking Knowledge Management in Microsoft 365 in the Copilot...
 
Kalyanpur ) Call Girls in Lucknow Finest Escorts Service 🍸 8923113531 🎰 Avail...
Kalyanpur ) Call Girls in Lucknow Finest Escorts Service 🍸 8923113531 🎰 Avail...Kalyanpur ) Call Girls in Lucknow Finest Escorts Service 🍸 8923113531 🎰 Avail...
Kalyanpur ) Call Girls in Lucknow Finest Escorts Service 🍸 8923113531 🎰 Avail...
 
Scaling API-first – The story of a global engineering organization
Scaling API-first – The story of a global engineering organizationScaling API-first – The story of a global engineering organization
Scaling API-first – The story of a global engineering organization
 
Raspberry Pi 5: Challenges and Solutions in Bringing up an OpenGL/Vulkan Driv...
Raspberry Pi 5: Challenges and Solutions in Bringing up an OpenGL/Vulkan Driv...Raspberry Pi 5: Challenges and Solutions in Bringing up an OpenGL/Vulkan Driv...
Raspberry Pi 5: Challenges and Solutions in Bringing up an OpenGL/Vulkan Driv...
 
Boost PC performance: How more available memory can improve productivity
Boost PC performance: How more available memory can improve productivityBoost PC performance: How more available memory can improve productivity
Boost PC performance: How more available memory can improve productivity
 
CNv6 Instructor Chapter 6 Quality of Service
CNv6 Instructor Chapter 6 Quality of ServiceCNv6 Instructor Chapter 6 Quality of Service
CNv6 Instructor Chapter 6 Quality of Service
 
Data Cloud, More than a CDP by Matt Robison
Data Cloud, More than a CDP by Matt RobisonData Cloud, More than a CDP by Matt Robison
Data Cloud, More than a CDP by Matt Robison
 
Slack Application Development 101 Slides
Slack Application Development 101 SlidesSlack Application Development 101 Slides
Slack Application Development 101 Slides
 
08448380779 Call Girls In Diplomatic Enclave Women Seeking Men
08448380779 Call Girls In Diplomatic Enclave Women Seeking Men08448380779 Call Girls In Diplomatic Enclave Women Seeking Men
08448380779 Call Girls In Diplomatic Enclave Women Seeking Men
 
From Event to Action: Accelerate Your Decision Making with Real-Time Automation
From Event to Action: Accelerate Your Decision Making with Real-Time AutomationFrom Event to Action: Accelerate Your Decision Making with Real-Time Automation
From Event to Action: Accelerate Your Decision Making with Real-Time Automation
 
Top 5 Benefits OF Using Muvi Live Paywall For Live Streams
Top 5 Benefits OF Using Muvi Live Paywall For Live StreamsTop 5 Benefits OF Using Muvi Live Paywall For Live Streams
Top 5 Benefits OF Using Muvi Live Paywall For Live Streams
 
How to convert PDF to text with Nanonets
How to convert PDF to text with NanonetsHow to convert PDF to text with Nanonets
How to convert PDF to text with Nanonets
 
GenCyber Cyber Security Day Presentation
GenCyber Cyber Security Day PresentationGenCyber Cyber Security Day Presentation
GenCyber Cyber Security Day Presentation
 
Breaking the Kubernetes Kill Chain: Host Path Mount
Breaking the Kubernetes Kill Chain: Host Path MountBreaking the Kubernetes Kill Chain: Host Path Mount
Breaking the Kubernetes Kill Chain: Host Path Mount
 
The Role of Taxonomy and Ontology in Semantic Layers - Heather Hedden.pdf
The Role of Taxonomy and Ontology in Semantic Layers - Heather Hedden.pdfThe Role of Taxonomy and Ontology in Semantic Layers - Heather Hedden.pdf
The Role of Taxonomy and Ontology in Semantic Layers - Heather Hedden.pdf
 
Workshop - Best of Both Worlds_ Combine KG and Vector search for enhanced R...
Workshop - Best of Both Worlds_ Combine  KG and Vector search for  enhanced R...Workshop - Best of Both Worlds_ Combine  KG and Vector search for  enhanced R...
Workshop - Best of Both Worlds_ Combine KG and Vector search for enhanced R...
 
EIS-Webinar-Prompt-Knowledge-Eng-2024-04-08.pptx
EIS-Webinar-Prompt-Knowledge-Eng-2024-04-08.pptxEIS-Webinar-Prompt-Knowledge-Eng-2024-04-08.pptx
EIS-Webinar-Prompt-Knowledge-Eng-2024-04-08.pptx
 
[2024]Digital Global Overview Report 2024 Meltwater.pdf
[2024]Digital Global Overview Report 2024 Meltwater.pdf[2024]Digital Global Overview Report 2024 Meltwater.pdf
[2024]Digital Global Overview Report 2024 Meltwater.pdf
 
The 7 Things I Know About Cyber Security After 25 Years | April 2024
The 7 Things I Know About Cyber Security After 25 Years | April 2024The 7 Things I Know About Cyber Security After 25 Years | April 2024
The 7 Things I Know About Cyber Security After 25 Years | April 2024
 

serverless_meetup_Jan_2023_v1.0.pptx

  • 1. Serverless Architectures The Good, The Bad & The Ugly Geethika Guruge Lead Consultant @ CMD Solutions
  • 2. Agenda • How did we get here • What's so good about this • What's not so good about serverless • When does it get really ugly • Learnings and food for thought
  • 3. How did we get here
  • 4. How did we get here
  • 5. What's so good about this • On Demand Infrastructure • You Pay for What What You Use • No Undifferentiated Heavy Lifting • The Developer Experience
  • 6. What's Not So Good • Time Outs • Gets too complicated too soon • Dependency management • Not Everything is stateless
  • 7. When Does It Get Really Ugly • Lambdalith (Lambda Monolith) • Lambda Orchestrator • Lambda Pinball • Invocation Loops • Lambda calling Lambda • Synchronous waiting
  • 8. Lambdalith (Lambda Monolith) What's so bad? • Package size • Harder to enforce least privilege • Harder to upgrade • Harder to maintain • Harder to reuse code • Harder to test Useful Hints
  • 9. Lambda Orchestrator A Typical Order Workflow 1. Customer places an order 2. System notifies the restaurant 3. Restaurant accepts the order 4. System notifies the customer 5. Food is delivered to the customer
  • 10. Lambda Pinball 1. A customer places an order 2. place-order function calls the notify- restaurant function . 3. notify-restaurant function sends a message to the restaurant. 4. The restaurant Accept Order, which calls the orders API. 5. accept-order function is called, and it triggers notify-user function 6. notify-user function sends an order confirmation to the customer. 7. Once the food is delivered, the restaurant completes the order. This calls the orders API. 8. complete-order function is called Useful Hint • Use Step Functions to orchestrate the workflow
  • 11. Invocation Loops • Lambda will automatically scale • S3 will continue to write • You will receive a $BILL_SHOCK$ Useful Hints • The service or resource that invokes a Lambda function should be different to the service or resource that the function outputs to. • Use a positive trigger – use metadata to trigger the lambda only on the first S3 Put Object • Use reserved concurrency for lambda • Use Alarms (CloudWatch)
  • 12. Lambda calling Lambda • Cost – you pay for the duration • Error handling – Complex • Tight coupling • Scaling – Concurrency for all lambdas must be equal Useful Hints • Use SQS – Create order publishes to a queue and Process payment consumes from the queue • Use Step Functions to orchestrate the workflow
  • 13. Synchronous waiting • Wait times are compounded OR Useful Hints
  • 14. Learnings & Food for Thought • Serverless is NOT a silver bullet • Treat Observability as a first class citizen • Serverless is NOT just Lambda
  • 15. AWS Programming & Tooling Meetups  Kick off 16th February 2023  3rd Week of every month there after  AWS Credit Vouchers $$$ and more….  Things you can expect  Debugging in the cloud: When things stop working, what tools can I use to find the root cause?  “Should I stay or should I go 🎶”: The untold list of things to consider before choosing between single region vs Multi-region  Tell me why you can't run on spot instances? Common misconceptions about the model, practical solutions and why you might be missing out great savings!  How to protect your secrets in AWS Lambda? and what are the tradeoffs  How to test your serverless application  Build your own ngrok in AWS