SlideShare una empresa de Scribd logo
1 de 38
Descargar para leer sin conexión
© 2019, Amazon Web Services, Inc. or its affiliates. All rights reserved.
ElastiCache
Software Engineer, SendBird
© 2019, Amazon Web Services, Inc. or its affiliates. All rights reserved.
• 

• Infrastructure Engineer

•
© 2019, Amazon Web Services, Inc. or its affiliates. All rights reserved.
SendBird
A market leader in chat and messaging API & SDK space.
A complete chat solution to provide premium messaging experiences to users of
online and mobile services.
Highly scalable
backend
infrastructure
Client-side SDK,
customizable UI
User-friendly Dashboard &
moderation tools
Messaging with Enterprise-grade security
COMPLIANT
Powering over 10,000 services worldwide
© 2019, Amazon Web Services, Inc. or its affiliates. All rights reserved.
Key Milestones
Jan 2016
Dec 2017
$ 17 M Series A
Established Feb 2013
Pivots to SendBird, the B2B messaging
solution on Mar 2015
Serves customers in 150+ countries
Powers 10,000+ apps
Hosts 50M+ monthly chat users and
700M+ messages every month
Mar 2015
YC 2016W
Feb 2019
$ 52 M Series B
© 2019, Amazon Web Services, Inc. or its affiliates. All rights reserved.
Our Mission
Premium messaging experience
for global products.
A fully managed chat platform for
B2B real-time messenger.
© 2019, Amazon Web Services, Inc. or its affiliates. All rights reserved.
Agenda
• Redis @SendBird

• ElastiCache Scalability 

• ElastiCache HA

• R5 & M5
© 2019, Amazon Web Services, Inc. or its affiliates. All rights reserved.
Redis @SendBird
Software Engineer, SendBird
© 2019, Amazon Web Services, Inc. or its affiliates. All rights reserved.
Redis @SendBird
Redis 

• RDS 

• Latency 

• Rate limiting
© 2019, Amazon Web Services, Inc. or its affiliates. All rights reserved.
Redis @SendBird
EC2 Redis
Redis
.
© 2019, Amazon Web Services, Inc. or its affiliates. All rights reserved.
1. check data in cache
3. if not in cache - Read
from RDS and save to
cache and return data
2. If in cache - return
data
Redis @SendBird
© 2019, Amazon Web Services, Inc. or its affiliates. All rights reserved.
Redis @SendBird
Redis .
© 2019, Amazon Web Services, Inc. or its affiliates. All rights reserved.
Redis @SendBird
• Redis 

• DB CPU 

• Latency 

• Ratelimit 

• ( )
© 2019, Amazon Web Services, Inc. or its affiliates. All rights reserved.
Redis @SendBird
• 

• EC2 system failure

• Out Of Memory

• Redis Snapshot
50%
© 2019, Amazon Web Services, Inc. or its affiliates. All rights reserved.
• Supports Redis

• High Performance

• Fully Managed; Zero admin

• High Available and Reliable

• Monitoring using CloudWatch

• Harden by Amazon
ElastiCache @SendBird
© 2019, Amazon Web Services, Inc. or its affiliates. All rights reserved.
• RDS 

• Latency 

• Rate limiting

• 

•
ElastiCache @SendBird
© 2019, Amazon Web Services, Inc. or its affiliates. All rights reserved.
1. check data in cache
3. if not in cache - Read
from RDS and save to
cache and return data
2. If in cache - return
data
ElastiCache @SendBird
© 2019, Amazon Web Services, Inc. or its affiliates. All rights reserved.
ElastiCache Scalability
Software Engineer, SendBird
© 2019, Amazon Web Services, Inc. or its affiliates. All rights reserved.
Scalability
…
• ..

• ElastiCache …

• ElastiCache ..
© 2019, Amazon Web Services, Inc. or its affiliates. All rights reserved.
.

1. Read Replica 

* Write workload .

2. Redis Cluster Mode 

* Python .
Scalability
© 2019, Amazon Web Services, Inc. or its affiliates. All rights reserved.
Sharding
.
…
Scalability
© 2019, Amazon Web Services, Inc. or its affiliates. All rights reserved.
Manually Sharding ElastiCache
1.Hash unique_key
based on number of
Shards
2. With hash key, route
to ElastiCache
1. Redis Hash table .

2. .

3. unique key
hash function .

4. Redis Node .
© 2019, Amazon Web Services, Inc. or its affiliates. All rights reserved.
• Super Node 

• 

• 

• Reader Node
Scalability
…
© 2019, Amazon Web Services, Inc. or its affiliates. All rights reserved.
Super Node Issue
Common Resource
…
EC2
Super Node Issue .
© 2019, Amazon Web Services, Inc. or its affiliates. All rights reserved.
Use Embedded Cache
…
Common Resource
Common Resource
Common Resource
Application
Memory locally cache
.
© 2019, Amazon Web Services, Inc. or its affiliates. All rights reserved.
ElastiCache HA
Software Engineer, SendBird
© 2019, Amazon Web Services, Inc. or its affiliates. All rights reserved.
HighAvailability
Redis Cluster
M
R
R
Reader#1 instance
Endpoint
Reader#2 instance
Endpoint
Master Primary Endpoint
Master AWS
Master Primary Endpoint
AWS HA
.
© 2019, Amazon Web Services, Inc. or its affiliates. All rights reserved.
HighAvailability
Redis Cluster
M
R
R
Reader#1 instance
Endpoint
Reader#2 instance
Endpoint
Master Primary Endpoint
Read Replica .
Instance endpoint Reader
Node Application
routing .
© 2019, Amazon Web Services, Inc. or its affiliates. All rights reserved.
HighAvailability
Redis Cluster
M
R
R
Reader#1 instance
Endpoint
Reader#2 instance
Endpoint
Master Primary Endpoint
Active Health Checker
Python Redis
health active
.

