SlideShare a Scribd company logo
© 2024, Amazon Web Services, Inc. or its affiliates. All rights reserved.
B E N G A L U R U | M A Y 1 5 , 2 0 2 4
© 2024, Amazon Web Services, Inc. or its affiliates. All rights reserved.
How we scaled our application
for 80K users by doing nothing!
Srushith Repakula
Head of Engineering, KonfHub
AWS Serverless Hero
© 2024, Amazon Web Services, Inc. or its affiliates. All rights reserved.
Agenda
1. The What?
2. The How?
3. Best Practices
4. Lessons learned
© 2024, Amazon Web Services, Inc. or its affiliates. All rights reserved.
The What?
• An app to check-in attendees for events
• Works both offline and online
• Real time updates and auto sync of data across
devices
• Scale for an event with 80K attendees!
© 2024, Amazon Web Services, Inc. or its affiliates. All rights reserved.
What did we do?
© 2024, Amazon Web Services, Inc. or its affiliates. All rights reserved.
Region
Amazon DynamoDB
Amazon Aurora
Stream
AWS AppSync AWS Lambda
Amazon Cognito Amazon CloudWatch
Amazon EventBridge Amazon Simple Email
Service (Amazon SES)
How did we do? (The 10,000 ft view)
AWS Amplify
In-app/
browser storage
© 2024, Amazon Web Services, Inc. or its affiliates. All rights reserved.
“The How” - AppSync
• Serverless GraphQL APIs, with in-built support for real time
subscriptions using WebSockets
• Offline data synchronisation using Amplify DataStore
• Lambda-less integration with data sources like DynamoDB, RDS (using
data API) and much more!
• Fine-grained access control
© 2024, Amazon Web Services, Inc. or its affiliates. All rights reserved.
AppSync in Action
30K
60K
90K
© 2024, Amazon Web Services, Inc. or its affiliates. All rights reserved.
“The How?” - DynamoDB Global Tables
• Leveraged DynamoDB Global table to
replicate data across region, without any
changes to the application code
• Helps in disaster recovery and provides
a backup option
• Improves performance for global users
• Consistency and conflict resolution
© 2024, Amazon Web Services, Inc. or its affiliates. All rights reserved.
“The How?” - The Scaling part
© 2024, Amazon Web Services, Inc. or its affiliates. All rights reserved.
How to calculate concurrency?
© 2024, Amazon Web Services, Inc. or its affiliates. All rights reserved.
How to calculate concurrency?
© 2024, Amazon Web Services, Inc. or its affiliates. All rights reserved.
How to calculate concurrency?
© 2024, Amazon Web Services, Inc. or its affiliates. All rights reserved.
Reserved vs Provisioned Concurrency
• Max number of execution
environment instances
• Provisioned on-demand
• Cold starts still exist
• Throttled when the reserved
concurrency limit is reached
• No extra charges
• Pre-provisioned execution
environments
• No cold starts
• Function uses unreserved
concurrency if reserved
concurrency not set
• Extra charges applicable
© 2024, Amazon Web Services, Inc. or its affiliates. All rights reserved.
So, what did we do? - Provisioned Concurrency
• Improved performance and reduced costs
• Cost per millisecond of execution time is
about ~60% cheaper
• Advisable only for functions that have
predictable and high throughput
© 2024, Amazon Web Services, Inc. or its affiliates. All rights reserved.
So, what did we do? - Sizing Lambda Functions
• Choosing the memory allocated
to Lambda functions is an
optimization process that
balances speed (duration) and
cost
• Changing the Lambda instruction
set architecture - arm64 vs
x86_64
© 2024, Amazon Web Services, Inc. or its affiliates. All rights reserved.
Best Practices & Lessons Learned
• Leverage caching wherever feasible
• Keep an eye on the code initialization - the “init” duration
• Optimize function configuration to reduce cost and boost performance
• Identify components of your architecture that might not scale - non
Serverless components, and architect your application around this
limitation
• Load test and be prepared for things to fail!
• Look out for throttling and service limits
© 2024, Amazon Web Services, Inc. or its affiliates. All rights reserved.
© 2024, Amazon Web Services, Inc. or its affiliates. All rights reserved.
Thank you! Please complete the session
survey in the mobile app
Srushith Repakula
@SrushithR

More Related Content

Similar to How we scaled to 80K users by doing nothing!.pdf

Streamline the Migration and Management of Your Microsoft Apps on AWS
 Streamline the Migration and Management of Your Microsoft Apps on AWS Streamline the Migration and Management of Your Microsoft Apps on AWS
Streamline the Migration and Management of Your Microsoft Apps on AWS
Amazon Web Services
 
Scale up a Web Application (ARC409-R) - AWS re:Invent 2018
Scale up a Web Application (ARC409-R) - AWS re:Invent 2018Scale up a Web Application (ARC409-R) - AWS re:Invent 2018
Scale up a Web Application (ARC409-R) - AWS re:Invent 2018
Amazon Web Services
 
