SlideShare a Scribd company logo
© 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

More Related Content

What's hot

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
Amazon 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 2018
Amazon 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 2018
Amazon 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.pdf
Amazon 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 2018
Boaz Ziniman
 
Websites go Serverless - Floor28
Websites go Serverless - Floor28Websites go Serverless - Floor28
Websites go Serverless - Floor28
Boaz 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 2018
Amazon 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 2018
Amazon 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 2018
Amazon 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
 

What's hot (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:...
 

Similar to Cost optimized logging using API Gateway, SQS and Elastic Search

Microservices for Startups
Microservices for StartupsMicroservices for Startups
Microservices for Startups
Amazon Web Services
 
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
Boaz 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 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
 
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
Amazon 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 2018
Boaz Ziniman
 
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 2018
Amazon 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 considerations
Dilip Kola
 
Containers for Startups
Containers for StartupsContainers for Startups
Containers for Startups
Amazon Web Services
 
AI Powered Conversational Interfaces
AI Powered Conversational InterfacesAI Powered Conversational Interfaces
AI Powered Conversational Interfaces
Amazon 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 Study
Amazon 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 version
Heitor Lessa
 
Wildrydes Serverless Workshop Tel Aviv
Wildrydes Serverless Workshop Tel AvivWildrydes Serverless Workshop Tel Aviv
Wildrydes Serverless Workshop Tel Aviv
Boaz 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 Talks
Amazon 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
 

Similar to 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...
 

More from AWS User Group Bengaluru

Demystifying identity on AWS
Demystifying identity on AWSDemystifying identity on AWS
Demystifying identity on AWS
AWS User Group Bengaluru
 
AWS Secrets for Best Practices
AWS Secrets for Best PracticesAWS Secrets for Best Practices
AWS Secrets for Best Practices
AWS User Group Bengaluru
 
Cloud Security
Cloud SecurityCloud Security
Cloud Security
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 S3
AWS User Group Bengaluru
 
Medlife journey with AWS
Medlife journey with AWSMedlife journey with AWS
Medlife journey with AWS
AWS 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 AWS
AWS 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 career
AWS 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 account
AWS User Group Bengaluru
 
Log analytics with ELK stack
Log analytics with ELK stackLog analytics with ELK stack
Log analytics with ELK stack
AWS User Group Bengaluru
 
Serverless Culture
Serverless CultureServerless Culture
Serverless Culture
AWS User Group Bengaluru
 
Refactoring to serverless
Refactoring to serverlessRefactoring to serverless
Refactoring to serverless
AWS User Group Bengaluru
 
Amazon EC2 Spot Instances Workshop
Amazon EC2 Spot Instances WorkshopAmazon EC2 Spot Instances Workshop
Amazon EC2 Spot Instances Workshop
AWS 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 AWS
AWS 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 mark
AWS User Group Bengaluru
 
AWS Secrets for Best Practices
AWS Secrets for Best PracticesAWS Secrets for Best Practices
AWS Secrets for Best Practices
AWS 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 career
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 S3
AWS User Group Bengaluru
 
Cloud Security
Cloud SecurityCloud Security
Cloud Security
AWS User Group Bengaluru
 
Amazon EC2 Spot Instances
Amazon EC2 Spot InstancesAmazon EC2 Spot Instances
Amazon EC2 Spot Instances
AWS User Group Bengaluru
 
Cost Optimization in AWS
Cost Optimization in AWSCost Optimization in AWS
Cost Optimization in AWS
AWS User Group Bengaluru
 

More from 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
 

Recently uploaded

Generative AI Deep Dive: Advancing from Proof of Concept to Production
Generative AI Deep Dive: Advancing from Proof of Concept to ProductionGenerative AI Deep Dive: Advancing from Proof of Concept to Production
Generative AI Deep Dive: Advancing from Proof of Concept to Production
Aggregage
 
UiPath Test Automation using UiPath Test Suite series, part 5
UiPath Test Automation using UiPath Test Suite series, part 5UiPath Test Automation using UiPath Test Suite series, part 5
UiPath Test Automation using UiPath Test Suite series, part 5
DianaGray10
 
