Skip to content

๐Ÿถ ํ์‹œ์ฆ˜ 30๊ธฐ ๊ธฐ์—… ํ”„๋กœ์ ํŠธ F!TPET AํŒ€ Backend Repository

Notifications You must be signed in to change notification settings

FITPET-A/FITPET_BE

Folders and files

NameName
Last commit message
Last commit date

Latest commit

ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 

Repository files navigation

FITPET_BE

๋Œ€ํ•™์ƒ IT๊ฒฝ์˜ํ•™ํšŒ ํ์‹œ์ฆ˜ 30๊ธฐ ๊ธฐ์—… ํ”„๋กœ์ ํŠธ : FITPET A์กฐ Backend Repository
2024.08.19 ~ 2024.09.08

1


Member

๊น€๋‹ค์€ ๊น€์ˆ˜์ง„
๊น€๋‹ค์€ ๊ถŒ์ฑ„์—ฐ
@daeun084 @cowboysj
์ˆญ์‹ค๋Œ€ํ•™๊ต ์ปดํ“จํ„ฐํ•™๋ถ€ ๊ฒฝํฌ๋Œ€ํ•™๊ต ์ปดํ“จํ„ฐ๊ณตํ•™๊ณผ




Stack

Language & Framework

Documentation

Database & ORM

Build Tool

Cloud & Hosting

Containerization & CI/CD




Architecture

image


ERD

20


Convention

commit convention
conventionType: ๊ตฌํ˜„ํ•œ ๋‚ด์šฉ

convention Type

convention type description
feat ์ƒˆ๋กœ์šด ๊ธฐ๋Šฅ ๊ตฌํ˜„
add ํŒŒ์ผ ๋ฐ ์ฝ”๋“œ ์ถ”๊ฐ€
chore ๋ถ€์ˆ˜์ ์ธ ์ฝ”๋“œ ์ˆ˜์ • ๋ฐ ๊ธฐํƒ€ ๋ณ€๊ฒฝ์‚ฌํ•ญ
docs ๋ฌธ์„œ ์ถ”๊ฐ€ ๋ฐ ์ˆ˜์ •, ์‚ญ์ œ
fix ๋ฒ„๊ทธ ์ˆ˜์ •
rename ํŒŒ์ผ ๋ฐ ํด๋” ์ด๋ฆ„ ๋ณ€๊ฒฝ
test ํ…Œ์ŠคํŠธ ์ฝ”๋“œ ์ถ”๊ฐ€ ๋ฐ ์ˆ˜์ •, ์‚ญ์ œ
refactor ์ฝ”๋“œ ๋ฆฌํŒฉํ† ๋ง




Branch

  • ์ปจ๋ฒค์…˜๋ช…/#์ด์Šˆ๋ฒˆํ˜ธ
  • pull request๋ฅผ ํ†ตํ•ด develop branch์— merge ํ›„, branch delete
  • ๋ถ€๋“์ดํ•˜๊ฒŒ develop branch์— ์ง์ ‘ commit ํ•ด์•ผ ํ•  ๊ฒฝ์šฐ, !hotfix: ์‚ฌ์šฉ




Directory

src/
โ”œโ”€โ”€ main/
โ”‚   โ”œโ”€โ”€ common/
โ”‚   โ”œโ”€โ”€ enums/
โ”‚   โ”œโ”€โ”€ exception/
โ”‚   โ”œโ”€โ”€ response/
โ”‚   โ”œโ”€โ”€ status/
โ”‚   โ”œโ”€โ”€ annotation/
โ”‚   โ”œโ”€โ”€ utils/
โ”‚   โ”œโ”€โ”€ base/
โ”‚   โ”œโ”€โ”€ config/
โ”œโ”€โ”€ entity/
โ”œโ”€โ”€ controller/
โ”œโ”€โ”€ service/
โ”œโ”€โ”€ repository/
โ”œโ”€โ”€ converter/
โ””โ”€โ”€ dto/
    โ”œโ”€โ”€ request/
    โ””โ”€โ”€ response/
		 