Introduction to Serverless computing and AWS Lambda - Floor28
Introduction to Serverless computing and AWS Lambda - Floor28Introduction to Serverless computing and AWS Lambda - Floor28
Introduction to Serverless computing and AWS Lambda - Floor28
Boaz Ziniman
 
Introduction to Serverless computing and AWS Lambda | AWS Floor28
Introduction to Serverless computing and AWS Lambda | AWS Floor28Introduction to Serverless computing and AWS Lambda | AWS Floor28
Introduction to Serverless computing and AWS Lambda | AWS Floor28
Amazon Web Services
 
Scaling and Automating DevOps with CloudBees and Spot Instances (GPSTEC310) -...
Scaling and Automating DevOps with CloudBees and Spot Instances (GPSTEC310) -...Scaling and Automating DevOps with CloudBees and Spot Instances (GPSTEC310) -...
Scaling and Automating DevOps with CloudBees and Spot Instances (GPSTEC310) -...
Amazon Web Services
 
Wildrydes Serverless Workshop Tel Aviv
Wildrydes Serverless Workshop Tel AvivWildrydes Serverless Workshop Tel Aviv
Wildrydes Serverless Workshop Tel Aviv
Boaz Ziniman
 
Getting Started with Serverless Architectures
Getting Started with Serverless ArchitecturesGetting Started with Serverless Architectures
Getting Started with Serverless Architectures
Amazon Web Services
 
AWS Outposts Update
AWS Outposts UpdateAWS Outposts Update
AWS Outposts Update
AWS Daily News
 
Ripping off the Bandage: Re-Architecting Traditional Three-Tier Monoliths to ...
Ripping off the Bandage: Re-Architecting Traditional Three-Tier Monoliths to ...Ripping off the Bandage: Re-Architecting Traditional Three-Tier Monoliths to ...
Ripping off the Bandage: Re-Architecting Traditional Three-Tier Monoliths to ...
Amazon Web Services
 
[NEW LAUNCH!] Introducing AWS App Mesh – service mesh on AWS (CON367) - AWS r...
[NEW LAUNCH!] Introducing AWS App Mesh – service mesh on AWS (CON367) - AWS r...[NEW LAUNCH!] Introducing AWS App Mesh – service mesh on AWS (CON367) - AWS r...
[NEW LAUNCH!] Introducing AWS App Mesh – service mesh on AWS (CON367) - AWS r...
Amazon Web Services
 
Enabling Your Organization’s Amazon Redshift Adoption – Going from Zero to He...
Enabling Your Organization’s Amazon Redshift Adoption – Going from Zero to He...Enabling Your Organization’s Amazon Redshift Adoption – Going from Zero to He...
Enabling Your Organization’s Amazon Redshift Adoption – Going from Zero to He...
Amazon Web Services
 
Serverless SaaS apllications on AWS
Serverless SaaS apllications on AWSServerless SaaS apllications on AWS
Serverless SaaS apllications on AWS
Amazon Web Services
 
Serverless Architectural Patterns and Best Practices
Serverless Architectural Patterns and Best PracticesServerless Architectural Patterns and Best Practices
Serverless Architectural Patterns and Best Practices
Amazon Web Services
 
AWS FSI Symposium 2017 NYC - Moving at the Speed of Serverless ft Broadridge
AWS FSI Symposium 2017 NYC - Moving at the Speed of Serverless ft BroadridgeAWS FSI Symposium 2017 NYC - Moving at the Speed of Serverless ft Broadridge
AWS FSI Symposium 2017 NYC - Moving at the Speed of Serverless ft Broadridge
Amazon Web Services
 
From Monolithic to Modern Apps: Best Practices
From Monolithic to Modern Apps: Best PracticesFrom Monolithic to Modern Apps: Best Practices
From Monolithic to Modern Apps: Best Practices
Tom Laszewski
 
What's New in Serverless - SRV305 - re:Invent 2017
What's New in Serverless - SRV305 - re:Invent 2017What's New in Serverless - SRV305 - re:Invent 2017
What's New in Serverless - SRV305 - re:Invent 2017
Amazon Web Services
 
AWS re:Invent 2016: Relational and NoSQL Databases on AWS: NBC, MarkLogic, an...
AWS re:Invent 2016: Relational and NoSQL Databases on AWS: NBC, MarkLogic, an...AWS re:Invent 2016: Relational and NoSQL Databases on AWS: NBC, MarkLogic, an...
AWS re:Invent 2016: Relational and NoSQL Databases on AWS: NBC, MarkLogic, an...
Amazon Web Services
 
