SlideShare une entreprise Scribd logo
1  sur  42
© 2018, Amazon Web Services, Inc. or its Affiliates. All rights reserved.
Cost Optimized Logging Using API
Gateway, SQS and ElasticSearch
© 2018, Amazon Web Services, Inc. or its Affiliates. All rights reserved.
Mitesh Sharma
Tech Lead at Kiwi India Pvt Ltd
Find Me:
LinkedIn : https://www.linkedin.com/in/mitesh-sharma-76722015
Twitter : https://twitter.com/mitesh_dev
Github : https://github.com/MiteshSharma
Who Am I?
© 2018, Amazon Web Services, Inc. or its Affiliates. All rights reserved.
What We Do?
© 2018, Amazon Web Services, Inc. or its Affiliates. All rights reserved.
Joyride App
Play Social Real Time Interactive Game Shows
Players Can Win Real Cash Prizes
© 2018, Amazon Web Services, Inc. or its Affiliates. All rights reserved.
Game shows are fun to play
Social interaction in real time games
Players can play in team or solo
Players win real cash
During game shows, multiple messages exchanges in real time
In last 1 minute of game show start, everyone enters app
© 2018, Amazon Web Services, Inc. or its Affiliates. All rights reserved.
What Problem We Want To
Solve?
© 2018, Amazon Web Services, Inc. or its Affiliates. All rights reserved.
Identify customer issues during game show,
fix them and give them best experience
© 2018, Amazon Web Services, Inc. or its Affiliates. All rights reserved.
How to solve customer issues?
© 2018, Amazon Web Services, Inc. or its Affiliates. All rights reserved.
Capture logs, understand them, identify
issues, pinpoint code where things went
wrong and fix them
© 2018, Amazon Web Services, Inc. or its Affiliates. All rights reserved.
Client App
Logs on
server
Investigate
© 2018, Amazon Web Services, Inc. or its Affiliates. All rights reserved.
Solution should be robust, cost effective and
scalable
© 2018, Amazon Web Services, Inc. or its Affiliates. All rights reserved.
What we build?
© 2018, Amazon Web Services, Inc. or its Affiliates. All rights reserved.
Route53
Cloudfront
Log
Service
MongoDB
EBSELB
© 2018, Amazon Web Services, Inc. or its Affiliates. All rights reserved.
How to scale as traffic
increases?
© 2018, Amazon Web Services, Inc. or its Affiliates. All rights reserved.
Auto Scaling group helps with cost and handle huge traffic
© 2018, Amazon Web Services, Inc. or its Affiliates. All rights reserved.
Auto Scaling group helps with cost and handle huge traffic
All users come in less than a minute, so auto scaling can’t help
© 2018, Amazon Web Services, Inc. or its Affiliates. All rights reserved.
Auto Scaling group helps with cost and handle huge traffic
All users come in less than a minute, so auto scaling can’t help
Use time based instances
© 2018, Amazon Web Services, Inc. or its Affiliates. All rights reserved.
Auto Scaling group helps with cost and handle huge traffic
All users come in less than a minute, so auto scaling can’t help
Use time based instances
Once game show ends, traffic becomes normal
Multiple game shows scheduled one after another
Effectively need to keep all instances running for whole day
Cost of running multiple instances are high
© 2018, Amazon Web Services, Inc. or its Affiliates. All rights reserved.
What other components were
taking up cost?
© 2018, Amazon Web Services, Inc. or its Affiliates. All rights reserved.
● Self hosted MongoDB cluster
● MongoDB needed high IOPS EBS to write these logs as
they arrive
● Used Provisioned IOPS EBS
● When there is less traffic, still paying for high provisioned
IOPS
● Needed to write queries for fetching data from MongoDB
● Build custom dashboard for logs
© 2018, Amazon Web Services, Inc. or its Affiliates. All rights reserved.
What can go wrong here?
© 2018, Amazon Web Services, Inc. or its Affiliates. All rights reserved.
Route53
Cloudfront
Log
Service
MongoDB
EBSELB
Crash
Crash
© 2018, Amazon Web Services, Inc. or its Affiliates. All rights reserved.
How we solved these problems?
© 2018, Amazon Web Services, Inc. or its Affiliates. All rights reserved.
Route53
Cloudfront API Gateway SQS ElasticSearchFetcher
Kibana
© 2018, Amazon Web Services, Inc. or its Affiliates. All rights reserved.
Why we choose each service?
© 2018, Amazon Web Services, Inc. or its Affiliates. All rights reserved.
AWS API Gateway
© 2018, Amazon Web Services, Inc. or its Affiliates. All rights reserved.
● Easy to manage
● Easy to scale
● No minimum fees
● Act as Proxy
● Endpoints are public
● Easy monitoring using cloudwatch
● Perfect for our use case
© 2018, Amazon Web Services, Inc. or its Affiliates. All rights reserved.
Route53
Cloudfront API Gateway
© 2018, Amazon Web Services, Inc. or its Affiliates. All rights reserved.
AWS SQS
© 2018, Amazon Web Services, Inc. or its Affiliates. All rights reserved.
● Messaging queue service
● Reliable and scalable
● No minimum fees
● Provides decoupling
● Resilience
● Push/Pull architecture
● At-least-once delivery guarantee
● Easy monitoring using cloudwatch
● Receive messages from API Gateway for later processing
© 2018, Amazon Web Services, Inc. or its Affiliates. All rights reserved.
Route53
Cloudfront API Gateway SQS
© 2018, Amazon Web Services, Inc. or its Affiliates. All rights reserved.
AWS ElasticSearch With Kibana
© 2018, Amazon Web Services, Inc. or its Affiliates. All rights reserved.
● Real time, distributed, search and analytics engine
● Schema free
● Developer friendly REST APIs
● Easy to deploy and manage cluster
● Secure
● Comes with build-in Kibana
● Kibana provides visualization of data in elasticsearch
© 2018, Amazon Web Services, Inc. or its Affiliates. All rights reserved.
Route53
Cloudfront API Gateway SQS ElasticSearch
Kibana
© 2018, Amazon Web Services, Inc. or its Affiliates. All rights reserved.
Fetcher Service
© 2018, Amazon Web Services, Inc. or its Affiliates. All rights reserved.
● Custom java service
● Periodically polling
● Send messages to Elasticsearch
● Dynamic polling behaviour
● Delete messages once processed
© 2018, Amazon Web Services, Inc. or its Affiliates. All rights reserved.
Route53
Cloudfront API Gateway SQS ElasticSearchFetcher
Kibana
© 2018, Amazon Web Services, Inc. or its Affiliates. All rights reserved.
What can go wrong here?
© 2018, Amazon Web Services, Inc. or its Affiliates. All rights reserved.
Route53
Cloudfront API Gateway SQS ElasticSearchFetcher
Kibana
Crash
© 2018, Amazon Web Services, Inc. or its Affiliates. All rights reserved.
Learning
© 2018, Amazon Web Services, Inc. or its Affiliates. All rights reserved.
● Use managed services and focus on solving problem
● SQS can be really good in making asynchronous architecture
● Add alerts on SQS message duration
● Push messages in bulk in elasticsearch
● Keep deleting old messages from elasticsearch
● Cost is part of your efficient architecture
● Making customer happy is not easy
© 2018, Amazon Web Services, Inc. or its Affiliates. All rights reserved.
Thanks

