Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

CHAPTER 2 개략적인 규모 추정 #36

Closed
seokjun7410 opened this issue Nov 29, 2023 · 1 comment
Closed

CHAPTER 2 개략적인 규모 추정 #36

seokjun7410 opened this issue Nov 29, 2023 · 1 comment

Comments

@seokjun7410
Copy link
Owner

2장 개략적인 규모 추정

2의 제곱수
모든 프로그래머가 알아야 하는 응답지연 값
가용성에 관계된 수치들
예제: 트위터 QPS와 저장소 요구량 측정

@seokjun7410
Copy link
Owner Author

대략적인 규모 추정

madeBy hoding
date 23.11.29
reference 가상 면접 사례로 배우는 대규모 시스템 설계 기초

2의 제곱수

1천 -> 1백만 -> 10억 -> 1조 -> 1000조
KB -> MB -> GB -> TB-> PB

가정

  • MAU 3억
  • 50프로의 사용자가 매일 사용
  • 사용자는 매일 2건 트윗
  • 트윗 10%는 미디어 포함
  • 데이터는 5년간 보관
  • 미디어는 1MB로 가정

1. DAU 추정하기

  • DAU = MAU(3억) * 하루접속 비율(50%) = 1.5억

2. 트윗 QPS 추정하기

  • DAU(1.5억) * 매일2건 /24/3600 = 약 3500 건 (트윗 하나당 쿼리 하나 가정)
  • 최대 QPS = 2 * QPS

3. 미디어 저장소 추정

  • 하루 저장량 : DAU(1.5) * 매일2건 * 트윗당 미디어비율(10%) * 미디어크기(1MB) = 30TB
  • 5년(5 X 365) X 하루저장량(30TB) = 55PB

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

When branches are created from issues, their pull requests are automatically linked.

1 participant