Going Serverless at AWS Startup Day Bangalore
Going Serverless at AWS Startup Day Bangalore Going Serverless at AWS Startup Day Bangalore
Going Serverless at AWS Startup Day Bangalore
Madhusudan Shekar
 
How to Build Scalable Serverless Applications
How to Build Scalable Serverless ApplicationsHow to Build Scalable Serverless Applications
How to Build Scalable Serverless Applications
Amazon Web Services
 
ISV Best Practices - AWS Partner Summit Mumbai 2018.pdf
ISV Best Practices - AWS Partner Summit Mumbai 2018.pdfISV Best Practices - AWS Partner Summit Mumbai 2018.pdf
ISV Best Practices - AWS Partner Summit Mumbai 2018.pdf
Amazon Web Services
 

Similar to How we scaled to 80K users by doing nothing!.pdf (20)

Streamline the Migration and Management of Your Microsoft Apps on AWS
 Streamline the Migration and Management of Your Microsoft Apps on AWS Streamline the Migration and Management of Your Microsoft Apps on AWS
Streamline the Migration and Management of Your Microsoft Apps on AWS
 
Scale up a Web Application (ARC409-R) - AWS re:Invent 2018
Scale up a Web Application (ARC409-R) - AWS re:Invent 2018Scale up a Web Application (ARC409-R) - AWS re:Invent 2018
Scale up a Web Application (ARC409-R) - AWS re:Invent 2018
 
Introduction to Serverless computing and AWS Lambda - Floor28
Introduction to Serverless computing and AWS Lambda - Floor28Introduction to Serverless computing and AWS Lambda - Floor28
Introduction to Serverless computing and AWS Lambda - Floor28
 
Introduction to Serverless computing and AWS Lambda | AWS Floor28
Introduction to Serverless computing and AWS Lambda | AWS Floor28Introduction to Serverless computing and AWS Lambda | AWS Floor28
Introduction to Serverless computing and AWS Lambda | AWS Floor28
 
Scaling and Automating DevOps with CloudBees and Spot Instances (GPSTEC310) -...
Scaling and Automating DevOps with CloudBees and Spot Instances (GPSTEC310) -...Scaling and Automating DevOps with CloudBees and Spot Instances (GPSTEC310) -...
Scaling and Automating DevOps with CloudBees and Spot Instances (GPSTEC310) -...
 
Wildrydes Serverless Workshop Tel Aviv
Wildrydes Serverless Workshop Tel AvivWildrydes Serverless Workshop Tel Aviv
Wildrydes Serverless Workshop Tel Aviv
 
Getting Started with Serverless Architectures
Getting Started with Serverless ArchitecturesGetting Started with Serverless Architectures
Getting Started with Serverless Architectures
 
AWS Outposts Update
AWS Outposts UpdateAWS Outposts Update
AWS Outposts Update
 
Ripping off the Bandage: Re-Architecting Traditional Three-Tier Monoliths to ...
Ripping off the Bandage: Re-Architecting Traditional Three-Tier Monoliths to ...Ripping off the Bandage: Re-Architecting Traditional Three-Tier Monoliths to ...
Ripping off the Bandage: Re-Architecting Traditional Three-Tier Monoliths to ...
 
[NEW LAUNCH!] Introducing AWS App Mesh – service mesh on AWS (CON367) - AWS r...
[NEW LAUNCH!] Introducing AWS App Mesh – service mesh on AWS (CON367) - AWS r...[NEW LAUNCH!] Introducing AWS App Mesh – service mesh on AWS (CON367) - AWS r...
[NEW LAUNCH!] Introducing AWS App Mesh – service mesh on AWS (CON367) - AWS r...
 
Enabling Your Organization’s Amazon Redshift Adoption – Going from Zero to He...
Enabling Your Organization’s Amazon Redshift Adoption – Going from Zero to He...Enabling Your Organization’s Amazon Redshift Adoption – Going from Zero to He...
Enabling Your Organization’s Amazon Redshift Adoption – Going from Zero to He...
 
Serverless SaaS apllications on AWS
Serverless SaaS apllications on AWSServerless SaaS apllications on AWS
Serverless SaaS apllications on AWS
 
Serverless Architectural Patterns and Best Practices
Serverless Architectural Patterns and Best PracticesServerless Architectural Patterns and Best Practices
Serverless Architectural Patterns and Best Practices
 
AWS FSI Symposium 2017 NYC - Moving at the Speed of Serverless ft Broadridge
AWS FSI Symposium 2017 NYC - Moving at the Speed of Serverless ft BroadridgeAWS FSI Symposium 2017 NYC - Moving at the Speed of Serverless ft Broadridge
AWS FSI Symposium 2017 NYC - Moving at the Speed of Serverless ft Broadridge
 
From Monolithic to Modern Apps: Best Practices
From Monolithic to Modern Apps: Best PracticesFrom Monolithic to Modern Apps: Best Practices
From Monolithic to Modern Apps: Best Practices
 
