From 614ac138afae61149d07331965a797375eb565b9 Mon Sep 17 00:00:00 2001 From: Woo Jia Hao Date: Fri, 1 Mar 2024 03:29:09 +0000 Subject: [PATCH] GITBOOK-30: No subject --- getting-started/study-plan.md | 4 ++-- other-technical-topics/system-design/README.md | 8 ++++++++ 2 files changed, 10 insertions(+), 2 deletions(-) diff --git a/getting-started/study-plan.md b/getting-started/study-plan.md index 53a5be0..76793a9 100644 --- a/getting-started/study-plan.md +++ b/getting-started/study-plan.md @@ -36,8 +36,8 @@ While it is good if you are "discover" these patterns yourself, having them form ### Notation -* Questions marked with :star: require LeetCode premium -* Questions marked with :triangular\_flag\_on\_post: are problems that I found incredibly tricky and often tapped out +* :star: : requires LeetCode premium +* :triangular\_flag\_on\_post: : problems that I found incredibly tricky and often tapped out ### Duplicate questions diff --git a/other-technical-topics/system-design/README.md b/other-technical-topics/system-design/README.md index 4b9c381..5e4021f 100644 --- a/other-technical-topics/system-design/README.md +++ b/other-technical-topics/system-design/README.md @@ -417,3 +417,11 @@ Distributing database objects across different servers; some tables belong to ce ### What’s the difference between hot and cold storage? Hot storage refers to data that is accessed frequently or requires fast access while cold storage is used for data rarely needed. + +### How do you deal with high frequency user input? + +Apply techniques like debouncing. The user input function can be triggered after a period of no-action to avoid repeatedly spamming the backend with requests. Alternatively, the user input function can trigger once and wait for a cooldown period (no-action). + +### How does debouncing differ from throttling? + +Throttling involves running function at regular intervals while debouncing focuses on creating a cooldown period to avoid creating too many requests.