GraphSummit Singapore | Enhancing Changi Airport Group's Passenger Experience...
GraphSummit Singapore | Enhancing Changi Airport Group's Passenger Experience...GraphSummit Singapore | Enhancing Changi Airport Group's Passenger Experience...
GraphSummit Singapore | Enhancing Changi Airport Group's Passenger Experience...
Neo4j
 
Climate Impact of Software Testing at Nordic Testing Days
Climate Impact of Software Testing at Nordic Testing DaysClimate Impact of Software Testing at Nordic Testing Days
Climate Impact of Software Testing at Nordic Testing Days
Kari Kakkonen
 
GraphRAG is All You need? LLM & Knowledge Graph
GraphRAG is All You need? LLM & Knowledge GraphGraphRAG is All You need? LLM & Knowledge Graph
GraphRAG is All You need? LLM & Knowledge Graph
Guy Korland
 
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
 
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 | 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
 
Enchancing adoption of Open Source Libraries. A case study on Albumentations.AI
Enchancing adoption of Open Source Libraries. A case study on Albumentations.AIEnchancing adoption of Open Source Libraries. A case study on Albumentations.AI
Enchancing adoption of Open Source Libraries. A case study on Albumentations.AI
Vladimir Iglovikov, Ph.D.
 
Monitoring Java Application Security with JDK Tools and JFR Events
Monitoring Java Application Security with JDK Tools and JFR EventsMonitoring Java Application Security with JDK Tools and JFR Events
Monitoring Java Application Security with JDK Tools and JFR Events
Ana-Maria Mihalceanu
 
Secstrike : Reverse Engineering & Pwnable tools for CTF.pptx
Secstrike : Reverse Engineering & Pwnable tools for CTF.pptxSecstrike : Reverse Engineering & Pwnable tools for CTF.pptx
Secstrike : Reverse Engineering & Pwnable tools for CTF.pptx
nkrafacyberclub
 
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
 
Uni Systems Copilot event_05062024_C.Vlachos.pdf
Uni Systems Copilot event_05062024_C.Vlachos.pdfUni Systems Copilot event_05062024_C.Vlachos.pdf
Uni Systems Copilot event_05062024_C.Vlachos.pdf
Uni Systems S.M.S.A.
 
20240609 QFM020 Irresponsible AI Reading List May 2024
20240609 QFM020 Irresponsible AI Reading List May 202420240609 QFM020 Irresponsible AI Reading List May 2024
20240609 QFM020 Irresponsible AI Reading List May 2024
Matthew Sinclair
 
LF Energy Webinar: Electrical Grid Modelling and Simulation Through PowSyBl -...
LF Energy Webinar: Electrical Grid Modelling and Simulation Through PowSyBl -...LF Energy Webinar: Electrical Grid Modelling and Simulation Through PowSyBl -...
LF Energy Webinar: Electrical Grid Modelling and Simulation Through PowSyBl -...
DanBrown980551
 
RESUME BUILDER APPLICATION Project for students
RESUME BUILDER APPLICATION Project for studentsRESUME BUILDER APPLICATION Project for students
RESUME BUILDER APPLICATION Project for students
KAMESHS29
 
The Art of the Pitch: WordPress Relationships and Sales
The Art of the Pitch: WordPress Relationships and SalesThe Art of the Pitch: WordPress Relationships and Sales
The Art of the Pitch: WordPress Relationships and Sales
Laura Byrne
 
Introduction to CHERI technology - Cybersecurity
Introduction to CHERI technology - CybersecurityIntroduction to CHERI technology - Cybersecurity
Introduction to CHERI technology - Cybersecurity
mikeeftimakis1
 
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
 
DevOps and Testing slides at DASA Connect
DevOps and Testing slides at DASA ConnectDevOps and Testing slides at DASA Connect
DevOps and Testing slides at DASA Connect
Kari Kakkonen
 

Recently uploaded (20)