What's New in Serverless - SRV305 - re:Invent 2017
What's New in Serverless - SRV305 - re:Invent 2017What's New in Serverless - SRV305 - re:Invent 2017
What's New in Serverless - SRV305 - re:Invent 2017
 
AWS re:Invent 2016: Relational and NoSQL Databases on AWS: NBC, MarkLogic, an...
AWS re:Invent 2016: Relational and NoSQL Databases on AWS: NBC, MarkLogic, an...AWS re:Invent 2016: Relational and NoSQL Databases on AWS: NBC, MarkLogic, an...
AWS re:Invent 2016: Relational and NoSQL Databases on AWS: NBC, MarkLogic, an...
 
Going Serverless at AWS Startup Day Bangalore
Going Serverless at AWS Startup Day Bangalore Going Serverless at AWS Startup Day Bangalore
Going Serverless at AWS Startup Day Bangalore
 
How to Build Scalable Serverless Applications
How to Build Scalable Serverless ApplicationsHow to Build Scalable Serverless Applications
How to Build Scalable Serverless Applications
 
ISV Best Practices - AWS Partner Summit Mumbai 2018.pdf
ISV Best Practices - AWS Partner Summit Mumbai 2018.pdfISV Best Practices - AWS Partner Summit Mumbai 2018.pdf
ISV Best Practices - AWS Partner Summit Mumbai 2018.pdf
 

More from Srushith Repakula

Lessons Learned from Building a Serverless Notifications System.pdf
Lessons Learned from Building a Serverless Notifications System.pdfLessons Learned from Building a Serverless Notifications System.pdf
Lessons Learned from Building a Serverless Notifications System.pdf
Srushith Repakula
 
Serverless - Your Gateway to the Cloud!
Serverless -  Your Gateway to the Cloud!Serverless -  Your Gateway to the Cloud!
Serverless - Your Gateway to the Cloud!
Srushith Repakula
 
Experiences in Architecting & Implementing Platforms using Serverless.pdf
Experiences in Architecting & Implementing Platforms using Serverless.pdfExperiences in Architecting & Implementing Platforms using Serverless.pdf
Experiences in Architecting & Implementing Platforms using Serverless.pdf
Srushith Repakula
 
Serverless: Beyond Lambda Functions (V2)
Serverless: Beyond Lambda Functions (V2)Serverless: Beyond Lambda Functions (V2)
Serverless: Beyond Lambda Functions (V2)
Srushith Repakula
 
Getting Started with Amazon EventBridge
Getting Started with Amazon EventBridgeGetting Started with Amazon EventBridge
Getting Started with Amazon EventBridge
Srushith Repakula
 
CICD in the World of Serverless
CICD in the World of ServerlessCICD in the World of Serverless
CICD in the World of Serverless
Srushith Repakula
 
Real Time Serverless Polling App
Real Time Serverless Polling AppReal Time Serverless Polling App
Real Time Serverless Polling App
Srushith Repakula
 
Serverless Workshop - Tomato Restaurant Rating App
Serverless Workshop - Tomato Restaurant Rating AppServerless Workshop - Tomato Restaurant Rating App
Serverless Workshop - Tomato Restaurant Rating App
Srushith Repakula
 
Become Thanos of the LambdaLand: Wield all the Infinity Stones
Become Thanos of the LambdaLand: Wield all the Infinity StonesBecome Thanos of the LambdaLand: Wield all the Infinity Stones
Become Thanos of the LambdaLand: Wield all the Infinity Stones
Srushith Repakula
 
Serverless by Examples and Case Studies
Serverless by Examples and Case StudiesServerless by Examples and Case Studies
Serverless by Examples and Case Studies
Srushith Repakula
 
Lambda land: Running a serverless ticketing platform for less than $2 a month
Lambda land: Running a serverless ticketing platform for less than $2 a monthLambda land: Running a serverless ticketing platform for less than $2 a month
Lambda land: Running a serverless ticketing platform for less than $2 a month
Srushith Repakula
 
AWS Lambda Hands-on: How to Create Phone Call Notifications in a Serverless Way
 AWS Lambda Hands-on: How to Create Phone Call Notifications in a Serverless Way AWS Lambda Hands-on: How to Create Phone Call Notifications in a Serverless Way
AWS Lambda Hands-on: How to Create Phone Call Notifications in a Serverless Way
Srushith Repakula
 
Chatbots with Serverless
Chatbots with ServerlessChatbots with Serverless
Chatbots with Serverless
Srushith Repakula
 
Keep Calm and Code Python - Build Cool Stuff Uing Python
Keep Calm and Code Python - Build Cool Stuff Uing PythonKeep Calm and Code Python - Build Cool Stuff Uing Python
Keep Calm and Code Python - Build Cool Stuff Uing Python
Srushith Repakula
 