1. 

2.
© 2019, Amazon Web Services, Inc. or its affiliates. All rights reserved.
HAProxy is a free, very fast and reliable solution
offering high availability, load balancing, and proxying for
TCP and HTTP-based applications.
HAPROXY opensource
..

1. Maintain .

2. Active health checking Node


3. .
Use HAPROXY
© 2019, Amazon Web Services, Inc. or its affiliates. All rights reserved.
Use HAPROXY
https://blog.sendbird.com/elasticache-for-python-production-payloads
© 2019, Amazon Web Services, Inc. or its affiliates. All rights reserved.
HighAvailability
Redis Cluster
M
R
R
Reader#1 instance
Endpoint
Reader#2 instance
Endpoint
Master Primary Endpoint
Active Health Checker
HAPROXY Instance
Node Application
.
© 2019, Amazon Web Services, Inc. or its affiliates. All rights reserved.
Use HAPROXY
Redis Cluster
M
R
R
HAproxy cluster
VS
HAPROXY 

1. HAPROXY 

2. Sidecar Pattern
© 2019, Amazon Web Services, Inc. or its affiliates. All rights reserved.
Use HAPROXY (Side Car Pattern )
Redis Cluster
M
R
R
1. 

* EC2, VPC 

2. Single point of failure .
© 2019, Amazon Web Services, Inc. or its affiliates. All rights reserved.
Move to R5 & M5
Software Engineer, SendBird
© 2019, Amazon Web Services, Inc. or its affiliates. All rights reserved.
New instance ElastiCache M5 & R5
© 2019, Amazon Web Services, Inc. or its affiliates. All rights reserved.
New instance type ElastiCache M5 & R5
New instance in 2018 R5 & M5 

https://aws.amazon.com/blogs/compute/amazon-elasticache-performance-boost-
with-amazon-ec2-m5-and-r5-instances/
© 2019, Amazon Web Services, Inc. or its affiliates. All rights reserved.
We are hiring!
!
#AWSSummit
.
AWS Summit Seoul 2019
QR
.
Summit
.
© 2019, Amazon Web Services, Inc. or its affiliates. All rights reserved.

Más contenido relacionado

La actualidad más candente

La actualidad más candente (20)

20190514 AWS Black Belt Online Seminar Amazon API Gateway
20190514 AWS Black Belt Online Seminar Amazon API Gateway 20190514 AWS Black Belt Online Seminar Amazon API Gateway
20190514 AWS Black Belt Online Seminar Amazon API Gateway
 
AWS Summit Seoul 2023 | 오픈소스 데이터베이스로 탈 오라클! Why not?
AWS Summit Seoul 2023 | 오픈소스 데이터베이스로 탈 오라클! Why not?AWS Summit Seoul 2023 | 오픈소스 데이터베이스로 탈 오라클! Why not?
AWS Summit Seoul 2023 | 오픈소스 데이터베이스로 탈 오라클! Why not?
 
20190326 AWS Black Belt Online Seminar Amazon CloudWatch
20190326 AWS Black Belt Online Seminar Amazon CloudWatch20190326 AWS Black Belt Online Seminar Amazon CloudWatch
20190326 AWS Black Belt Online Seminar Amazon CloudWatch
 
AWS Summit Seoul 2023 | AWS Graviton과 함께하는 계획문제 최적화 애플리케이션 개발
AWS Summit Seoul 2023 | AWS Graviton과 함께하는 계획문제 최적화 애플리케이션 개발AWS Summit Seoul 2023 | AWS Graviton과 함께하는 계획문제 최적화 애플리케이션 개발
AWS Summit Seoul 2023 | AWS Graviton과 함께하는 계획문제 최적화 애플리케이션 개발
 
20191023 AWS Black Belt Online Seminar Amazon EMR
20191023 AWS Black Belt Online Seminar Amazon EMR20191023 AWS Black Belt Online Seminar Amazon EMR
20191023 AWS Black Belt Online Seminar Amazon EMR
 
Amazon SageMaker 오버뷰 - 강성문, AWS AI/ML 스페셜리스트 :: AIML 특집 웨비나
Amazon SageMaker 오버뷰 - 강성문, AWS AI/ML 스페셜리스트 :: AIML 특집 웨비나Amazon SageMaker 오버뷰 - 강성문, AWS AI/ML 스페셜리스트 :: AIML 특집 웨비나
Amazon SageMaker 오버뷰 - 강성문, AWS AI/ML 스페셜리스트 :: AIML 특집 웨비나
 
20210526 AWS Expert Online マルチアカウント管理の基本
20210526 AWS Expert Online マルチアカウント管理の基本20210526 AWS Expert Online マルチアカウント管理の基本
20210526 AWS Expert Online マルチアカウント管理の基本
 
SaaS テナント毎のコストを把握するための「AWS Application Cost Profiler」のご紹介
SaaS テナント毎のコストを把握するための「AWS Application Cost Profiler」のご紹介SaaS テナント毎のコストを把握するための「AWS Application Cost Profiler」のご紹介
SaaS テナント毎のコストを把握するための「AWS Application Cost Profiler」のご紹介
 
