From b0d5014bdce60a96542b85f205cabdaf106e3456 Mon Sep 17 00:00:00 2001 From: pycoder-code <56711257+pycoder-code@users.noreply.github.com> Date: Sun, 4 Aug 2024 15:41:05 +0700 Subject: [PATCH 1/2] Update README.md start --- README.md | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/README.md b/README.md index 63ace0e..489bc74 100644 --- a/README.md +++ b/README.md @@ -1 +1,3 @@ -Hello word +# Tourist Social Network - System Design +## Functional requirements: +## Non-functional requirements: From d82c7bf3c821569bb098ba869849eeeba1c3cbde Mon Sep 17 00:00:00 2001 From: vladimir <309vslexus@gmail.com> Date: Mon, 2 Sep 2024 12:44:28 +0700 Subject: [PATCH 2/2] =?UTF-8?q?=D1=83=D1=80=D0=BE=D0=BA=201?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- README.md | 55 +++++++++++++++++++++++++++++++++++++++++++++++++++++++ 1 file changed, 55 insertions(+) diff --git a/README.md b/README.md index 489bc74..4ea1dad 100644 --- a/README.md +++ b/README.md @@ -1,3 +1,58 @@ # 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: +- DAU = 10 000 000 +- availability 99,95% (4ч23м) +- geo CIS countries +- data is always stored +- no seasonality +- 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):
+ + 10 000 000 * 1/86 400 = 116 + + +RPS(read)
+ + max_images_in_post = 5
+ (10 000 000 * (6 * 5)/86 400 = 3500 +
+ + +Traffic(write)
+ +images = 5 * 500кБ = 2500 KБ
+desc = 3000 * 4Б = 12 KB
+title = 200 * 4Б = 0.8 КБ
+116*(2500+12+0.8) = 290 000 КБ/с +
+ + +Traffic(read)
+ +3500*(2500+12+0.8) = 8 794 800 КБ/с + + +Connections
+ +10 000 000 * 0.1 = 1 000 000 + \ No newline at end of file