Serverless: Why is it hot and What is it not?
Serverless: Why is it hot and What is it not?Serverless: Why is it hot and What is it not?
Serverless: Why is it hot and What is it not?
Srushith Repakula
 
Scheduled Retweets Using AWS Lambda
Scheduled Retweets Using AWS LambdaScheduled Retweets Using AWS Lambda
Scheduled Retweets Using AWS Lambda
Srushith Repakula
 

More from Srushith Repakula (16)

Lessons Learned from Building a Serverless Notifications System.pdf
Lessons Learned from Building a Serverless Notifications System.pdfLessons Learned from Building a Serverless Notifications System.pdf
Lessons Learned from Building a Serverless Notifications System.pdf
 
Serverless - Your Gateway to the Cloud!
Serverless -  Your Gateway to the Cloud!Serverless -  Your Gateway to the Cloud!
Serverless - Your Gateway to the Cloud!
 
Experiences in Architecting & Implementing Platforms using Serverless.pdf
Experiences in Architecting & Implementing Platforms using Serverless.pdfExperiences in Architecting & Implementing Platforms using Serverless.pdf
Experiences in Architecting & Implementing Platforms using Serverless.pdf
 
Serverless: Beyond Lambda Functions (V2)
Serverless: Beyond Lambda Functions (V2)Serverless: Beyond Lambda Functions (V2)
Serverless: Beyond Lambda Functions (V2)
 
Getting Started with Amazon EventBridge
Getting Started with Amazon EventBridgeGetting Started with Amazon EventBridge
Getting Started with Amazon EventBridge
 
CICD in the World of Serverless
CICD in the World of ServerlessCICD in the World of Serverless
CICD in the World of Serverless
 
Real Time Serverless Polling App
Real Time Serverless Polling AppReal Time Serverless Polling App
Real Time Serverless Polling App
 
Serverless Workshop - Tomato Restaurant Rating App
Serverless Workshop - Tomato Restaurant Rating AppServerless Workshop - Tomato Restaurant Rating App
Serverless Workshop - Tomato Restaurant Rating App
 
Become Thanos of the LambdaLand: Wield all the Infinity Stones
Become Thanos of the LambdaLand: Wield all the Infinity StonesBecome Thanos of the LambdaLand: Wield all the Infinity Stones
Become Thanos of the LambdaLand: Wield all the Infinity Stones
 
Serverless by Examples and Case Studies
Serverless by Examples and Case StudiesServerless by Examples and Case Studies
Serverless by Examples and Case Studies
 
Lambda land: Running a serverless ticketing platform for less than $2 a month
Lambda land: Running a serverless ticketing platform for less than $2 a monthLambda land: Running a serverless ticketing platform for less than $2 a month
Lambda land: Running a serverless ticketing platform for less than $2 a month
 
AWS Lambda Hands-on: How to Create Phone Call Notifications in a Serverless Way
 AWS Lambda Hands-on: How to Create Phone Call Notifications in a Serverless Way AWS Lambda Hands-on: How to Create Phone Call Notifications in a Serverless Way
AWS Lambda Hands-on: How to Create Phone Call Notifications in a Serverless Way
 
Chatbots with Serverless
Chatbots with ServerlessChatbots with Serverless
Chatbots with Serverless
 
Keep Calm and Code Python - Build Cool Stuff Uing Python
Keep Calm and Code Python - Build Cool Stuff Uing PythonKeep Calm and Code Python - Build Cool Stuff Uing Python
Keep Calm and Code Python - Build Cool Stuff Uing Python
 
Serverless: Why is it hot and What is it not?
Serverless: Why is it hot and What is it not?Serverless: Why is it hot and What is it not?
Serverless: Why is it hot and What is it not?
 
Scheduled Retweets Using AWS Lambda
Scheduled Retweets Using AWS LambdaScheduled Retweets Using AWS Lambda
Scheduled Retweets Using AWS Lambda
 

Recently uploaded

Microsoft - Power Platform_G.Aspiotis.pdf
Microsoft - Power Platform_G.Aspiotis.pdfMicrosoft - Power Platform_G.Aspiotis.pdf
Microsoft - Power Platform_G.Aspiotis.pdf
Uni Systems S.M.S.A.
 
GraphSummit Singapore | The Art of the Possible with Graph - Q2 2024
GraphSummit Singapore | The Art of the  Possible with Graph - Q2 2024GraphSummit Singapore | The Art of the  Possible with Graph - Q2 2024
GraphSummit Singapore | The Art of the Possible with Graph - Q2 2024
Neo4j
 
Let's Integrate MuleSoft RPA, COMPOSER, APM with AWS IDP along with Slack
Let's Integrate MuleSoft RPA, COMPOSER, APM with AWS IDP along with SlackLet's Integrate MuleSoft RPA, COMPOSER, APM with AWS IDP along with Slack
Let's Integrate MuleSoft RPA, COMPOSER, APM with AWS IDP along with Slack
shyamraj55
 
