From 88cc3dd6d7316caa81ebcae431257d7851bca965 Mon Sep 17 00:00:00 2001 From: HYUNJIN CHO Date: Sat, 1 Jun 2024 11:27:11 +0900 Subject: [PATCH] Update BACK.md --- back/BACK.md | 12 ++++++++++++ 1 file changed, 12 insertions(+) diff --git a/back/BACK.md b/back/BACK.md index ec73d2e907..bac051a921 100644 --- a/back/BACK.md +++ b/back/BACK.md @@ -1,5 +1,15 @@ # **๐Ÿ’พ Backend ๊ธฐ์ˆ  ๋ฌธ์„œ** +
+ +## **์šด์˜์ฒด์ œ ์บก์Šคํ†ค ์ธํ„ฐ๋ทฐ ๊ณผ์ œ ๊ด€๋ จ ์ •๋ฆฌ ๋ฌธ์„œ** + +์šด์˜์ฒด์ œ ๊ณผ๋ชฉ์—์„œ ์บก์Šคํ†ค ์ธํ„ฐ๋ทฐ๋ฅผ ํ•˜๋Š” ๊ณผ์ œ๊ฐ€ ์žˆ๋Š”๋ฐ, ์ด๋ฅผ ๋Œ€๋น„ํ•ด์„œ ์™ธ๊ตญ๋ฏผ ํŒ€์—์„œ ํ•ด๋‹น ๋‚ด์šฉ์„ ์ž์„ธํžˆ ์ •๋ฆฌํ•œ ๋ฌธ์„œ๊ฐ€ ์žˆ๋‹ค. ๊ด€์‹ฌ์žˆ๋‹ค๋ฉด ์•„๋ž˜ ๋ฌธ์„œ๋ฅผ ์ฐธ๊ณ ํ•ด์ฃผ๊ธธ ๋ฐ”๋ž€๋‹ค. + +[์šด์˜์ฒด์ œ ๋ฌธ์„œ](https://capstone-design-2024.notion.site/a2368f0fe2734df09835cbc4da916d5a) + +
+ ## **๊ธฐ๋Šฅ์  ๊ณ ๋ ค ์‚ฌํ•ญ**
@@ -161,6 +171,8 @@ Write ์ „๋žต์€ Write Around ์ „๋žต์„ ํ™œ์šฉํ–ˆ๋‹ค. ๋ฐ์ดํ„ฐ๋ฅผ ์“ธ ๋•Œ, Redis ํ˜„์žฌ ๋ฐฉ๋ฒ•๋„ ๋™์‹œ์„ฑ ๋ฌธ์ œ๋ฅผ ํ•ด๊ฒฐํ•˜๋Š” ๋ฐฉ๋ฒ•์ด์ง€๋งŒ ๋‚ด๊ฐ€ ์ถ”์ฒœํ•œ ๋‹ต๋ณ€์˜ ์ถ”์ฒœ์ˆ˜๊ฐ€ ์ฆ‰์‹œ ๋ฐ˜์˜๋˜์–ด ๋ณด์—ฌ์ง€์ง€๋Š” ์•Š๋Š”๋‹ค. ์ด๋Š” ๋ฐ์ดํ„ฐ๋ฅผ ์ฝ์–ด์˜ฌ๋•Œ๋Š” ์บ์‹œ์—์„œ ์ฐพ๋Š” ๋ฐฉ์‹์ด ์•„๋‹ˆ๊ธฐ ๋•Œ๋ฌธ์ด๋‹ค. ์ถ”ํ›„์—๋Š” ์บ์‹œ์—์„œ ๊ฐ’์„ ์ฐพ๋„๋ก ๊ตฌํ˜„ํ•  ํ•„์š”๊ฐ€ ์žˆ๋‹ค. +์ถ”๊ฐ€์ ์œผ๋กœ, ์šด์˜์ฒด์ œ ๊ณผ๋ชฉ์—์„œ ์บก์Šคํ†ค ์ธํ„ฐ๋ทฐ ๊ณผ์ œ ๋ฌธ์„œ์— [Race Condition ์˜ˆ๋ฐฉ์— ๊ด€๋ จ๋œ ๋ฌธ์„œ](https://capstone-design-2024.notion.site/a2368f0fe2734df09835cbc4da916d5a)๋ฅผ ํ•˜๋‚˜ ๋งŒ๋“ค์—ˆ์—ˆ๋‹ค. ํ˜น์‹œ๋ผ๋„ ๋™์‹œ์„ฑ ์ฒ˜๋ฆฌ์— ๊ด€์‹ฌ์ด ์žˆ๋‹ค๋ฉด ํ•ด๋‹น ๋ฌธ์„œ์— 2๋ฒˆ์„ ์ฐธ์กฐํ•ด์ฃผ๊ธธ ๋ฐ”๋ž€๋‹ค. +
### **N+1 ๋ฌธ์ œ**