๋ถ€ํ•˜ ํ…Œ์ŠคํŠธ

๊ฐ€์žฅ ์š”์ฒญ์ด ๋งŽ์„ ๊ฒƒ์œผ๋กœ ์˜ˆ์ƒ๋˜๋Š” ๊ฒฌ์ ์„œ ์š”์ฒญ API์— ๋Œ€ํ•ด K6์„ ์ด์šฉํ•ด ๋ถ€ํ•˜ํ…Œ์ŠคํŠธ๋ฅผ ์ง„ํ–‰ํ–ˆ์Šต๋‹ˆ๋‹ค.

10๋ช…์ด 1์ดˆ ๋™์•ˆ ์ตœ๋Œ€ํ•œ์˜ ์š”์ฒญ์„ ๋ณด๋‚ธ๋‹ค. 2000๋ช…์ด 1์ดˆ ๋™์•ˆ ์ตœ๋Œ€ํ•œ์˜ ์š”์ฒญ์„ ๋ณด๋‚ธ๋‹ค.
image image
- ์ด 119๊ฐœ์˜ ์š”์ฒญ์ด ๋ฌธ์ œ์—†์ด ์ฒ˜๋ฆฌ๋จ
- ํ‰๊ท  ์š”์ฒญ ์ฒ˜๋ฆฌ ์‹œ๊ฐ„ : 83.75ms
- ์ตœ์†Œ ์š”์ฒญ ์ฒ˜๋ฆฌ ์‹œ๊ฐ„ : 55.41ms
- ์ตœ๋Œ€ ์š”์ฒญ ์ฒ˜๋ฆฌ ์‹œ๊ฐ„ : 160.37ms
- ์ด 2000๊ฐœ์˜ ์š”์ฒญ์ด ๋ฌธ์ œ์—†์ด ์ฒ˜๋ฆฌ๋จ
- ํ‰๊ท  ์š”์ฒญ ์ฒ˜๋ฆฌ ์‹œ๊ฐ„ : 14.92s
- ์ตœ์†Œ ์š”์ฒญ ์ฒ˜๋ฆฌ ์‹œ๊ฐ„ : 1.4s
- ์ตœ๋Œ€ ์š”์ฒญ ์ฒ˜๋ฆฌ ์‹œ๊ฐ„ : 23.15s