GraphSummit Singapore | The Future of Agility: Supercharging Digital Transfor...
GraphSummit Singapore | The Future of Agility: Supercharging Digital Transfor...GraphSummit Singapore | The Future of Agility: Supercharging Digital Transfor...
GraphSummit Singapore | The Future of Agility: Supercharging Digital Transfor...
Neo4j
 
20240607 QFM018 Elixir Reading List May 2024
20240607 QFM018 Elixir Reading List May 202420240607 QFM018 Elixir Reading List May 2024
20240607 QFM018 Elixir Reading List May 2024
Matthew Sinclair
 
National Security Agency - NSA mobile device best practices
National Security Agency - NSA mobile device best practicesNational Security Agency - NSA mobile device best practices
National Security Agency - NSA mobile device best practices
Quotidiano Piemontese
 
Cosa hanno in comune un mattoncino Lego e la backdoor XZ?
Cosa hanno in comune un mattoncino Lego e la backdoor XZ?Cosa hanno in comune un mattoncino Lego e la backdoor XZ?
Cosa hanno in comune un mattoncino Lego e la backdoor XZ?
Speck&Tech
 
20 Comprehensive Checklist of Designing and Developing a Website
20 Comprehensive Checklist of Designing and Developing a Website20 Comprehensive Checklist of Designing and Developing a Website
20 Comprehensive Checklist of Designing and Developing a Website
Pixlogix Infotech
 
Why You Should Replace Windows 11 with Nitrux Linux 3.5.0 for enhanced perfor...
Why You Should Replace Windows 11 with Nitrux Linux 3.5.0 for enhanced perfor...Why You Should Replace Windows 11 with Nitrux Linux 3.5.0 for enhanced perfor...
Why You Should Replace Windows 11 with Nitrux Linux 3.5.0 for enhanced perfor...
SOFTTECHHUB
 
GraphSummit Singapore | Neo4j Product Vision & Roadmap - Q2 2024
GraphSummit Singapore | Neo4j Product Vision & Roadmap - Q2 2024GraphSummit Singapore | Neo4j Product Vision & Roadmap - Q2 2024
GraphSummit Singapore | Neo4j Product Vision & Roadmap - Q2 2024
Neo4j
 
GraphSummit Singapore | Graphing Success: Revolutionising Organisational Stru...
GraphSummit Singapore | Graphing Success: Revolutionising Organisational Stru...GraphSummit Singapore | Graphing Success: Revolutionising Organisational Stru...
GraphSummit Singapore | Graphing Success: Revolutionising Organisational Stru...
Neo4j
 
Artificial Intelligence for XMLDevelopment
Artificial Intelligence for XMLDevelopmentArtificial Intelligence for XMLDevelopment
Artificial Intelligence for XMLDevelopment
Octavian Nadolu
 
Full-RAG: A modern architecture for hyper-personalization
Full-RAG: A modern architecture for hyper-personalizationFull-RAG: A modern architecture for hyper-personalization
Full-RAG: A modern architecture for hyper-personalization
Zilliz
 
How to use Firebase Data Connect For Flutter
How to use Firebase Data Connect For FlutterHow to use Firebase Data Connect For Flutter
How to use Firebase Data Connect For Flutter
Daiki Mogmet Ito
 
Video Streaming: Then, Now, and in the Future
Video Streaming: Then, Now, and in the FutureVideo Streaming: Then, Now, and in the Future
Video Streaming: Then, Now, and in the Future
Alpen-Adria-Universität
 
Mind map of terminologies used in context of Generative AI
Mind map of terminologies used in context of Generative AIMind map of terminologies used in context of Generative AI
Mind map of terminologies used in context of Generative AI
Kumud Singh
 
“I’m still / I’m still / Chaining from the Block”
“I’m still / I’m still / Chaining from the Block”“I’m still / I’m still / Chaining from the Block”
“I’m still / I’m still / Chaining from the Block”
Claudio Di Ciccio
 
UiPath Test Automation using UiPath Test Suite series, part 6
UiPath Test Automation using UiPath Test Suite series, part 6UiPath Test Automation using UiPath Test Suite series, part 6
UiPath Test Automation using UiPath Test Suite series, part 6
DianaGray10
 
How to Get CNIC Information System with Paksim Ga.pptx
How to Get CNIC Information System with Paksim Ga.pptxHow to Get CNIC Information System with Paksim Ga.pptx
How to Get CNIC Information System with Paksim Ga.pptx
danishmna97
 
Introduction to CHERI technology - Cybersecurity
Introduction to CHERI technology - CybersecurityIntroduction to CHERI technology - Cybersecurity
Introduction to CHERI technology - Cybersecurity
mikeeftimakis1
 

