-
Notifications
You must be signed in to change notification settings - Fork 0
Develop #1
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
base: main
Are you sure you want to change the base?
Develop #1
Changes from all commits
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -1 +1,58 @@ | ||
| Hello word | ||
| # Tourist Social Network - System Design | ||
| ## Functional requirements: | ||
| - registration of users | ||
| - publishing posts with images and descriptions | ||
| - viewing publications of other users | ||
| - comments on posts | ||
| - rating posts | ||
| - subscribe to other users and receive updates | ||
| - search for popular travel destinations | ||
| - feeds | ||
|
|
||
| ## Non-functional requirements: | ||
|
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Таймингов на основные операции не хватает |
||
| - DAU = 10 000 000 | ||
| - availability 99,95% (4ч23м) | ||
| - geo CIS countries | ||
| - data is always stored | ||
| - no seasonality | ||
|
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Есть же ярко-выраженные сезоны отпусков |
||
| - no more than 1c creation post | ||
| - no limit subscribe | ||
| - max 5 images one post | ||
| - max size image 500 кб | ||
| - max 3000 desc | ||
| - max 200 title | ||
| - one post - one day | ||
| - 5 post view - one day | ||
|
|
||
|
|
||
| ## load: | ||
| RPS(write):<br> | ||
|
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Запись чего именно? |
||
| <code> | ||
| 10 000 000 * 1/86 400 = 116 | ||
| </code> | ||
|
|
||
| RPS(read)<br> | ||
|
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Аналогично и чтение |
||
| <code> | ||
| max_images_in_post = 5<br/> | ||
| (10 000 000 * (6 * 5)/86 400 = 3500 | ||
| </code> | ||
|
|
||
|
|
||
| Traffic(write)<br/> | ||
|
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Анлогично трафик |
||
| <code> | ||
| images = 5 * 500кБ = 2500 KБ<br/> | ||
| desc = 3000 * 4Б = 12 KB<br/> | ||
| title = 200 * 4Б = 0.8 КБ<br/> | ||
| 116*(2500+12+0.8) = 290 000 КБ/с | ||
| </code> | ||
|
|
||
|
|
||
| Traffic(read)<br/> | ||
| <code> | ||
| 3500*(2500+12+0.8) = 8 794 800 КБ/с | ||
| </code> | ||
|
|
||
| Connections<br/> | ||
| <code> | ||
| 10 000 000 * 0.1 = 1 000 000 | ||
| </code> | ||
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Я бы ленту конкретизировал - имею в виду то, как она строится