Amazon DocumentDB vs MongoDB 의 내부 아키텍쳐 와 장단점 비교
Amazon DocumentDB vs MongoDB 의 내부 아키텍쳐 와 장단점 비교Amazon DocumentDB vs MongoDB 의 내부 아키텍쳐 와 장단점 비교
Amazon DocumentDB vs MongoDB 의 내부 아키텍쳐 와 장단점 비교
 
Amazon Personalize Event Tracker 실시간 고객 반응을 고려한 추천::김태수, 솔루션즈 아키텍트, AWS::AWS ...
Amazon Personalize Event Tracker 실시간 고객 반응을 고려한 추천::김태수, 솔루션즈 아키텍트, AWS::AWS ...Amazon Personalize Event Tracker 실시간 고객 반응을 고려한 추천::김태수, 솔루션즈 아키텍트, AWS::AWS ...
Amazon Personalize Event Tracker 실시간 고객 반응을 고려한 추천::김태수, 솔루션즈 아키텍트, AWS::AWS ...
 
Amazon OpenSearch Deep dive - 내부구조, 성능최적화 그리고 스케일링
Amazon OpenSearch Deep dive - 내부구조, 성능최적화 그리고 스케일링Amazon OpenSearch Deep dive - 내부구조, 성능최적화 그리고 스케일링
Amazon OpenSearch Deep dive - 내부구조, 성능최적화 그리고 스케일링
 
AWS IAM과 친해지기 – 조이정, AWS 솔루션즈 아키텍트:: AWS Builders Online Series
AWS IAM과 친해지기 – 조이정, AWS 솔루션즈 아키텍트:: AWS Builders Online Series AWS IAM과 친해지기 – 조이정, AWS 솔루션즈 아키텍트:: AWS Builders Online Series
AWS IAM과 친해지기 – 조이정, AWS 솔루션즈 아키텍트:: AWS Builders Online Series
 
AWS Black Belt Online Seminar AWS Direct Connect
AWS Black Belt Online Seminar AWS Direct ConnectAWS Black Belt Online Seminar AWS Direct Connect
AWS Black Belt Online Seminar AWS Direct Connect
 
20190319 AWS Black Belt Online Seminar Amazon FSx for Windows Server
20190319 AWS Black Belt Online Seminar Amazon FSx for Windows Server20190319 AWS Black Belt Online Seminar Amazon FSx for Windows Server
20190319 AWS Black Belt Online Seminar Amazon FSx for Windows Server
 
20190703 AWS Black Belt Online Seminar Amazon MQ
20190703 AWS Black Belt Online Seminar Amazon MQ20190703 AWS Black Belt Online Seminar Amazon MQ
20190703 AWS Black Belt Online Seminar Amazon MQ
 
20190730 AWS Black Belt Online Seminar Amazon CloudFrontの概要
20190730 AWS Black Belt Online Seminar Amazon CloudFrontの概要20190730 AWS Black Belt Online Seminar Amazon CloudFrontの概要
20190730 AWS Black Belt Online Seminar Amazon CloudFrontの概要
 
AWS Black Belt Techシリーズ AWS Lambda
AWS Black Belt Techシリーズ AWS LambdaAWS Black Belt Techシリーズ AWS Lambda
AWS Black Belt Techシリーズ AWS Lambda
 
今だから!Amazon CloudFront 徹底活用
今だから!Amazon CloudFront 徹底活用今だから!Amazon CloudFront 徹底活用
今だから!Amazon CloudFront 徹底活用
 
AWS Organizations
AWS OrganizationsAWS Organizations
AWS Organizations
 
20190522 AWS Black Belt Online Seminar AWS Step Functions
20190522 AWS Black Belt Online Seminar AWS Step Functions20190522 AWS Black Belt Online Seminar AWS Step Functions
20190522 AWS Black Belt Online Seminar AWS Step Functions
 

Similar a 높은 가용성과 성능 향상을 위한 ElastiCache 활용 팁 - 임근택, SendBird :: AWS Summit Seoul 2019

Similar a 높은 가용성과 성능 향상을 위한 ElastiCache 활용 팁 - 임근택, SendBird :: AWS Summit Seoul 2019 (20)

Containers on AWS
Containers on AWSContainers on AWS
Containers on AWS
 
Introduction to Serverless Computing - OOP Munich
 Introduction to Serverless Computing - OOP Munich Introduction to Serverless Computing - OOP Munich
Introduction to Serverless Computing - OOP Munich
 
Microservices for Startups
Microservices for StartupsMicroservices for Startups
Microservices for Startups
 
AWS Accra Meetup - Developing Modern Applications in the Cloud
AWS Accra Meetup - Developing Modern Applications in the CloudAWS Accra Meetup - Developing Modern Applications in the Cloud
AWS Accra Meetup - Developing Modern Applications in the Cloud
 
[CPT DevOps Meetup] Developing Modern Applications in the Cloud
[CPT DevOps Meetup] Developing Modern Applications in the Cloud[CPT DevOps Meetup] Developing Modern Applications in the Cloud
[CPT DevOps Meetup] Developing Modern Applications in the Cloud
 