Generative AI Deep Dive: Advancing from Proof of Concept to Production
Generative AI Deep Dive: Advancing from Proof of Concept to ProductionGenerative AI Deep Dive: Advancing from Proof of Concept to Production
Generative AI Deep Dive: Advancing from Proof of Concept to Production
 
UiPath Test Automation using UiPath Test Suite series, part 5
UiPath Test Automation using UiPath Test Suite series, part 5UiPath Test Automation using UiPath Test Suite series, part 5
UiPath Test Automation using UiPath Test Suite series, part 5
 
GraphSummit Singapore | Enhancing Changi Airport Group's Passenger Experience...
GraphSummit Singapore | Enhancing Changi Airport Group's Passenger Experience...GraphSummit Singapore | Enhancing Changi Airport Group's Passenger Experience...
GraphSummit Singapore | Enhancing Changi Airport Group's Passenger Experience...
 
Climate Impact of Software Testing at Nordic Testing Days
Climate Impact of Software Testing at Nordic Testing DaysClimate Impact of Software Testing at Nordic Testing Days
Climate Impact of Software Testing at Nordic Testing Days
 
GraphRAG is All You need? LLM & Knowledge Graph
GraphRAG is All You need? LLM & Knowledge GraphGraphRAG is All You need? LLM & Knowledge Graph
GraphRAG is All You need? LLM & Knowledge Graph
 
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
 
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 | 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
 
Enchancing adoption of Open Source Libraries. A case study on Albumentations.AI
Enchancing adoption of Open Source Libraries. A case study on Albumentations.AIEnchancing adoption of Open Source Libraries. A case study on Albumentations.AI
Enchancing adoption of Open Source Libraries. A case study on Albumentations.AI
 
Monitoring Java Application Security with JDK Tools and JFR Events
Monitoring Java Application Security with JDK Tools and JFR EventsMonitoring Java Application Security with JDK Tools and JFR Events
Monitoring Java Application Security with JDK Tools and JFR Events
 
Secstrike : Reverse Engineering & Pwnable tools for CTF.pptx
Secstrike : Reverse Engineering & Pwnable tools for CTF.pptxSecstrike : Reverse Engineering & Pwnable tools for CTF.pptx
Secstrike : Reverse Engineering & Pwnable tools for CTF.pptx
 
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
 
Uni Systems Copilot event_05062024_C.Vlachos.pdf
Uni Systems Copilot event_05062024_C.Vlachos.pdfUni Systems Copilot event_05062024_C.Vlachos.pdf
Uni Systems Copilot event_05062024_C.Vlachos.pdf
 
20240609 QFM020 Irresponsible AI Reading List May 2024
20240609 QFM020 Irresponsible AI Reading List May 202420240609 QFM020 Irresponsible AI Reading List May 2024
20240609 QFM020 Irresponsible AI Reading List May 2024
 
LF Energy Webinar: Electrical Grid Modelling and Simulation Through PowSyBl -...
LF Energy Webinar: Electrical Grid Modelling and Simulation Through PowSyBl -...LF Energy Webinar: Electrical Grid Modelling and Simulation Through PowSyBl -...
LF Energy Webinar: Electrical Grid Modelling and Simulation Through PowSyBl -...
 
RESUME BUILDER APPLICATION Project for students
RESUME BUILDER APPLICATION Project for studentsRESUME BUILDER APPLICATION Project for students
RESUME BUILDER APPLICATION Project for students
 
The Art of the Pitch: WordPress Relationships and Sales
The Art of the Pitch: WordPress Relationships and SalesThe Art of the Pitch: WordPress Relationships and Sales
The Art of the Pitch: WordPress Relationships and Sales
 
Introduction to CHERI technology - Cybersecurity
Introduction to CHERI technology - CybersecurityIntroduction to CHERI technology - Cybersecurity
Introduction to CHERI technology - Cybersecurity
 
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
 
DevOps and Testing slides at DASA Connect
DevOps and Testing slides at DASA ConnectDevOps and Testing slides at DASA Connect
DevOps and Testing slides at DASA Connect
 

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

Editor's Notes

  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