Recently uploaded (20)

Microsoft - Power Platform_G.Aspiotis.pdf
Microsoft - Power Platform_G.Aspiotis.pdfMicrosoft - Power Platform_G.Aspiotis.pdf
Microsoft - Power Platform_G.Aspiotis.pdf
 
GraphSummit Singapore | The Art of the Possible with Graph - Q2 2024
GraphSummit Singapore | The Art of the  Possible with Graph - Q2 2024GraphSummit Singapore | The Art of the  Possible with Graph - Q2 2024
GraphSummit Singapore | The Art of the Possible with Graph - Q2 2024
 
Let's Integrate MuleSoft RPA, COMPOSER, APM with AWS IDP along with Slack
Let's Integrate MuleSoft RPA, COMPOSER, APM with AWS IDP along with SlackLet's Integrate MuleSoft RPA, COMPOSER, APM with AWS IDP along with Slack
Let's Integrate MuleSoft RPA, COMPOSER, APM with AWS IDP along with Slack
 
GraphSummit Singapore | The Future of Agility: Supercharging Digital Transfor...
GraphSummit Singapore | The Future of Agility: Supercharging Digital Transfor...GraphSummit Singapore | The Future of Agility: Supercharging Digital Transfor...
GraphSummit Singapore | The Future of Agility: Supercharging Digital Transfor...
 
20240607 QFM018 Elixir Reading List May 2024
20240607 QFM018 Elixir Reading List May 202420240607 QFM018 Elixir Reading List May 2024
20240607 QFM018 Elixir Reading List May 2024
 
National Security Agency - NSA mobile device best practices
National Security Agency - NSA mobile device best practicesNational Security Agency - NSA mobile device best practices
National Security Agency - NSA mobile device best practices
 
Cosa hanno in comune un mattoncino Lego e la backdoor XZ?
Cosa hanno in comune un mattoncino Lego e la backdoor XZ?Cosa hanno in comune un mattoncino Lego e la backdoor XZ?
Cosa hanno in comune un mattoncino Lego e la backdoor XZ?
 
20 Comprehensive Checklist of Designing and Developing a Website
20 Comprehensive Checklist of Designing and Developing a Website20 Comprehensive Checklist of Designing and Developing a Website
20 Comprehensive Checklist of Designing and Developing a Website
 
Why You Should Replace Windows 11 with Nitrux Linux 3.5.0 for enhanced perfor...
Why You Should Replace Windows 11 with Nitrux Linux 3.5.0 for enhanced perfor...Why You Should Replace Windows 11 with Nitrux Linux 3.5.0 for enhanced perfor...
Why You Should Replace Windows 11 with Nitrux Linux 3.5.0 for enhanced perfor...
 
GraphSummit Singapore | Neo4j Product Vision & Roadmap - Q2 2024
GraphSummit Singapore | Neo4j Product Vision & Roadmap - Q2 2024GraphSummit Singapore | Neo4j Product Vision & Roadmap - Q2 2024
GraphSummit Singapore | Neo4j Product Vision & Roadmap - Q2 2024
 
GraphSummit Singapore | Graphing Success: Revolutionising Organisational Stru...
GraphSummit Singapore | Graphing Success: Revolutionising Organisational Stru...GraphSummit Singapore | Graphing Success: Revolutionising Organisational Stru...
GraphSummit Singapore | Graphing Success: Revolutionising Organisational Stru...
 
Artificial Intelligence for XMLDevelopment
Artificial Intelligence for XMLDevelopmentArtificial Intelligence for XMLDevelopment
Artificial Intelligence for XMLDevelopment
 
Full-RAG: A modern architecture for hyper-personalization
Full-RAG: A modern architecture for hyper-personalizationFull-RAG: A modern architecture for hyper-personalization
Full-RAG: A modern architecture for hyper-personalization
 
How to use Firebase Data Connect For Flutter
How to use Firebase Data Connect For FlutterHow to use Firebase Data Connect For Flutter
How to use Firebase Data Connect For Flutter
 
Video Streaming: Then, Now, and in the Future
Video Streaming: Then, Now, and in the FutureVideo Streaming: Then, Now, and in the Future
Video Streaming: Then, Now, and in the Future
 
Mind map of terminologies used in context of Generative AI
Mind map of terminologies used in context of Generative AIMind map of terminologies used in context of Generative AI
Mind map of terminologies used in context of Generative AI
 
“I’m still / I’m still / Chaining from the Block”
“I’m still / I’m still / Chaining from the Block”“I’m still / I’m still / Chaining from the Block”
“I’m still / I’m still / Chaining from the Block”
 
UiPath Test Automation using UiPath Test Suite series, part 6
UiPath Test Automation using UiPath Test Suite series, part 6UiPath Test Automation using UiPath Test Suite series, part 6
UiPath Test Automation using UiPath Test Suite series, part 6
 