์‚ฌ์šฉ์ž ์ˆ˜ ๋ณ€๋™ ์‹œ๋‚˜๋ฆฌ์˜ค ์‘๋‹ต ์‹œ๊ฐ„์ด 5์ดˆ ์ด๋‚ด์ธ ์ตœ๋Œ€ ์š”์ฒญ ์ˆ˜ ํŒŒ์•… ์„œ๋ฒ„ ๋ณต์›๋ ฅ ์ธก์ •
image image image
0์ดˆ ~ 2์ดˆ : 50๋ช…, 2์ดˆ ~ 12์ดˆ : 300๋ช…, 12์ดˆ ~ 17์ดˆ : 1000๋ช…, 17์ดˆ ~ 18์ดˆ : 500๋ช… 5์ดˆ๊ฐ€ ์ง€๋‚  ๊ฒฝ์šฐ ์‚ฌ์šฉ์ž ์ดํƒˆ์ด ๋Š˜์–ด๋‚  ๊ฒƒ์ด๋ผ๊ณ  ํŒ๋‹จํ•˜์—ฌ 1์ดˆ ๋™์•ˆ 500๋ช…์˜ ์‚ฌ์šฉ์ž๊ฐ€ ์š”์ฒญ์„ ๋ณด๋‚ด ์š”์ฒญ ์ฒ˜๋ฆฌ ์‹œ๊ฐ„์ด 5์ดˆ ์ด๋‚ด์ธ ์š”์ฒญ ๊ฐœ์ˆ˜๋ฅผ ํŒŒ์•… ์„œ๋ฒ„์— ๊ณผ๋ถ€ํ•˜๊ฐ€ ์™”์„ ๋•Œ ๋ณต์›๋ ฅ์„ ์ธก์ •
- ์ด 2686๊ฐœ์˜ ์š”์ฒญ์ด ๋ฌธ์ œ์—†์ด ์ฒ˜๋ฆฌ๋จ
- ํ‰๊ท  ์š”์ฒญ ์ฒ˜๋ฆฌ ์‹œ๊ฐ„ : 3.62s
- ์ตœ์†Œ ์š”์ฒญ ์ฒ˜๋ฆฌ ์‹œ๊ฐ„ : 41.86ms
- ์ตœ๋Œ€ ์š”์ฒญ ์ฒ˜๋ฆฌ ์‹œ๊ฐ„ : 9.19s
- ์ด 263๊ฐœ์˜ ์š”์ฒญ์ด ์ฒ˜๋ฆฌ๋จ
- ๋‚˜๋จธ์ง€ 238๊ฐœ์˜ ์š”์ฒญ๋„ ์„ฑ๊ณตํ•˜์˜€์ง€๋งŒ, ์ตœ๋Œ€ ์š”์ฒญ ์ฒ˜๋ฆฌ ์‹œ๊ฐ„์œผ๋กœ ์„ค์ •ํ•œ 5์ดˆ ์ด๋‚ด์— ์‘๋‹ต์ด ์˜ค์ง€ ์•Š์Œ
- 1์ดˆ ๋™์•ˆ 3000๋ช…์˜ ์‚ฌ์šฉ์ž ์‹œ๋‚˜๋ฆฌ์˜ค๋กœ ํ…Œ์ŠคํŠธ๋ฅผ ์ง„ํ–‰ํ–ˆ์„ ๋•Œ, ์ผ์‹œ์ ์œผ๋กœ ์„œ๋ฒ„์— ๊ณผ๋ถ€ํ•˜๊ฐ€ ์™€ ์š”์ฒญ์ด ์ฒ˜๋ฆฌ๋˜์ง€ ์•Š์•˜์Œ
- 2์ดˆ ์ •๋„ ์„œ๋ฒ„์— ๊ณผ๋ถ€ํ•˜๊ฐ€ ์™”์ง€๋งŒ, ์ดํ›„ 3์ดˆ ์ด๋‚ด์— ๋ฐ”๋กœ ๋ณต์›๋˜๋Š” ๊ฒƒ์„ ํ™•์ธํ•จ

๋ถ€ํ•˜ํ…Œ์ŠคํŠธ ๊ฒฐ๊ณผ ๋ถ„์„

1. ๋™์‹œ์ ‘์†์ž ์ˆ˜๊ฐ€ ๋งŽ์•„์งˆ์ˆ˜๋ก ์š”์ฒญ ์ฒ˜๋ฆฌ ์‹œ๊ฐ„์ด ๋Š˜์–ด๋‚œ๋‹ค.

  • ๋™์‹œ์ ‘์†์ž ์ˆ˜๊ฐ€ 10๋ช…์ผ ๋•Œ์˜ ํ‰๊ท  ์š”์ฒญ ์ฒ˜๋ฆฌ ์‹œ๊ฐ„์€ 0.088์ดˆ, ์ตœ๋Œ€ 0.16์ดˆ์ด๋‹ค.

  • ๋™์‹œ์ ‘์†์ž ์ˆ˜๊ฐ€ 2000๋ช…์ผ ๋•Œ์˜ ํ‰๊ท  ์š”์ฒญ ์ฒ˜๋ฆฌ ์‹œ๊ฐ„์€ 14.92์ดˆ, ์ตœ๋Œ€ ์š”์ฒญ ์ฒ˜๋ฆฌ ์‹œ๊ฐ„์€ 23.15์ดˆ์ด๋‹ค.

    ํ˜„์žฌ ์Šค๋งˆํŠธ์ธ์Šˆ์–ด๋Ÿฐ์Šค ์‚ฌ์ดํŠธ์—์„œ ๊ฒฌ์  ๋ฐ›๊ธฐ๋ฅผ์š”์ฒญํ•˜๋Š” ์‚ฌ์šฉ์ž๊ฐ€ 2๋‹ฌ ๋™์•ˆ 500์—ฌ ๋ช… ์ •๋„์ธ ๊ฒƒ์„ ๋ฏธ๋ฃจ์–ด ๋ดค์„ ๋•Œ, ์š”์ฒญ ์ฒ˜๋ฆฌ ์‹œ๊ฐ„์ด ์˜ค๋ž˜ ๊ฑธ๋ ค ์‚ฌ์šฉ์ž ์ดํƒˆ์ด ์ผ์–ด๋‚  ํ™•๋ฅ ์€ ์•„์ฃผ ๋‚ฎ๋‹ค.