Contenu connexe

Tendances

Connecting the Unconnected using GraphDB - Tel Aviv Summit 2018
Connecting the Unconnected using GraphDB - Tel Aviv Summit 2018Connecting the Unconnected using GraphDB - Tel Aviv Summit 2018
Connecting the Unconnected using GraphDB - Tel Aviv Summit 2018Amazon Web Services
 
AWS Encryption SDK: The Busy Engineer's Guide to Client-Side Encryption (SEC3...
AWS Encryption SDK: The Busy Engineer's Guide to Client-Side Encryption (SEC3...AWS Encryption SDK: The Busy Engineer's Guide to Client-Side Encryption (SEC3...
AWS Encryption SDK: The Busy Engineer's Guide to Client-Side Encryption (SEC3...Amazon Web Services
 
It's all about the data - Tel Aviv Summit 2018
It's all about the data - Tel Aviv Summit 2018It's all about the data - Tel Aviv Summit 2018
It's all about the data - Tel Aviv Summit 2018Amazon Web Services
 
Deploying Your ONNX Deep Learning with Apache MXNet Model Server (AIM413) - A...
Deploying Your ONNX Deep Learning with Apache MXNet Model Server (AIM413) - A...Deploying Your ONNX Deep Learning with Apache MXNet Model Server (AIM413) - A...
Deploying Your ONNX Deep Learning with Apache MXNet Model Server (AIM413) - A...Amazon Web Services
 
Getting Started with AWS Developers: AWS Developer Workshop - Web Summit 2018
Getting Started with AWS Developers: AWS Developer Workshop - Web Summit 2018Getting Started with AWS Developers: AWS Developer Workshop - Web Summit 2018
Getting Started with AWS Developers: AWS Developer Workshop - Web Summit 2018Amazon Web Services
 
Build Automated Video Social Posts for Player Records and Highlights (AIM343)...
Build Automated Video Social Posts for Player Records and Highlights (AIM343)...Build Automated Video Social Posts for Player Records and Highlights (AIM343)...
Build Automated Video Social Posts for Player Records and Highlights (AIM343)...Amazon Web Services
 
Nader Dabit - Intro to AWS AppSync.pdf
Nader Dabit - Intro to AWS AppSync.pdfNader Dabit - Intro to AWS AppSync.pdf
Nader Dabit - Intro to AWS AppSync.pdfAmazon Web Services
 
How Websites go Serverless - WebSummit Lisbon 2018
How Websites go Serverless - WebSummit Lisbon 2018How Websites go Serverless - WebSummit Lisbon 2018
How Websites go Serverless - WebSummit Lisbon 2018Boaz Ziniman
 
Websites go Serverless - Floor28
Websites go Serverless - Floor28Websites go Serverless - Floor28
Websites go Serverless - Floor28Boaz Ziniman
 
GDPR Readiness and Management (SEC206-R1) - AWS re:Invent 2018
GDPR Readiness and Management (SEC206-R1) - AWS re:Invent 2018GDPR Readiness and Management (SEC206-R1) - AWS re:Invent 2018
GDPR Readiness and Management (SEC206-R1) - AWS re:Invent 2018Amazon Web Services
 
Effective Cost Optimization for Business (ARC201) - AWS re:Invent 2018
Effective Cost Optimization for Business (ARC201) - AWS re:Invent 2018Effective Cost Optimization for Business (ARC201) - AWS re:Invent 2018
Effective Cost Optimization for Business (ARC201) - AWS re:Invent 2018Amazon Web Services
 
Create a "Question and Answer" Bot with Amazon Lex and Amazon Alexa (AIM314) ...
Create a "Question and Answer" Bot with Amazon Lex and Amazon Alexa (AIM314) ...Create a "Question and Answer" Bot with Amazon Lex and Amazon Alexa (AIM314) ...
Create a "Question and Answer" Bot with Amazon Lex and Amazon Alexa (AIM314) ...Amazon Web Services
 
Build the Next-Gen Meeting Room Experience Using Alexa for Business (BAP303-R...
Build the Next-Gen Meeting Room Experience Using Alexa for Business (BAP303-R...Build the Next-Gen Meeting Room Experience Using Alexa for Business (BAP303-R...
Build the Next-Gen Meeting Room Experience Using Alexa for Business (BAP303-R...Amazon Web Services
 
Create Smart and Interactive Apps with Intelligent Language Services on AWS (...
Create Smart and Interactive Apps with Intelligent Language Services on AWS (...Create Smart and Interactive Apps with Intelligent Language Services on AWS (...
Create Smart and Interactive Apps with Intelligent Language Services on AWS (...Amazon Web Services
 
Machine Learning at the Edge: An Introduction to AI/ML Options on Mobile Devi...
Machine Learning at the Edge: An Introduction to AI/ML Options on Mobile Devi...Machine Learning at the Edge: An Introduction to AI/ML Options on Mobile Devi...
Machine Learning at the Edge: An Introduction to AI/ML Options on Mobile Devi...Amazon Web Services
 
Choosing the Right Messaging Service for Your Distributed App (API305) - AWS ...
Choosing the Right Messaging Service for Your Distributed App (API305) - AWS ...Choosing the Right Messaging Service for Your Distributed App (API305) - AWS ...
Choosing the Right Messaging Service for Your Distributed App (API305) - AWS ...Amazon Web Services
 
SaaS Velocity = Product + Metrics - Tom LeGrice - AWS TechShift ANZ 2018
SaaS Velocity = Product + Metrics - Tom LeGrice - AWS TechShift ANZ 2018SaaS Velocity = Product + Metrics - Tom LeGrice - AWS TechShift ANZ 2018
SaaS Velocity = Product + Metrics - Tom LeGrice - AWS TechShift ANZ 2018Amazon Web Services
 
Building Blockchain Platforms Beyond a Proof of Concept (GPSTEC317) - AWS re:...
Building Blockchain Platforms Beyond a Proof of Concept (GPSTEC317) - AWS re:...Building Blockchain Platforms Beyond a Proof of Concept (GPSTEC317) - AWS re:...
Building Blockchain Platforms Beyond a Proof of Concept (GPSTEC317) - AWS re:...Amazon Web Services
 

Tendances (18)

Connecting the Unconnected using GraphDB - Tel Aviv Summit 2018
Connecting the Unconnected using GraphDB - Tel Aviv Summit 2018Connecting the Unconnected using GraphDB - Tel Aviv Summit 2018
Connecting the Unconnected using GraphDB - Tel Aviv Summit 2018
 
AWS Encryption SDK: The Busy Engineer's Guide to Client-Side Encryption (SEC3...
AWS Encryption SDK: The Busy Engineer's Guide to Client-Side Encryption (SEC3...AWS Encryption SDK: The Busy Engineer's Guide to Client-Side Encryption (SEC3...
AWS Encryption SDK: The Busy Engineer's Guide to Client-Side Encryption (SEC3...
 
It's all about the data - Tel Aviv Summit 2018
It's all about the data - Tel Aviv Summit 2018It's all about the data - Tel Aviv Summit 2018
It's all about the data - Tel Aviv Summit 2018
 
Deploying Your ONNX Deep Learning with Apache MXNet Model Server (AIM413) - A...
Deploying Your ONNX Deep Learning with Apache MXNet Model Server (AIM413) - A...Deploying Your ONNX Deep Learning with Apache MXNet Model Server (AIM413) - A...
Deploying Your ONNX Deep Learning with Apache MXNet Model Server (AIM413) - A...
 
Getting Started with AWS Developers: AWS Developer Workshop - Web Summit 2018
Getting Started with AWS Developers: AWS Developer Workshop - Web Summit 2018Getting Started with AWS Developers: AWS Developer Workshop - Web Summit 2018
Getting Started with AWS Developers: AWS Developer Workshop - Web Summit 2018
 
Build Automated Video Social Posts for Player Records and Highlights (AIM343)...
Build Automated Video Social Posts for Player Records and Highlights (AIM343)...Build Automated Video Social Posts for Player Records and Highlights (AIM343)...
Build Automated Video Social Posts for Player Records and Highlights (AIM343)...
 
Nader Dabit - Intro to AWS AppSync.pdf
Nader Dabit - Intro to AWS AppSync.pdfNader Dabit - Intro to AWS AppSync.pdf
Nader Dabit - Intro to AWS AppSync.pdf
 
How Websites go Serverless - WebSummit Lisbon 2018
How Websites go Serverless - WebSummit Lisbon 2018How Websites go Serverless - WebSummit Lisbon 2018
How Websites go Serverless - WebSummit Lisbon 2018
 
Websites go Serverless - Floor28
Websites go Serverless - Floor28Websites go Serverless - Floor28
Websites go Serverless - Floor28
 
GDPR Readiness and Management (SEC206-R1) - AWS re:Invent 2018
GDPR Readiness and Management (SEC206-R1) - AWS re:Invent 2018GDPR Readiness and Management (SEC206-R1) - AWS re:Invent 2018
GDPR Readiness and Management (SEC206-R1) - AWS re:Invent 2018
 
Effective Cost Optimization for Business (ARC201) - AWS re:Invent 2018
Effective Cost Optimization for Business (ARC201) - AWS re:Invent 2018Effective Cost Optimization for Business (ARC201) - AWS re:Invent 2018
Effective Cost Optimization for Business (ARC201) - AWS re:Invent 2018
 
Create a "Question and Answer" Bot with Amazon Lex and Amazon Alexa (AIM314) ...
Create a "Question and Answer" Bot with Amazon Lex and Amazon Alexa (AIM314) ...Create a "Question and Answer" Bot with Amazon Lex and Amazon Alexa (AIM314) ...
Create a "Question and Answer" Bot with Amazon Lex and Amazon Alexa (AIM314) ...
 
Build the Next-Gen Meeting Room Experience Using Alexa for Business (BAP303-R...
Build the Next-Gen Meeting Room Experience Using Alexa for Business (BAP303-R...Build the Next-Gen Meeting Room Experience Using Alexa for Business (BAP303-R...
Build the Next-Gen Meeting Room Experience Using Alexa for Business (BAP303-R...
 
Create Smart and Interactive Apps with Intelligent Language Services on AWS (...
Create Smart and Interactive Apps with Intelligent Language Services on AWS (...Create Smart and Interactive Apps with Intelligent Language Services on AWS (...
Create Smart and Interactive Apps with Intelligent Language Services on AWS (...
 
Machine Learning at the Edge: An Introduction to AI/ML Options on Mobile Devi...
Machine Learning at the Edge: An Introduction to AI/ML Options on Mobile Devi...Machine Learning at the Edge: An Introduction to AI/ML Options on Mobile Devi...
Machine Learning at the Edge: An Introduction to AI/ML Options on Mobile Devi...
 
Choosing the Right Messaging Service for Your Distributed App (API305) - AWS ...
Choosing the Right Messaging Service for Your Distributed App (API305) - AWS ...Choosing the Right Messaging Service for Your Distributed App (API305) - AWS ...
Choosing the Right Messaging Service for Your Distributed App (API305) - AWS ...
 
SaaS Velocity = Product + Metrics - Tom LeGrice - AWS TechShift ANZ 2018
SaaS Velocity = Product + Metrics - Tom LeGrice - AWS TechShift ANZ 2018SaaS Velocity = Product + Metrics - Tom LeGrice - AWS TechShift ANZ 2018
SaaS Velocity = Product + Metrics - Tom LeGrice - AWS TechShift ANZ 2018
 
Building Blockchain Platforms Beyond a Proof of Concept (GPSTEC317) - AWS re:...
Building Blockchain Platforms Beyond a Proof of Concept (GPSTEC317) - AWS re:...Building Blockchain Platforms Beyond a Proof of Concept (GPSTEC317) - AWS re:...
Building Blockchain Platforms Beyond a Proof of Concept (GPSTEC317) - AWS re:...
 

Similaire à Cost optimized logging using API Gateway, SQS and Elastic Search

Building Serverless IoT solutions - EPAM SEC 2018 Minsk
Building Serverless IoT solutions - EPAM SEC 2018 MinskBuilding Serverless IoT solutions - EPAM SEC 2018 Minsk
Building Serverless IoT solutions - EPAM SEC 2018 MinskBoaz Ziniman
 
Taking your Progressive Web App to the Next Level - AWS Summit Sydney 2018
Taking your Progressive Web App to the Next Level - AWS Summit Sydney 2018Taking your Progressive Web App to the Next Level - AWS Summit Sydney 2018
Taking your Progressive Web App to the Next Level - AWS Summit Sydney 2018Amazon 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 - Floor28Boaz 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 Floor28Amazon Web Services
 
Starting your Cloud Transformation Journey - Tel Aviv Summit 2018
Starting your Cloud Transformation Journey - Tel Aviv Summit 2018Starting your Cloud Transformation Journey - Tel Aviv Summit 2018
Starting your Cloud Transformation Journey - Tel Aviv Summit 2018Boaz Ziniman
 
Starting your Cloud Transformation Journey - Tel Aviv Summit 2018
Starting your Cloud Transformation Journey - Tel Aviv Summit 2018Starting your Cloud Transformation Journey - Tel Aviv Summit 2018
Starting your Cloud Transformation Journey - Tel Aviv Summit 2018Amazon Web Services
 
Leadership Session: Developing Mobile & Web Apps on AWS (MOB202-L) - AWS re:I...
Leadership Session: Developing Mobile & Web Apps on AWS (MOB202-L) - AWS re:I...Leadership Session: Developing Mobile & Web Apps on AWS (MOB202-L) - AWS re:I...
Leadership Session: Developing Mobile & Web Apps on AWS (MOB202-L) - AWS re:I...Amazon Web Services
 
Build Your Own Log Analytics Solutions on AWS (ANT323-R) - AWS re:Invent 2018
Build Your Own Log Analytics Solutions on AWS (ANT323-R) - AWS re:Invent 2018Build Your Own Log Analytics Solutions on AWS (ANT323-R) - AWS re:Invent 2018
Build Your Own Log Analytics Solutions on AWS (ANT323-R) - AWS re:Invent 2018Amazon Web Services
 
Vonage & Aspect: Transform Real-Time Communications & Customer Engagement (TL...
Vonage & Aspect: Transform Real-Time Communications & Customer Engagement (TL...Vonage & Aspect: Transform Real-Time Communications & Customer Engagement (TL...
Vonage & Aspect: Transform Real-Time Communications & Customer Engagement (TL...Amazon Web Services
 
Advanced Serverless application architecture and design considerations
Advanced Serverless application architecture and design considerationsAdvanced Serverless application architecture and design considerations
Advanced Serverless application architecture and design considerationsDilip Kola
 
AI Powered Conversational Interfaces
AI Powered Conversational InterfacesAI Powered Conversational Interfaces
AI Powered Conversational InterfacesAmazon Web Services
 
SRV316 Serverless Data Processing at Scale: An Amazon.com Case Study
 SRV316 Serverless Data Processing at Scale: An Amazon.com Case Study SRV316 Serverless Data Processing at Scale: An Amazon.com Case Study
SRV316 Serverless Data Processing at Scale: An Amazon.com Case StudyAmazon Web Services
 
Serverless best practices plus design principles 20m version
Serverless   best practices plus design principles 20m versionServerless   best practices plus design principles 20m version
Serverless best practices plus design principles 20m versionHeitor Lessa
 
Wildrydes Serverless Workshop Tel Aviv
Wildrydes Serverless Workshop Tel AvivWildrydes Serverless Workshop Tel Aviv
Wildrydes Serverless Workshop Tel AvivBoaz Ziniman
 
Retail Marketing with Machine Learning & Amazon Rekognition (RET205) - AWS re...
Retail Marketing with Machine Learning & Amazon Rekognition (RET205) - AWS re...Retail Marketing with Machine Learning & Amazon Rekognition (RET205) - AWS re...
Retail Marketing with Machine Learning & Amazon Rekognition (RET205) - AWS re...Amazon Web Services
 
Deep Dive on AWS PrivateLink - AWS Online Tech Talks
Deep Dive on AWS PrivateLink - AWS Online Tech TalksDeep Dive on AWS PrivateLink - AWS Online Tech Talks
Deep Dive on AWS PrivateLink - AWS Online Tech TalksAmazon Web Services
 
Remove Undifferentiated Heavy Lifting from CI/CD Toolsets with Corteva Agrisc...
Remove Undifferentiated Heavy Lifting from CI/CD Toolsets with Corteva Agrisc...Remove Undifferentiated Heavy Lifting from CI/CD Toolsets with Corteva Agrisc...
Remove Undifferentiated Heavy Lifting from CI/CD Toolsets with Corteva Agrisc...Amazon Web Services
 
Five New Security Automations Using AWS Security Services & Open Source (SEC4...
Five New Security Automations Using AWS Security Services & Open Source (SEC4...Five New Security Automations Using AWS Security Services & Open Source (SEC4...
Five New Security Automations Using AWS Security Services & Open Source (SEC4...Amazon Web Services
 

Similaire à Cost optimized logging using API Gateway, SQS and Elastic Search (20)

Microservices for Startups
Microservices for StartupsMicroservices for Startups
Microservices for Startups
 
Building Serverless IoT solutions - EPAM SEC 2018 Minsk
Building Serverless IoT solutions - EPAM SEC 2018 MinskBuilding Serverless IoT solutions - EPAM SEC 2018 Minsk
Building Serverless IoT solutions - EPAM SEC 2018 Minsk
 
Taking your Progressive Web App to the Next Level - AWS Summit Sydney 2018
Taking your Progressive Web App to the Next Level - AWS Summit Sydney 2018Taking your Progressive Web App to the Next Level - AWS Summit Sydney 2018
Taking your Progressive Web App to the Next Level - AWS Summit Sydney 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
 
Starting your Cloud Transformation Journey - Tel Aviv Summit 2018
Starting your Cloud Transformation Journey - Tel Aviv Summit 2018Starting your Cloud Transformation Journey - Tel Aviv Summit 2018
Starting your Cloud Transformation Journey - Tel Aviv Summit 2018
 
Starting your Cloud Transformation Journey - Tel Aviv Summit 2018
Starting your Cloud Transformation Journey - Tel Aviv Summit 2018Starting your Cloud Transformation Journey - Tel Aviv Summit 2018
Starting your Cloud Transformation Journey - Tel Aviv Summit 2018
 
Leadership Session: Developing Mobile & Web Apps on AWS (MOB202-L) - AWS re:I...
Leadership Session: Developing Mobile & Web Apps on AWS (MOB202-L) - AWS re:I...Leadership Session: Developing Mobile & Web Apps on AWS (MOB202-L) - AWS re:I...
Leadership Session: Developing Mobile & Web Apps on AWS (MOB202-L) - AWS re:I...
 
Build Your Own Log Analytics Solutions on AWS (ANT323-R) - AWS re:Invent 2018
Build Your Own Log Analytics Solutions on AWS (ANT323-R) - AWS re:Invent 2018Build Your Own Log Analytics Solutions on AWS (ANT323-R) - AWS re:Invent 2018
Build Your Own Log Analytics Solutions on AWS (ANT323-R) - AWS re:Invent 2018
 
Vonage & Aspect: Transform Real-Time Communications & Customer Engagement (TL...
Vonage & Aspect: Transform Real-Time Communications & Customer Engagement (TL...Vonage & Aspect: Transform Real-Time Communications & Customer Engagement (TL...
Vonage & Aspect: Transform Real-Time Communications & Customer Engagement (TL...
 
Advanced Serverless application architecture and design considerations
Advanced Serverless application architecture and design considerationsAdvanced Serverless application architecture and design considerations
Advanced Serverless application architecture and design considerations
 
Containers for Startups
Containers for StartupsContainers for Startups
Containers for Startups
 
AI Powered Conversational Interfaces
AI Powered Conversational InterfacesAI Powered Conversational Interfaces
AI Powered Conversational Interfaces
 
SRV316 Serverless Data Processing at Scale: An Amazon.com Case Study
 SRV316 Serverless Data Processing at Scale: An Amazon.com Case Study SRV316 Serverless Data Processing at Scale: An Amazon.com Case Study
SRV316 Serverless Data Processing at Scale: An Amazon.com Case Study
 
Serverless best practices plus design principles 20m version
Serverless   best practices plus design principles 20m versionServerless   best practices plus design principles 20m version
Serverless best practices plus design principles 20m version
 
Wildrydes Serverless Workshop Tel Aviv
Wildrydes Serverless Workshop Tel AvivWildrydes Serverless Workshop Tel Aviv
Wildrydes Serverless Workshop Tel Aviv
 
Retail Marketing with Machine Learning & Amazon Rekognition (RET205) - AWS re...
Retail Marketing with Machine Learning & Amazon Rekognition (RET205) - AWS re...Retail Marketing with Machine Learning & Amazon Rekognition (RET205) - AWS re...
Retail Marketing with Machine Learning & Amazon Rekognition (RET205) - AWS re...
 
Deep Dive on AWS PrivateLink - AWS Online Tech Talks
Deep Dive on AWS PrivateLink - AWS Online Tech TalksDeep Dive on AWS PrivateLink - AWS Online Tech Talks
Deep Dive on AWS PrivateLink - AWS Online Tech Talks
 
Remove Undifferentiated Heavy Lifting from CI/CD Toolsets with Corteva Agrisc...
Remove Undifferentiated Heavy Lifting from CI/CD Toolsets with Corteva Agrisc...Remove Undifferentiated Heavy Lifting from CI/CD Toolsets with Corteva Agrisc...
Remove Undifferentiated Heavy Lifting from CI/CD Toolsets with Corteva Agrisc...
 
Five New Security Automations Using AWS Security Services & Open Source (SEC4...
Five New Security Automations Using AWS Security Services & Open Source (SEC4...Five New Security Automations Using AWS Security Services & Open Source (SEC4...
Five New Security Automations Using AWS Security Services & Open Source (SEC4...
 

Plus de AWS User Group Bengaluru

Lessons learnt building a Distributed Linked List on S3
Lessons learnt building a Distributed Linked List on S3Lessons learnt building a Distributed Linked List on S3
Lessons learnt building a Distributed Linked List on S3AWS User Group Bengaluru
 
Building Efficient, Scalable and Resilient Front-end logging service with AWS
Building Efficient, Scalable and Resilient Front-end logging service with AWSBuilding Efficient, Scalable and Resilient Front-end logging service with AWS
Building Efficient, Scalable and Resilient Front-end logging service with AWSAWS User Group Bengaluru
 
Exploring opportunities with communities for a successful career
Exploring opportunities with communities for a successful careerExploring opportunities with communities for a successful career
Exploring opportunities with communities for a successful careerAWS User Group Bengaluru
 
Slack's transition away from a single AWS account
Slack's transition away from a single AWS accountSlack's transition away from a single AWS account
Slack's transition away from a single AWS accountAWS User Group Bengaluru
 
Building Efficient, Scalable and Resilient Front-end logging service with AWS
Building Efficient, Scalable and Resilient Front-end logging service with AWSBuilding Efficient, Scalable and Resilient Front-end logging service with AWS
Building Efficient, Scalable and Resilient Front-end logging service with AWSAWS User Group Bengaluru
 
Medlife's journey with AWS from 0(zero) orders to 6 digit mark
Medlife's journey with AWS from 0(zero) orders to 6 digit markMedlife's journey with AWS from 0(zero) orders to 6 digit mark
Medlife's journey with AWS from 0(zero) orders to 6 digit markAWS User Group Bengaluru
 
Exploring opportunities with communities for a successful career
Exploring opportunities with communities for a successful careerExploring opportunities with communities for a successful career
Exploring opportunities with communities for a successful careerAWS User Group Bengaluru
 
Lessons learnt building a Distributed Linked List on S3
Lessons learnt building a Distributed Linked List on S3Lessons learnt building a Distributed Linked List on S3
Lessons learnt building a Distributed Linked List on S3AWS User Group Bengaluru
 

Plus de AWS User Group Bengaluru (20)

Demystifying identity on AWS
Demystifying identity on AWSDemystifying identity on AWS
Demystifying identity on AWS
 
AWS Secrets for Best Practices
AWS Secrets for Best PracticesAWS Secrets for Best Practices
AWS Secrets for Best Practices
 
Cloud Security
Cloud SecurityCloud Security
Cloud Security
 
Lessons learnt building a Distributed Linked List on S3
Lessons learnt building a Distributed Linked List on S3Lessons learnt building a Distributed Linked List on S3
Lessons learnt building a Distributed Linked List on S3
 
Medlife journey with AWS
Medlife journey with AWSMedlife journey with AWS
Medlife journey with AWS
 
Building Efficient, Scalable and Resilient Front-end logging service with AWS
Building Efficient, Scalable and Resilient Front-end logging service with AWSBuilding Efficient, Scalable and Resilient Front-end logging service with AWS
Building Efficient, Scalable and Resilient Front-end logging service with AWS
 
Exploring opportunities with communities for a successful career
Exploring opportunities with communities for a successful careerExploring opportunities with communities for a successful career
Exploring opportunities with communities for a successful career
 
Slack's transition away from a single AWS account
Slack's transition away from a single AWS accountSlack's transition away from a single AWS account
Slack's transition away from a single AWS account
 
Log analytics with ELK stack
Log analytics with ELK stackLog analytics with ELK stack
Log analytics with ELK stack
 
Serverless Culture
Serverless CultureServerless Culture
Serverless Culture
 
Refactoring to serverless
Refactoring to serverlessRefactoring to serverless
Refactoring to serverless
 
Amazon EC2 Spot Instances Workshop
Amazon EC2 Spot Instances WorkshopAmazon EC2 Spot Instances Workshop
Amazon EC2 Spot Instances Workshop
 
Building Efficient, Scalable and Resilient Front-end logging service with AWS
Building Efficient, Scalable and Resilient Front-end logging service with AWSBuilding Efficient, Scalable and Resilient Front-end logging service with AWS
Building Efficient, Scalable and Resilient Front-end logging service with AWS
 
Medlife's journey with AWS from 0(zero) orders to 6 digit mark
Medlife's journey with AWS from 0(zero) orders to 6 digit markMedlife's journey with AWS from 0(zero) orders to 6 digit mark
Medlife's journey with AWS from 0(zero) orders to 6 digit mark
 
AWS Secrets for Best Practices
AWS Secrets for Best PracticesAWS Secrets for Best Practices
AWS Secrets for Best Practices
 
Exploring opportunities with communities for a successful career
Exploring opportunities with communities for a successful careerExploring opportunities with communities for a successful career
Exploring opportunities with communities for a successful career
 
Lessons learnt building a Distributed Linked List on S3
Lessons learnt building a Distributed Linked List on S3Lessons learnt building a Distributed Linked List on S3
Lessons learnt building a Distributed Linked List on S3
 
Cloud Security
Cloud SecurityCloud Security
Cloud Security
 
Amazon EC2 Spot Instances
Amazon EC2 Spot InstancesAmazon EC2 Spot Instances
Amazon EC2 Spot Instances
 
Cost Optimization in AWS
Cost Optimization in AWSCost Optimization in AWS
Cost Optimization in AWS
 

Dernier

Boost Fertility New Invention Ups Success Rates.pdf
Boost Fertility New Invention Ups Success Rates.pdfBoost Fertility New Invention Ups Success Rates.pdf
Boost Fertility New Invention Ups Success Rates.pdfsudhanshuwaghmare1
 
2024: Domino Containers - The Next Step. News from the Domino Container commu...
2024: Domino Containers - The Next Step. News from the Domino Container commu...2024: Domino Containers - The Next Step. News from the Domino Container commu...
2024: Domino Containers - The Next Step. News from the Domino Container commu...Martijn de Jong
 
presentation ICT roal in 21st century education
presentation ICT roal in 21st century educationpresentation ICT roal in 21st century education
presentation ICT roal in 21st century educationjfdjdjcjdnsjd
 
Powerful Google developer tools for immediate impact! (2023-24 C)
Powerful Google developer tools for immediate impact! (2023-24 C)Powerful Google developer tools for immediate impact! (2023-24 C)
Powerful Google developer tools for immediate impact! (2023-24 C)wesley chun
 
ProductAnonymous-April2024-WinProductDiscovery-MelissaKlemke
ProductAnonymous-April2024-WinProductDiscovery-MelissaKlemkeProductAnonymous-April2024-WinProductDiscovery-MelissaKlemke
ProductAnonymous-April2024-WinProductDiscovery-MelissaKlemkeProduct Anonymous
 
Apidays New York 2024 - The value of a flexible API Management solution for O...
Apidays New York 2024 - The value of a flexible API Management solution for O...Apidays New York 2024 - The value of a flexible API Management solution for O...
Apidays New York 2024 - The value of a flexible API Management solution for O...apidays
 
Strategize a Smooth Tenant-to-tenant Migration and Copilot Takeoff
Strategize a Smooth Tenant-to-tenant Migration and Copilot TakeoffStrategize a Smooth Tenant-to-tenant Migration and Copilot Takeoff
Strategize a Smooth Tenant-to-tenant Migration and Copilot Takeoffsammart93
 
Deploy with confidence: VMware Cloud Foundation 5.1 on next gen Dell PowerEdg...
Deploy with confidence: VMware Cloud Foundation 5.1 on next gen Dell PowerEdg...Deploy with confidence: VMware Cloud Foundation 5.1 on next gen Dell PowerEdg...
Deploy with confidence: VMware Cloud Foundation 5.1 on next gen Dell PowerEdg...Principled Technologies
 
TrustArc Webinar - Unlock the Power of AI-Driven Data Discovery
TrustArc Webinar - Unlock the Power of AI-Driven Data DiscoveryTrustArc Webinar - Unlock the Power of AI-Driven Data Discovery
TrustArc Webinar - Unlock the Power of AI-Driven Data DiscoveryTrustArc
 
Tata AIG General Insurance Company - Insurer Innovation Award 2024
Tata AIG General Insurance Company - Insurer Innovation Award 2024Tata AIG General Insurance Company - Insurer Innovation Award 2024
Tata AIG General Insurance Company - Insurer Innovation Award 2024The Digital Insurer
 
Manulife - Insurer Innovation Award 2024
Manulife - Insurer Innovation Award 2024Manulife - Insurer Innovation Award 2024
Manulife - Insurer Innovation Award 2024The Digital Insurer
 
Partners Life - Insurer Innovation Award 2024
Partners Life - Insurer Innovation Award 2024Partners Life - Insurer Innovation Award 2024
Partners Life - Insurer Innovation Award 2024The Digital Insurer
 
Axa Assurance Maroc - Insurer Innovation Award 2024
Axa Assurance Maroc - Insurer Innovation Award 2024Axa Assurance Maroc - Insurer Innovation Award 2024
Axa Assurance Maroc - Insurer Innovation Award 2024The Digital Insurer
 
Artificial Intelligence Chap.5 : Uncertainty
Artificial Intelligence Chap.5 : UncertaintyArtificial Intelligence Chap.5 : Uncertainty
Artificial Intelligence Chap.5 : UncertaintyKhushali Kathiriya
 
Apidays Singapore 2024 - Building Digital Trust in a Digital Economy by Veron...
Apidays Singapore 2024 - Building Digital Trust in a Digital Economy by Veron...Apidays Singapore 2024 - Building Digital Trust in a Digital Economy by Veron...
Apidays Singapore 2024 - Building Digital Trust in a Digital Economy by Veron...apidays
 
Cloud Frontiers: A Deep Dive into Serverless Spatial Data and FME
Cloud Frontiers:  A Deep Dive into Serverless Spatial Data and FMECloud Frontiers:  A Deep Dive into Serverless Spatial Data and FME
Cloud Frontiers: A Deep Dive into Serverless Spatial Data and FMESafe Software
 
How to Troubleshoot Apps for the Modern Connected Worker
How to Troubleshoot Apps for the Modern Connected WorkerHow to Troubleshoot Apps for the Modern Connected Worker
How to Troubleshoot Apps for the Modern Connected WorkerThousandEyes
 
Apidays New York 2024 - Scaling API-first by Ian Reasor and Radu Cotescu, Adobe
Apidays New York 2024 - Scaling API-first by Ian Reasor and Radu Cotescu, AdobeApidays New York 2024 - Scaling API-first by Ian Reasor and Radu Cotescu, Adobe
Apidays New York 2024 - Scaling API-first by Ian Reasor and Radu Cotescu, Adobeapidays
 
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
 
Bajaj Allianz Life Insurance Company - Insurer Innovation Award 2024
Bajaj Allianz Life Insurance Company - Insurer Innovation Award 2024Bajaj Allianz Life Insurance Company - Insurer Innovation Award 2024
Bajaj Allianz Life Insurance Company - Insurer Innovation Award 2024The Digital Insurer
 

Dernier (20)

Boost Fertility New Invention Ups Success Rates.pdf
Boost Fertility New Invention Ups Success Rates.pdfBoost Fertility New Invention Ups Success Rates.pdf
Boost Fertility New Invention Ups Success Rates.pdf
 
2024: Domino Containers - The Next Step. News from the Domino Container commu...
2024: Domino Containers - The Next Step. News from the Domino Container commu...2024: Domino Containers - The Next Step. News from the Domino Container commu...
2024: Domino Containers - The Next Step. News from the Domino Container commu...
 
presentation ICT roal in 21st century education
presentation ICT roal in 21st century educationpresentation ICT roal in 21st century education
presentation ICT roal in 21st century education
 
Powerful Google developer tools for immediate impact! (2023-24 C)
Powerful Google developer tools for immediate impact! (2023-24 C)Powerful Google developer tools for immediate impact! (2023-24 C)
Powerful Google developer tools for immediate impact! (2023-24 C)
 
ProductAnonymous-April2024-WinProductDiscovery-MelissaKlemke
ProductAnonymous-April2024-WinProductDiscovery-MelissaKlemkeProductAnonymous-April2024-WinProductDiscovery-MelissaKlemke
ProductAnonymous-April2024-WinProductDiscovery-MelissaKlemke
 
Apidays New York 2024 - The value of a flexible API Management solution for O...
Apidays New York 2024 - The value of a flexible API Management solution for O...Apidays New York 2024 - The value of a flexible API Management solution for O...
Apidays New York 2024 - The value of a flexible API Management solution for O...
 
Strategize a Smooth Tenant-to-tenant Migration and Copilot Takeoff
Strategize a Smooth Tenant-to-tenant Migration and Copilot TakeoffStrategize a Smooth Tenant-to-tenant Migration and Copilot Takeoff
Strategize a Smooth Tenant-to-tenant Migration and Copilot Takeoff
 
Deploy with confidence: VMware Cloud Foundation 5.1 on next gen Dell PowerEdg...
Deploy with confidence: VMware Cloud Foundation 5.1 on next gen Dell PowerEdg...Deploy with confidence: VMware Cloud Foundation 5.1 on next gen Dell PowerEdg...
Deploy with confidence: VMware Cloud Foundation 5.1 on next gen Dell PowerEdg...
 
TrustArc Webinar - Unlock the Power of AI-Driven Data Discovery
TrustArc Webinar - Unlock the Power of AI-Driven Data DiscoveryTrustArc Webinar - Unlock the Power of AI-Driven Data Discovery
TrustArc Webinar - Unlock the Power of AI-Driven Data Discovery
 
Tata AIG General Insurance Company - Insurer Innovation Award 2024
Tata AIG General Insurance Company - Insurer Innovation Award 2024Tata AIG General Insurance Company - Insurer Innovation Award 2024
Tata AIG General Insurance Company - Insurer Innovation Award 2024
 
Manulife - Insurer Innovation Award 2024
Manulife - Insurer Innovation Award 2024Manulife - Insurer Innovation Award 2024
Manulife - Insurer Innovation Award 2024
 
Partners Life - Insurer Innovation Award 2024
Partners Life - Insurer Innovation Award 2024Partners Life - Insurer Innovation Award 2024
Partners Life - Insurer Innovation Award 2024
 
Axa Assurance Maroc - Insurer Innovation Award 2024
Axa Assurance Maroc - Insurer Innovation Award 2024Axa Assurance Maroc - Insurer Innovation Award 2024
Axa Assurance Maroc - Insurer Innovation Award 2024
 
Artificial Intelligence Chap.5 : Uncertainty
Artificial Intelligence Chap.5 : UncertaintyArtificial Intelligence Chap.5 : Uncertainty
Artificial Intelligence Chap.5 : Uncertainty
 
Apidays Singapore 2024 - Building Digital Trust in a Digital Economy by Veron...
Apidays Singapore 2024 - Building Digital Trust in a Digital Economy by Veron...Apidays Singapore 2024 - Building Digital Trust in a Digital Economy by Veron...
Apidays Singapore 2024 - Building Digital Trust in a Digital Economy by Veron...
 
Cloud Frontiers: A Deep Dive into Serverless Spatial Data and FME
Cloud Frontiers:  A Deep Dive into Serverless Spatial Data and FMECloud Frontiers:  A Deep Dive into Serverless Spatial Data and FME
Cloud Frontiers: A Deep Dive into Serverless Spatial Data and FME
 
How to Troubleshoot Apps for the Modern Connected Worker
How to Troubleshoot Apps for the Modern Connected WorkerHow to Troubleshoot Apps for the Modern Connected Worker
How to Troubleshoot Apps for the Modern Connected Worker
 
Apidays New York 2024 - Scaling API-first by Ian Reasor and Radu Cotescu, Adobe
Apidays New York 2024 - Scaling API-first by Ian Reasor and Radu Cotescu, AdobeApidays New York 2024 - Scaling API-first by Ian Reasor and Radu Cotescu, Adobe
Apidays New York 2024 - Scaling API-first by Ian Reasor and Radu Cotescu, Adobe
 
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...
 
Bajaj Allianz Life Insurance Company - Insurer Innovation Award 2024
Bajaj Allianz Life Insurance Company - Insurer Innovation Award 2024Bajaj Allianz Life Insurance Company - Insurer Innovation Award 2024
Bajaj Allianz Life Insurance Company - Insurer Innovation Award 2024
 

Cost optimized logging using API Gateway, SQS and Elastic Search

  • 1. © 2018, Amazon Web Services, Inc. or its Affiliates. All rights reserved. Cost Optimized Logging Using API Gateway, SQS and ElasticSearch
  • 2. © 2018, Amazon Web Services, Inc. or its Affiliates. All rights reserved. Mitesh Sharma Tech Lead at Kiwi India Pvt Ltd Find Me: LinkedIn : https://www.linkedin.com/in/mitesh-sharma-76722015 Twitter : https://twitter.com/mitesh_dev Github : https://github.com/MiteshSharma Who Am I?
  • 3. © 2018, Amazon Web Services, Inc. or its Affiliates. All rights reserved. What We Do?
  • 4. © 2018, Amazon Web Services, Inc. or its Affiliates. All rights reserved. Joyride App Play Social Real Time Interactive Game Shows Players Can Win Real Cash Prizes
  • 5. © 2018, Amazon Web Services, Inc. or its Affiliates. All rights reserved. Game shows are fun to play Social interaction in real time games Players can play in team or solo Players win real cash During game shows, multiple messages exchanges in real time In last 1 minute of game show start, everyone enters app
  • 6. © 2018, Amazon Web Services, Inc. or its Affiliates. All rights reserved. What Problem We Want To Solve?
  • 7. © 2018, Amazon Web Services, Inc. or its Affiliates. All rights reserved. Identify customer issues during game show, fix them and give them best experience
  • 8. © 2018, Amazon Web Services, Inc. or its Affiliates. All rights reserved. How to solve customer issues?
  • 9. © 2018, Amazon Web Services, Inc. or its Affiliates. All rights reserved. Capture logs, understand them, identify issues, pinpoint code where things went wrong and fix them
  • 10. © 2018, Amazon Web Services, Inc. or its Affiliates. All rights reserved. Client App Logs on server Investigate
  • 11. © 2018, Amazon Web Services, Inc. or its Affiliates. All rights reserved. Solution should be robust, cost effective and scalable
  • 12. © 2018, Amazon Web Services, Inc. or its Affiliates. All rights reserved. What we build?
  • 13. © 2018, Amazon Web Services, Inc. or its Affiliates. All rights reserved. Route53 Cloudfront Log Service MongoDB EBSELB
  • 14. © 2018, Amazon Web Services, Inc. or its Affiliates. All rights reserved. How to scale as traffic increases?
  • 15. © 2018, Amazon Web Services, Inc. or its Affiliates. All rights reserved. Auto Scaling group helps with cost and handle huge traffic
  • 16. © 2018, Amazon Web Services, Inc. or its Affiliates. All rights reserved. Auto Scaling group helps with cost and handle huge traffic All users come in less than a minute, so auto scaling can’t help
  • 17. © 2018, Amazon Web Services, Inc. or its Affiliates. All rights reserved. Auto Scaling group helps with cost and handle huge traffic All users come in less than a minute, so auto scaling can’t help Use time based instances
  • 18. © 2018, Amazon Web Services, Inc. or its Affiliates. All rights reserved. Auto Scaling group helps with cost and handle huge traffic All users come in less than a minute, so auto scaling can’t help Use time based instances Once game show ends, traffic becomes normal Multiple game shows scheduled one after another Effectively need to keep all instances running for whole day Cost of running multiple instances are high
  • 19. © 2018, Amazon Web Services, Inc. or its Affiliates. All rights reserved. What other components were taking up cost?
  • 20. © 2018, Amazon Web Services, Inc. or its Affiliates. All rights reserved. ● Self hosted MongoDB cluster ● MongoDB needed high IOPS EBS to write these logs as they arrive ● Used Provisioned IOPS EBS ● When there is less traffic, still paying for high provisioned IOPS ● Needed to write queries for fetching data from MongoDB ● Build custom dashboard for logs
  • 21. © 2018, Amazon Web Services, Inc. or its Affiliates. All rights reserved. What can go wrong here?
  • 22. © 2018, Amazon Web Services, Inc. or its Affiliates. All rights reserved. Route53 Cloudfront Log Service MongoDB EBSELB Crash Crash
  • 23. © 2018, Amazon Web Services, Inc. or its Affiliates. All rights reserved. How we solved these problems?
  • 24. © 2018, Amazon Web Services, Inc. or its Affiliates. All rights reserved. Route53 Cloudfront API Gateway SQS ElasticSearchFetcher Kibana
  • 25. © 2018, Amazon Web Services, Inc. or its Affiliates. All rights reserved. Why we choose each service?
  • 26. © 2018, Amazon Web Services, Inc. or its Affiliates. All rights reserved. AWS API Gateway
  • 27. © 2018, Amazon Web Services, Inc. or its Affiliates. All rights reserved. ● Easy to manage ● Easy to scale ● No minimum fees ● Act as Proxy ● Endpoints are public ● Easy monitoring using cloudwatch ● Perfect for our use case
  • 28. © 2018, Amazon Web Services, Inc. or its Affiliates. All rights reserved. Route53 Cloudfront API Gateway
  • 29. © 2018, Amazon Web Services, Inc. or its Affiliates. All rights reserved. AWS SQS
  • 30. © 2018, Amazon Web Services, Inc. or its Affiliates. All rights reserved. ● Messaging queue service ● Reliable and scalable ● No minimum fees ● Provides decoupling ● Resilience ● Push/Pull architecture ● At-least-once delivery guarantee ● Easy monitoring using cloudwatch ● Receive messages from API Gateway for later processing
  • 31. © 2018, Amazon Web Services, Inc. or its Affiliates. All rights reserved. Route53 Cloudfront API Gateway SQS
  • 32. © 2018, Amazon Web Services, Inc. or its Affiliates. All rights reserved. AWS ElasticSearch With Kibana
  • 33. © 2018, Amazon Web Services, Inc. or its Affiliates. All rights reserved. ● Real time, distributed, search and analytics engine ● Schema free ● Developer friendly REST APIs ● Easy to deploy and manage cluster ● Secure ● Comes with build-in Kibana ● Kibana provides visualization of data in elasticsearch
  • 34. © 2018, Amazon Web Services, Inc. or its Affiliates. All rights reserved. Route53 Cloudfront API Gateway SQS ElasticSearch Kibana
  • 35. © 2018, Amazon Web Services, Inc. or its Affiliates. All rights reserved. Fetcher Service
  • 36. © 2018, Amazon Web Services, Inc. or its Affiliates. All rights reserved. ● Custom java service ● Periodically polling ● Send messages to Elasticsearch ● Dynamic polling behaviour ● Delete messages once processed
  • 37. © 2018, Amazon Web Services, Inc. or its Affiliates. All rights reserved. Route53 Cloudfront API Gateway SQS ElasticSearchFetcher Kibana
  • 38. © 2018, Amazon Web Services, Inc. or its Affiliates. All rights reserved. What can go wrong here?
  • 39. © 2018, Amazon Web Services, Inc. or its Affiliates. All rights reserved. Route53 Cloudfront API Gateway SQS ElasticSearchFetcher Kibana Crash
  • 40. © 2018, Amazon Web Services, Inc. or its Affiliates. All rights reserved. Learning
  • 41. © 2018, Amazon Web Services, Inc. or its Affiliates. All rights reserved. ● Use managed services and focus on solving problem ● SQS can be really good in making asynchronous architecture ● Add alerts on SQS message duration ● Push messages in bulk in elasticsearch ● Keep deleting old messages from elasticsearch ● Cost is part of your efficient architecture ● Making customer happy is not easy
  • 42. © 2018, Amazon Web Services, Inc. or its Affiliates. All rights reserved. Thanks

Notes de l'éditeur

  1. Explain what are the customer issues.
  2. Log service goes down, then no logs can be received for processing.
  3. Make easy to publish, maintain, monitor and secure APIs at any scale Handle all of the tasks involved in accepting and processing up to hundreds of thousands of concurrent API calls
  4. SEcure using IAM, VPC, cloudtrail and cloudwatch monitoring
  5. Polling frequency keep changing due to use case , as we receive bulk messages in a given time frame Once message is pushed to elasticsearch then it is deleted from SQS