Skip to content
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
59 changes: 58 additions & 1 deletion README.md
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

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Я бы ленту конкретизировал - имею в виду то, как она строится


## Non-functional requirements:

Choose a reason for hiding this comment

The 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

Choose a reason for hiding this comment

The 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>

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Запись чего именно?

<code>
10 000 000 * 1/86 400 = 116
</code>

RPS(read)<br>

Choose a reason for hiding this comment

The 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/>

Choose a reason for hiding this comment

The 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>