AWS Jozi Meetup Developing Modern Applications in the Cloud
AWS Jozi Meetup Developing Modern Applications in the CloudAWS Jozi Meetup Developing Modern Applications in the Cloud
AWS Jozi Meetup Developing Modern Applications in the Cloud
 
Application Modernization using the Strangler Pattern
Application Modernization using the Strangler PatternApplication Modernization using the Strangler Pattern
Application Modernization using the Strangler Pattern
 
More Containers Less Operations
More Containers Less OperationsMore Containers Less Operations
More Containers Less Operations
 
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...
 
Build a Multi-Region Serverless Application for Resilience & High Availabilit...
Build a Multi-Region Serverless Application for Resilience & High Availabilit...Build a Multi-Region Serverless Application for Resilience & High Availabilit...
Build a Multi-Region Serverless Application for Resilience & High Availabilit...
 
Serverless Architectural Patterns and Best Practices (ARC305-R2) - AWS re:Inv...
Serverless Architectural Patterns and Best Practices (ARC305-R2) - AWS re:Inv...Serverless Architectural Patterns and Best Practices (ARC305-R2) - AWS re:Inv...
Serverless Architectural Patterns and Best Practices (ARC305-R2) - AWS re:Inv...
 
Wildrydes Serverless Workshop Tel Aviv
Wildrydes Serverless Workshop Tel AvivWildrydes Serverless Workshop Tel Aviv
Wildrydes Serverless Workshop Tel Aviv
 
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
 
Driving Innovation with Serverless Applications (GPSBUS212) - AWS re:Invent 2018
Driving Innovation with Serverless Applications (GPSBUS212) - AWS re:Invent 2018Driving Innovation with Serverless Applications (GPSBUS212) - AWS re:Invent 2018
Driving Innovation with Serverless Applications (GPSBUS212) - AWS re:Invent 2018
 
DevConZM - Modern Applications Development in the Cloud
DevConZM - Modern Applications Development in the CloudDevConZM - Modern Applications Development in the Cloud
DevConZM - Modern Applications Development in the Cloud
 
Microservices on AWS: Architectural Patterns and Best Practices | AWS Summit ...
Microservices on AWS: Architectural Patterns and Best Practices | AWS Summit ...Microservices on AWS: Architectural Patterns and Best Practices | AWS Summit ...
Microservices on AWS: Architectural Patterns and Best Practices | AWS Summit ...
 
Microservices on AWS: Architectural Patterns and Best Practices | AWS Summit ...
Microservices on AWS: Architectural Patterns and Best Practices | AWS Summit ...Microservices on AWS: Architectural Patterns and Best Practices | AWS Summit ...
Microservices on AWS: Architectural Patterns and Best Practices | AWS Summit ...
 
CICDforModernApplications-Oslo.pdf
CICDforModernApplications-Oslo.pdfCICDforModernApplications-Oslo.pdf
CICDforModernApplications-Oslo.pdf
 
Come scalare da zero ai tuoi primi 10 milioni di utenti.pdf
Come scalare da zero ai tuoi primi 10 milioni di utenti.pdfCome scalare da zero ai tuoi primi 10 milioni di utenti.pdf
Come scalare da zero ai tuoi primi 10 milioni di utenti.pdf
 

Más de Amazon Web Services Korea

Más de Amazon Web Services Korea (20)

AWS Modern Infra with Storage Roadshow 2023 - Day 2
AWS Modern Infra with Storage Roadshow 2023 - Day 2AWS Modern Infra with Storage Roadshow 2023 - Day 2
AWS Modern Infra with Storage Roadshow 2023 - Day 2
 
AWS Modern Infra with Storage Roadshow 2023 - Day 1
AWS Modern Infra with Storage Roadshow 2023 - Day 1AWS Modern Infra with Storage Roadshow 2023 - Day 1
AWS Modern Infra with Storage Roadshow 2023 - Day 1
 
사례로 알아보는 Database Migration Service : 데이터베이스 및 데이터 이관, 통합, 분리, 분석의 도구 - 발표자: ...
사례로 알아보는 Database Migration Service : 데이터베이스 및 데이터 이관, 통합, 분리, 분석의 도구 - 발표자: ...사례로 알아보는 Database Migration Service : 데이터베이스 및 데이터 이관, 통합, 분리, 분석의 도구 - 발표자: ...
사례로 알아보는 Database Migration Service : 데이터베이스 및 데이터 이관, 통합, 분리, 분석의 도구 - 발표자: ...
 
Amazon DocumentDB - Architecture 및 Best Practice (Level 200) - 발표자: 장동훈, Sr. ...
Amazon DocumentDB - Architecture 및 Best Practice (Level 200) - 발표자: 장동훈, Sr. ...Amazon DocumentDB - Architecture 및 Best Practice (Level 200) - 발표자: 장동훈, Sr. ...
Amazon DocumentDB - Architecture 및 Best Practice (Level 200) - 발표자: 장동훈, Sr. ...
 