How to Get CNIC Information System with Paksim Ga.pptx
How to Get CNIC Information System with Paksim Ga.pptxHow to Get CNIC Information System with Paksim Ga.pptx
How to Get CNIC Information System with Paksim Ga.pptx
 
Introduction to CHERI technology - Cybersecurity
Introduction to CHERI technology - CybersecurityIntroduction to CHERI technology - Cybersecurity
Introduction to CHERI technology - Cybersecurity
 

How we scaled to 80K users by doing nothing!.pdf

  • 1. © 2024, Amazon Web Services, Inc. or its affiliates. All rights reserved. B E N G A L U R U | M A Y 1 5 , 2 0 2 4
  • 2. © 2024, Amazon Web Services, Inc. or its affiliates. All rights reserved. How we scaled our application for 80K users by doing nothing! Srushith Repakula Head of Engineering, KonfHub AWS Serverless Hero
  • 3. © 2024, Amazon Web Services, Inc. or its affiliates. All rights reserved. Agenda 1. The What? 2. The How? 3. Best Practices 4. Lessons learned
  • 4. © 2024, Amazon Web Services, Inc. or its affiliates. All rights reserved. The What? • An app to check-in attendees for events • Works both offline and online • Real time updates and auto sync of data across devices • Scale for an event with 80K attendees!
  • 5. © 2024, Amazon Web Services, Inc. or its affiliates. All rights reserved. What did we do?
  • 6. © 2024, Amazon Web Services, Inc. or its affiliates. All rights reserved. Region Amazon DynamoDB Amazon Aurora Stream AWS AppSync AWS Lambda Amazon Cognito Amazon CloudWatch Amazon EventBridge Amazon Simple Email Service (Amazon SES) How did we do? (The 10,000 ft view) AWS Amplify In-app/ browser storage
  • 7. © 2024, Amazon Web Services, Inc. or its affiliates. All rights reserved. “The How” - AppSync • Serverless GraphQL APIs, with in-built support for real time subscriptions using WebSockets • Offline data synchronisation using Amplify DataStore • Lambda-less integration with data sources like DynamoDB, RDS (using data API) and much more! • Fine-grained access control
  • 8. © 2024, Amazon Web Services, Inc. or its affiliates. All rights reserved. AppSync in Action 30K 60K 90K
  • 9. © 2024, Amazon Web Services, Inc. or its affiliates. All rights reserved. “The How?” - DynamoDB Global Tables • Leveraged DynamoDB Global table to replicate data across region, without any changes to the application code • Helps in disaster recovery and provides a backup option • Improves performance for global users • Consistency and conflict resolution
  • 10. © 2024, Amazon Web Services, Inc. or its affiliates. All rights reserved. “The How?” - The Scaling part
  • 11. © 2024, Amazon Web Services, Inc. or its affiliates. All rights reserved. How to calculate concurrency?
  • 12. © 2024, Amazon Web Services, Inc. or its affiliates. All rights reserved. How to calculate concurrency?
  • 13. © 2024, Amazon Web Services, Inc. or its affiliates. All rights reserved. How to calculate concurrency?
  • 14. © 2024, Amazon Web Services, Inc. or its affiliates. All rights reserved. Reserved vs Provisioned Concurrency • Max number of execution environment instances • Provisioned on-demand • Cold starts still exist • Throttled when the reserved concurrency limit is reached • No extra charges • Pre-provisioned execution environments • No cold starts • Function uses unreserved concurrency if reserved concurrency not set • Extra charges applicable
  • 15. © 2024, Amazon Web Services, Inc. or its affiliates. All rights reserved. So, what did we do? - Provisioned Concurrency • Improved performance and reduced costs • Cost per millisecond of execution time is about ~60% cheaper • Advisable only for functions that have predictable and high throughput
  • 16. © 2024, Amazon Web Services, Inc. or its affiliates. All rights reserved. So, what did we do? - Sizing Lambda Functions • Choosing the memory allocated to Lambda functions is an optimization process that balances speed (duration) and cost • Changing the Lambda instruction set architecture - arm64 vs x86_64
  • 17. © 2024, Amazon Web Services, Inc. or its affiliates. All rights reserved. Best Practices & Lessons Learned • Leverage caching wherever feasible • Keep an eye on the code initialization - the “init” duration • Optimize function configuration to reduce cost and boost performance • Identify components of your architecture that might not scale - non Serverless components, and architect your application around this limitation • Load test and be prepared for things to fail! • Look out for throttling and service limits
  • 18. © 2024, Amazon Web Services, Inc. or its affiliates. All rights reserved.
  • 19. © 2024, Amazon Web Services, Inc. or its affiliates. All rights reserved. Thank you! Please complete the session survey in the mobile app Srushith Repakula @SrushithR