2. ์Šค๋งˆํŠธ ์ธ์Šˆ์–ด๋Ÿฐ์Šค์˜ ์‚ฌ์šฉ์ž๊ฐ€ ๋Š˜์–ด๋‚  ๊ฒƒ์„ ์˜ˆ์ƒ

  • ์‚ฌ์šฉ์ž ์ˆ˜ ๋ณ€๋™ ์‹œ๋‚˜๋ฆฌ์˜ค๋ฅผ ํ†ตํ•ด ์ง€์†์ ์œผ๋กœ ๋งŽ์€ ์‚ฌ์šฉ์ž๊ฐ€ ์œ ์ž…๋  ๊ฒฝ์šฐ์—๋„ ์š”์ฒญ์ด ๋ฌธ์ œ ์—†์ด ์ž˜ ์ฒ˜๋ฆฌ๋˜๋Š” ๊ฒƒ์„ ํ™•์ธํ•˜์˜€๋‹ค.
  • ์‘๋‹ต ์‹œ๊ฐ„์ด 5์ดˆ๊ฐ€ ๋„˜์–ด๊ฐˆ ๊ฒฝ์šฐ, ์‚ฌ์šฉ์ž ์ดํƒˆ์ด ๋Š˜์–ด๋‚  ๊ฒƒ์ด๋ผ ์˜ˆ์ƒํ•ด, ์‘๋‹ต ์‹œ๊ฐ„์ด 5์ดˆ ์ด๋‚ด์ธ ์ตœ๋Œ€ ์š”์ฒญ ์ˆ˜ ํŒŒ์•… ์‹œ๋‚˜๋ฆฌ์˜ค๋ฅผ ํ†ตํ•ด ํ™•์ธํ•œ ๊ฒฐ๊ณผ, 1์ดˆ์— 263๊ฐœ์˜ ์š”์ฒญ์„ ๋ชจ๋‘ 5์ดˆ ์ด๋‚ด์— ์ฒ˜๋ฆฌํ•  ์ˆ˜ ์žˆ์Œ์„ ํŒŒ์•…ํ•˜์˜€๋‹ค.
  • ์„œ๋ฒ„ ๋ณต์›๋ ฅ ์ธก์ • ์‹œ๋‚˜๋ฆฌ์˜ค๋ฅผ ํ†ตํ•ด, ๋™์‹œ์ ‘์†์ž๊ฐ€ 3000๋ช…์ผ ๋•Œ ์„œ๋ฒ„์— ์ผ์‹œ์ ์œผ๋กœ ๊ณผ๋ถ€ํ•˜๊ฐ€ ์™”์œผ๋‚˜, ์ด๋‚ด 3์ดˆ๋งŒ์— ๋ฐ”๋กœ ๋ณต์›๋˜์–ด ๋‹ค์Œ ์š”์ฒญ์ด ์ž˜ ์ฒ˜๋ฆฌ๋˜๋Š” ๊ฒƒ์„ ํ™•์ธํ•˜์˜€๋‹ค.

About

๐Ÿถ ํ์‹œ์ฆ˜ 30๊ธฐ ๊ธฐ์—… ํ”„๋กœ์ ํŠธ F!TPET AํŒ€ Backend Repository

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published