Amazon Elasticache - Fully managed, Redis & Memcached Compatible Service (Lev...
Amazon Elasticache - Fully managed, Redis & Memcached Compatible Service (Lev...Amazon Elasticache - Fully managed, Redis & Memcached Compatible Service (Lev...
Amazon Elasticache - Fully managed, Redis & Memcached Compatible Service (Lev...
 
Internal Architecture of Amazon Aurora (Level 400) - 발표자: 정달영, APAC RDS Speci...
Internal Architecture of Amazon Aurora (Level 400) - 발표자: 정달영, APAC RDS Speci...Internal Architecture of Amazon Aurora (Level 400) - 발표자: 정달영, APAC RDS Speci...
Internal Architecture of Amazon Aurora (Level 400) - 발표자: 정달영, APAC RDS Speci...
 
[Keynote] 슬기로운 AWS 데이터베이스 선택하기 - 발표자: 강민석, Korea Database SA Manager, WWSO, A...
[Keynote] 슬기로운 AWS 데이터베이스 선택하기 - 발표자: 강민석, Korea Database SA Manager, WWSO, A...[Keynote] 슬기로운 AWS 데이터베이스 선택하기 - 발표자: 강민석, Korea Database SA Manager, WWSO, A...
[Keynote] 슬기로운 AWS 데이터베이스 선택하기 - 발표자: 강민석, Korea Database SA Manager, WWSO, A...
 
Demystify Streaming on AWS - 발표자: 이종혁, Sr Analytics Specialist, WWSO, AWS :::...
Demystify Streaming on AWS - 발표자: 이종혁, Sr Analytics Specialist, WWSO, AWS :::...Demystify Streaming on AWS - 발표자: 이종혁, Sr Analytics Specialist, WWSO, AWS :::...
Demystify Streaming on AWS - 발표자: 이종혁, Sr Analytics Specialist, WWSO, AWS :::...
 
Amazon EMR - Enhancements on Cost/Performance, Serverless - 발표자: 김기영, Sr Anal...
Amazon EMR - Enhancements on Cost/Performance, Serverless - 발표자: 김기영, Sr Anal...Amazon EMR - Enhancements on Cost/Performance, Serverless - 발표자: 김기영, Sr Anal...
Amazon EMR - Enhancements on Cost/Performance, Serverless - 발표자: 김기영, Sr Anal...
 
Amazon OpenSearch - Use Cases, Security/Observability, Serverless and Enhance...
Amazon OpenSearch - Use Cases, Security/Observability, Serverless and Enhance...Amazon OpenSearch - Use Cases, Security/Observability, Serverless and Enhance...
Amazon OpenSearch - Use Cases, Security/Observability, Serverless and Enhance...
 
Enabling Agility with Data Governance - 발표자: 김성연, Analytics Specialist, WWSO,...
Enabling Agility with Data Governance - 발표자: 김성연, Analytics Specialist, WWSO,...Enabling Agility with Data Governance - 발표자: 김성연, Analytics Specialist, WWSO,...
Enabling Agility with Data Governance - 발표자: 김성연, Analytics Specialist, WWSO,...
 
Amazon Redshift Deep Dive - Serverless, Streaming, ML, Auto Copy (New feature...
Amazon Redshift Deep Dive - Serverless, Streaming, ML, Auto Copy (New feature...Amazon Redshift Deep Dive - Serverless, Streaming, ML, Auto Copy (New feature...
Amazon Redshift Deep Dive - Serverless, Streaming, ML, Auto Copy (New feature...
 
From Insights to Action, How to build and maintain a Data Driven Organization...
From Insights to Action, How to build and maintain a Data Driven Organization...From Insights to Action, How to build and maintain a Data Driven Organization...
From Insights to Action, How to build and maintain a Data Driven Organization...
 
[Keynote] Accelerating Business Outcomes with AWS Data - 발표자: Saeed Gharadagh...
[Keynote] Accelerating Business Outcomes with AWS Data - 발표자: Saeed Gharadagh...[Keynote] Accelerating Business Outcomes with AWS Data - 발표자: Saeed Gharadagh...
[Keynote] Accelerating Business Outcomes with AWS Data - 발표자: Saeed Gharadagh...
 
Amazon DynamoDB - Use Cases and Cost Optimization - 발표자: 이혁, DynamoDB Special...
Amazon DynamoDB - Use Cases and Cost Optimization - 발표자: 이혁, DynamoDB Special...Amazon DynamoDB - Use Cases and Cost Optimization - 발표자: 이혁, DynamoDB Special...
Amazon DynamoDB - Use Cases and Cost Optimization - 발표자: 이혁, DynamoDB Special...
 
LG전자 - Amazon Aurora 및 RDS 블루/그린 배포를 이용한 데이터베이스 업그레이드 안정성 확보 - 발표자: 이은경 책임, L...
LG전자 - Amazon Aurora 및 RDS 블루/그린 배포를 이용한 데이터베이스 업그레이드 안정성 확보 - 발표자: 이은경 책임, L...LG전자 - Amazon Aurora 및 RDS 블루/그린 배포를 이용한 데이터베이스 업그레이드 안정성 확보 - 발표자: 이은경 책임, L...
LG전자 - Amazon Aurora 및 RDS 블루/그린 배포를 이용한 데이터베이스 업그레이드 안정성 확보 - 발표자: 이은경 책임, L...
 
KB국민카드 - 클라우드 기반 분석 플랫폼 혁신 여정 - 발표자: 박창용 과장, 데이터전략본부, AI혁신부, KB카드│강병억, Soluti...
KB국민카드 - 클라우드 기반 분석 플랫폼 혁신 여정 - 발표자: 박창용 과장, 데이터전략본부, AI혁신부, KB카드│강병억, Soluti...KB국민카드 - 클라우드 기반 분석 플랫폼 혁신 여정 - 발표자: 박창용 과장, 데이터전략본부, AI혁신부, KB카드│강병억, Soluti...
KB국민카드 - 클라우드 기반 분석 플랫폼 혁신 여정 - 발표자: 박창용 과장, 데이터전략본부, AI혁신부, KB카드│강병억, Soluti...
 
SK Telecom - 망관리 프로젝트 TANGO의 오픈소스 데이터베이스 전환 여정 - 발표자 : 박승전, Project Manager, ...
SK Telecom - 망관리 프로젝트 TANGO의 오픈소스 데이터베이스 전환 여정 - 발표자 : 박승전, Project Manager, ...SK Telecom - 망관리 프로젝트 TANGO의 오픈소스 데이터베이스 전환 여정 - 발표자 : 박승전, Project Manager, ...
SK Telecom - 망관리 프로젝트 TANGO의 오픈소스 데이터베이스 전환 여정 - 발표자 : 박승전, Project Manager, ...
 
코리안리 - 데이터 분석 플랫폼 구축 여정, 그 시작과 과제 - 발표자: 김석기 그룹장, 데이터비즈니스센터, 메가존클라우드 ::: AWS ...
코리안리 - 데이터 분석 플랫폼 구축 여정, 그 시작과 과제 - 발표자: 김석기 그룹장, 데이터비즈니스센터, 메가존클라우드 ::: AWS ...코리안리 - 데이터 분석 플랫폼 구축 여정, 그 시작과 과제 - 발표자: 김석기 그룹장, 데이터비즈니스센터, 메가존클라우드 ::: AWS ...
코리안리 - 데이터 분석 플랫폼 구축 여정, 그 시작과 과제 - 발표자: 김석기 그룹장, 데이터비즈니스센터, 메가존클라우드 ::: AWS ...
 
LG 이노텍 - Amazon Redshift Serverless를 활용한 데이터 분석 플랫폼 혁신 과정 - 발표자: 유재상 선임, LG이노...
LG 이노텍 - Amazon Redshift Serverless를 활용한 데이터 분석 플랫폼 혁신 과정 - 발표자: 유재상 선임, LG이노...LG 이노텍 - Amazon Redshift Serverless를 활용한 데이터 분석 플랫폼 혁신 과정 - 발표자: 유재상 선임, LG이노...
LG 이노텍 - Amazon Redshift Serverless를 활용한 데이터 분석 플랫폼 혁신 과정 - 발표자: 유재상 선임, LG이노...
 

Último

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
Safe Software
 
Finding Java's Hidden Performance Traps @ DevoxxUK 2024
Finding Java's Hidden Performance Traps @ DevoxxUK 2024Finding Java's Hidden Performance Traps @ DevoxxUK 2024
Finding Java's Hidden Performance Traps @ DevoxxUK 2024
Victor Rentea
 
Modular Monolith - a Practical Alternative to Microservices @ Devoxx UK 2024
Modular Monolith - a Practical Alternative to Microservices @ Devoxx UK 2024Modular Monolith - a Practical Alternative to Microservices @ Devoxx UK 2024
Modular Monolith - a Practical Alternative to Microservices @ Devoxx UK 2024
Victor Rentea
 

Último (20)

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
 
Cyberprint. Dark Pink Apt Group [EN].pdf
Cyberprint. Dark Pink Apt Group [EN].pdfCyberprint. Dark Pink Apt Group [EN].pdf
Cyberprint. Dark Pink Apt Group [EN].pdf
 
Polkadot JAM Slides - Token2049 - By Dr. Gavin Wood
Polkadot JAM Slides - Token2049 - By Dr. Gavin WoodPolkadot JAM Slides - Token2049 - By Dr. Gavin Wood
Polkadot JAM Slides - Token2049 - By Dr. Gavin Wood
 
Connector Corner: Accelerate revenue generation using UiPath API-centric busi...
Connector Corner: Accelerate revenue generation using UiPath API-centric busi...Connector Corner: Accelerate revenue generation using UiPath API-centric busi...
Connector Corner: Accelerate revenue generation using UiPath API-centric busi...
 
Spring Boot vs Quarkus the ultimate battle - DevoxxUK
Spring Boot vs Quarkus the ultimate battle - DevoxxUKSpring Boot vs Quarkus the ultimate battle - DevoxxUK
Spring Boot vs Quarkus the ultimate battle - DevoxxUK
 
FWD Group - Insurer Innovation Award 2024
FWD Group - Insurer Innovation Award 2024FWD Group - Insurer Innovation Award 2024
FWD Group - Insurer Innovation Award 2024
 
ProductAnonymous-April2024-WinProductDiscovery-MelissaKlemke
ProductAnonymous-April2024-WinProductDiscovery-MelissaKlemkeProductAnonymous-April2024-WinProductDiscovery-MelissaKlemke
ProductAnonymous-April2024-WinProductDiscovery-MelissaKlemke
 
AWS Community Day CPH - Three problems of Terraform
AWS Community Day CPH - Three problems of TerraformAWS Community Day CPH - Three problems of Terraform
AWS Community Day CPH - Three problems of Terraform
 
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
 
Exploring Multimodal Embeddings with Milvus
Exploring Multimodal Embeddings with MilvusExploring Multimodal Embeddings with Milvus
Exploring Multimodal Embeddings with Milvus
 
Navigating the Deluge_ Dubai Floods and the Resilience of Dubai International...
Navigating the Deluge_ Dubai Floods and the Resilience of Dubai International...Navigating the Deluge_ Dubai Floods and the Resilience of Dubai International...
Navigating the Deluge_ Dubai Floods and the Resilience of Dubai International...
 
Ransomware_Q4_2023. The report. [EN].pdf
Ransomware_Q4_2023. The report. [EN].pdfRansomware_Q4_2023. The report. [EN].pdf
Ransomware_Q4_2023. The report. [EN].pdf
 
Web Form Automation for Bonterra Impact Management (fka Social Solutions Apri...
Web Form Automation for Bonterra Impact Management (fka Social Solutions Apri...Web Form Automation for Bonterra Impact Management (fka Social Solutions Apri...
Web Form Automation for Bonterra Impact Management (fka Social Solutions Apri...
 
Apidays New York 2024 - Passkeys: Developing APIs to enable passwordless auth...
Apidays New York 2024 - Passkeys: Developing APIs to enable passwordless auth...Apidays New York 2024 - Passkeys: Developing APIs to enable passwordless auth...
Apidays New York 2024 - Passkeys: Developing APIs to enable passwordless auth...
 
CNIC Information System with Pakdata Cf In Pakistan
CNIC Information System with Pakdata Cf In PakistanCNIC Information System with Pakdata Cf In Pakistan
CNIC Information System with Pakdata Cf In Pakistan
 
"I see eyes in my soup": How Delivery Hero implemented the safety system for ...
"I see eyes in my soup": How Delivery Hero implemented the safety system for ..."I see eyes in my soup": How Delivery Hero implemented the safety system for ...
"I see eyes in my soup": How Delivery Hero implemented the safety system for ...
 
Apidays New York 2024 - The Good, the Bad and the Governed by David O'Neill, ...
Apidays New York 2024 - The Good, the Bad and the Governed by David O'Neill, ...Apidays New York 2024 - The Good, the Bad and the Governed by David O'Neill, ...
Apidays New York 2024 - The Good, the Bad and the Governed by David O'Neill, ...
 
Finding Java's Hidden Performance Traps @ DevoxxUK 2024
Finding Java's Hidden Performance Traps @ DevoxxUK 2024Finding Java's Hidden Performance Traps @ DevoxxUK 2024
Finding Java's Hidden Performance Traps @ DevoxxUK 2024
 
Rising Above_ Dubai Floods and the Fortitude of Dubai International Airport.pdf
Rising Above_ Dubai Floods and the Fortitude of Dubai International Airport.pdfRising Above_ Dubai Floods and the Fortitude of Dubai International Airport.pdf
Rising Above_ Dubai Floods and the Fortitude of Dubai International Airport.pdf
 
Modular Monolith - a Practical Alternative to Microservices @ Devoxx UK 2024
Modular Monolith - a Practical Alternative to Microservices @ Devoxx UK 2024Modular Monolith - a Practical Alternative to Microservices @ Devoxx UK 2024
Modular Monolith - a Practical Alternative to Microservices @ Devoxx UK 2024
 

높은 가용성과 성능 향상을 위한 ElastiCache 활용 팁 - 임근택, SendBird :: AWS Summit Seoul 2019

  • 1. © 2019, Amazon Web Services, Inc. or its affiliates. All rights reserved. ElastiCache Software Engineer, SendBird
  • 2. © 2019, Amazon Web Services, Inc. or its affiliates. All rights reserved. • • Infrastructure Engineer •
  • 3. © 2019, Amazon Web Services, Inc. or its affiliates. All rights reserved. SendBird A market leader in chat and messaging API & SDK space. A complete chat solution to provide premium messaging experiences to users of online and mobile services. Highly scalable backend infrastructure Client-side SDK, customizable UI User-friendly Dashboard & moderation tools Messaging with Enterprise-grade security COMPLIANT Powering over 10,000 services worldwide
  • 4. © 2019, Amazon Web Services, Inc. or its affiliates. All rights reserved. Key Milestones Jan 2016 Dec 2017 $ 17 M Series A Established Feb 2013 Pivots to SendBird, the B2B messaging solution on Mar 2015 Serves customers in 150+ countries Powers 10,000+ apps Hosts 50M+ monthly chat users and 700M+ messages every month Mar 2015 YC 2016W Feb 2019 $ 52 M Series B
  • 5. © 2019, Amazon Web Services, Inc. or its affiliates. All rights reserved. Our Mission Premium messaging experience for global products. A fully managed chat platform for B2B real-time messenger.
  • 6. © 2019, Amazon Web Services, Inc. or its affiliates. All rights reserved. Agenda • Redis @SendBird • ElastiCache Scalability • ElastiCache HA • R5 & M5
  • 7. © 2019, Amazon Web Services, Inc. or its affiliates. All rights reserved. Redis @SendBird Software Engineer, SendBird
  • 8. © 2019, Amazon Web Services, Inc. or its affiliates. All rights reserved. Redis @SendBird Redis • RDS • Latency • Rate limiting
  • 9. © 2019, Amazon Web Services, Inc. or its affiliates. All rights reserved. Redis @SendBird EC2 Redis Redis .
  • 10. © 2019, Amazon Web Services, Inc. or its affiliates. All rights reserved. 1. check data in cache 3. if not in cache - Read from RDS and save to cache and return data 2. If in cache - return data Redis @SendBird
  • 11. © 2019, Amazon Web Services, Inc. or its affiliates. All rights reserved. Redis @SendBird Redis .
  • 12. © 2019, Amazon Web Services, Inc. or its affiliates. All rights reserved. Redis @SendBird • Redis • DB CPU • Latency • Ratelimit • ( )
  • 13. © 2019, Amazon Web Services, Inc. or its affiliates. All rights reserved. Redis @SendBird • • EC2 system failure • Out Of Memory • Redis Snapshot 50%
  • 14. © 2019, Amazon Web Services, Inc. or its affiliates. All rights reserved. • Supports Redis • High Performance • Fully Managed; Zero admin • High Available and Reliable • Monitoring using CloudWatch • Harden by Amazon ElastiCache @SendBird
  • 15. © 2019, Amazon Web Services, Inc. or its affiliates. All rights reserved. • RDS • Latency • Rate limiting • • ElastiCache @SendBird
  • 16. © 2019, Amazon Web Services, Inc. or its affiliates. All rights reserved. 1. check data in cache 3. if not in cache - Read from RDS and save to cache and return data 2. If in cache - return data ElastiCache @SendBird
  • 17. © 2019, Amazon Web Services, Inc. or its affiliates. All rights reserved. ElastiCache Scalability Software Engineer, SendBird
  • 18. © 2019, Amazon Web Services, Inc. or its affiliates. All rights reserved. Scalability … • .. • ElastiCache … • ElastiCache ..
  • 19. © 2019, Amazon Web Services, Inc. or its affiliates. All rights reserved. . 1. Read Replica * Write workload . 2. Redis Cluster Mode * Python . Scalability
  • 20. © 2019, Amazon Web Services, Inc. or its affiliates. All rights reserved. Sharding . … Scalability
  • 21. © 2019, Amazon Web Services, Inc. or its affiliates. All rights reserved. Manually Sharding ElastiCache 1.Hash unique_key based on number of Shards 2. With hash key, route to ElastiCache 1. Redis Hash table . 2. . 3. unique key hash function . 4. Redis Node .
  • 22. © 2019, Amazon Web Services, Inc. or its affiliates. All rights reserved. • Super Node • • • Reader Node Scalability …
  • 23. © 2019, Amazon Web Services, Inc. or its affiliates. All rights reserved. Super Node Issue Common Resource … EC2 Super Node Issue .
  • 24. © 2019, Amazon Web Services, Inc. or its affiliates. All rights reserved. Use Embedded Cache … Common Resource Common Resource Common Resource Application Memory locally cache .
  • 25. © 2019, Amazon Web Services, Inc. or its affiliates. All rights reserved. ElastiCache HA Software Engineer, SendBird
  • 26. © 2019, Amazon Web Services, Inc. or its affiliates. All rights reserved. HighAvailability Redis Cluster M R R Reader#1 instance Endpoint Reader#2 instance Endpoint Master Primary Endpoint Master AWS Master Primary Endpoint AWS HA .
  • 27. © 2019, Amazon Web Services, Inc. or its affiliates. All rights reserved. HighAvailability Redis Cluster M R R Reader#1 instance Endpoint Reader#2 instance Endpoint Master Primary Endpoint Read Replica . Instance endpoint Reader Node Application routing .
  • 28. © 2019, Amazon Web Services, Inc. or its affiliates. All rights reserved. HighAvailability Redis Cluster M R R Reader#1 instance Endpoint Reader#2 instance Endpoint Master Primary Endpoint Active Health Checker Python Redis health active . 1. 2.
  • 29. © 2019, Amazon Web Services, Inc. or its affiliates. All rights reserved. HAProxy is a free, very fast and reliable solution offering high availability, load balancing, and proxying for TCP and HTTP-based applications. HAPROXY opensource .. 1. Maintain . 2. Active health checking Node 3. . Use HAPROXY
  • 30. © 2019, Amazon Web Services, Inc. or its affiliates. All rights reserved. Use HAPROXY https://blog.sendbird.com/elasticache-for-python-production-payloads
  • 31. © 2019, Amazon Web Services, Inc. or its affiliates. All rights reserved. HighAvailability Redis Cluster M R R Reader#1 instance Endpoint Reader#2 instance Endpoint Master Primary Endpoint Active Health Checker HAPROXY Instance Node Application .
  • 32. © 2019, Amazon Web Services, Inc. or its affiliates. All rights reserved. Use HAPROXY Redis Cluster M R R HAproxy cluster VS HAPROXY 1. HAPROXY 2. Sidecar Pattern
  • 33. © 2019, Amazon Web Services, Inc. or its affiliates. All rights reserved. Use HAPROXY (Side Car Pattern ) Redis Cluster M R R 1. * EC2, VPC 2. Single point of failure .
  • 34. © 2019, Amazon Web Services, Inc. or its affiliates. All rights reserved. Move to R5 & M5 Software Engineer, SendBird
  • 35. © 2019, Amazon Web Services, Inc. or its affiliates. All rights reserved. New instance ElastiCache M5 & R5
  • 36. © 2019, Amazon Web Services, Inc. or its affiliates. All rights reserved. New instance type ElastiCache M5 & R5 New instance in 2018 R5 & M5 https://aws.amazon.com/blogs/compute/amazon-elasticache-performance-boost- with-amazon-ec2-m5-and-r5-instances/
  • 37. © 2019, Amazon Web Services, Inc. or its affiliates. All rights reserved. We are hiring!
  • 38. ! #AWSSummit . AWS Summit Seoul 2019 QR . Summit . © 2019, Amazon Web Services, Inc. or its affiliates. All rights reserved.