Skip to content

Commit

Permalink
[update] data-cache, multiple-stage, prediction-circuit-break (mercarโ€ฆ
Browse files Browse the repository at this point in the history
โ€ฆi#11)

[update] data-cache, multiple-stage, prediction-circuit-break (mercari#11)
  • Loading branch information
zzsza authored Oct 9, 2020
1 parent dd74a3b commit ffdf09b
Show file tree
Hide file tree
Showing 9 changed files with 109 additions and 175 deletions.
35 changes: 0 additions & 35 deletions Serving-patterns/Asynchronous-pattern/design_kr.md

This file was deleted.

28 changes: 0 additions & 28 deletions Serving-patterns/Batch-pattern/design_kr.md

This file was deleted.

51 changes: 51 additions & 0 deletions Serving-patterns/Data-cache-pattern/design_ko.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,51 @@
# Data cache pattern

## Usecase
- ๋™์ผํ•˜๊ณ  ๋ฐ˜๋ณต๋œ ๋ฐ์ดํ„ฐ์— ๋Œ€ํ•œ ์˜ˆ์ธก ์š”์ฒญ์ด ์žˆ๋Š” ๊ฒฝ์šฐ.
- ์บ์‹œ ํ‚ค๋กœ ๋ฐ์ดํ„ฐ๋ฅผ ์‹๋ณ„ํ•  ์ˆ˜ ์žˆ๋Š” ๊ฒฝ์šฐ.
- ๋ฐ์ดํ„ฐ ๊ฒ€์ƒ‰ ๋ฐ ์ฒ˜๋ฆฌ ์†๋„๋ฅผ ๋†’์ด๊ณ  ์‹ถ์€ ๊ฒฝ์šฐ.


## Architecture
Data cache pattern์€ ์ž…๋ ฅ ๋ฐ์ดํ„ฐ๋ฅผ ์บ์‹œํ•ฉ๋‹ˆ๋‹ค. ์ž…๋ ฅ ๋ฐ์ดํ„ฐ๊ฐ€ ๋ฐ์ดํ„ฐ๋ฒ ์ด์Šค, ์ €์žฅ์†Œ ๋˜๋Š” ๋””์Šคํฌ์— ์ €์žฅ๋˜์–ด ์žˆ์œผ๋ฉด ๋ฐ์ดํ„ฐ ์ˆ˜์ง‘ ์˜ค๋ฒ„ํ—ค๋“œ๋ฅผ ์ค„์ผ ์ˆ˜ ์žˆ์Šต๋‹ˆ๋‹ค.

<br>

์บ์‹œํ•  ๋ฐ์ดํ„ฐ์˜ ์–‘์€ ๋น„์šฉ๊ณผ ์‚ฌ์ด์ฆˆ์˜ ๊ท ํ˜•์— ๋”ฐ๋ผ ๊ณ ๋ คํ•ด์•ผ ํ•  ์ˆ˜๋„ ์žˆ์Šต๋‹ˆ๋‹ค. ์บ์‹œ ๊ณต๊ฐ„์˜ ๋‹จ๊ฐ€๋Š” ์Šคํ† ๋ฆฌ์ง€ ๋˜๋Š” ๋ฐ์ดํ„ฐ๋ฒ ์ด์Šค๋ณด๋‹ค ํฌ๊ธฐ๊ฐ€ ์ž‘์„์ˆ˜๋ก ๋” ๋น„์‹ผ ๊ฒฝํ–ฅ์ด ์žˆ์œผ๋ฏ€๋กœ ์บ์‹œ ์‚ญ์ œ๋ฅผ ์œ„ํ•œ ์ •์ฑ…์„ ๊ณ„ํšํ•˜๋Š” ๊ฒƒ์„ ์ถ”์ฒœํ•ฉ๋‹ˆ๋‹ค.

<br>

์˜ˆ์ธก ๊ฒฐ๊ณผ๊ฐ€ ์‹œ๊ฐ„์— ๋”ฐ๋ผ ๋ณ€๊ฒฝ๋˜๋ฉด ์˜ค๋ž˜๋œ ์˜ˆ์ธก์œผ๋กœ ์‘๋‹ตํ•˜์ง€ ์•Š๋„๋ก ์ด์ „ ์บ์‹œ๋ฅผ ์ง€์›Œ์•ผ ํ•ฉ๋‹ˆ๋‹ค. ์„œ๋น„์Šค ๋ถ€ํ•˜๊ฐ€ ๋†’์•„์„œ ์บ์‹œ ํฌ๊ธฐ๊ฐ€ ๊ธ‰๊ฒฉํžˆ ์ฆ๊ฐ€ํ•˜๋Š” ๊ฒฝ์šฐ ์บ์‹œ ์‚ญ์ œ ์ •์ฑ…์„ ๊ตฌ์ฒด์ ์œผ๋กœ ๊ณ„ํšํ•˜๋Š” ๊ฒƒ์ด ์ค‘์š”ํ•ฉ๋‹ˆ๋‹ค. ๋Œ€๋ถ€๋ถ„ ์บ์‹œ๋Š” ์‹œ๊ฐ„์ด ๊ฒฝ๊ณผํ•˜๊ฑฐ๋‚˜ ํ‚ค ์š”์ฒญ ๋นˆ๋„์— ๋”ฐ๋ผ ์ง€์›Œ์ง‘๋‹ˆ๋‹ค.

<br>

์ด ํŒจํ„ด์— ๋Œ€ํ•œ ๋‘ ๊ฐœ์˜ ์•„ํ‚คํ…์ฒ˜๊ฐ€ ์žˆ์Šต๋‹ˆ๋‹ค.

1. ์ž…๋ ฅ ๋ฐ์ดํ„ฐ๋ฅผ ์บ์‹œํ•ฉ๋‹ˆ๋‹ค. ์ด ๊ฒฝ์šฐ ์„œ๋น„์Šค๋Š” ๋ฐ์ดํ„ฐ ์›จ์–ดํ•˜์šฐ์Šค์— ์ž…๋ ฅ ๋ฐ์ดํ„ฐ๋ฅผ ์š”์ฒญํ•˜๊ณ  ๋ณ‘๋ ฌ๋กœ ์บ์‹œํ•˜๋ฉฐ ์บ์‹œ๊ฐ€ ์กด์žฌํ•˜๋ฉด ์˜ˆ์ธก ์š”์ฒญ์„ ์ง„ํ–‰ํ•ฉ๋‹ˆ๋‹ค. ์บ์‹œ๊ฐ€ ์กด์žฌํ•˜์ง€ ์•Š์œผ๋ฉด ๋ฐ์ดํ„ฐ๋ฅผ ์บ์‹œ์— ์ถ”๊ฐ€ํ•˜๊ณ  ์˜ˆ์ธก์„ ์š”์ฒญํ•ฉ๋‹ˆ๋‹ค. ์ „์ฒ˜๋ฆฌ์˜ ๋ถ€ํ•˜๋ฅผ ์ค„์ด๊ธฐ ์œ„ํ•ด ์ „์ฒ˜๋ฆฌ ํ›„ ๋ฐ์ดํ„ฐ๋ฅผ ์บ์‹œํ•  ์ˆ˜ ์žˆ์Šต๋‹ˆ๋‹ค.

<br>

2. ์š”์ฒญํ•˜๊ธฐ ์ „์— ์ „์ฒ˜๋ฆฌ ๋˜๋Š” ์บ์‹œํ•ฉ๋‹ˆ๋‹ค. ์ด๋Ÿฐ ๊ฒฝ์šฐ ์˜ˆ์ธก ์š”์ฒญ ์ „์— ์„œ๋น„์Šค์—์„œ ์ฒซ ๋ฐ์ดํ„ฐ ์ƒ์„ฑ๊ณผ ํ•จ๊ป˜ ๋ฐ์ดํ„ฐ๋ฅผ ์บ์‹œํ•ฉ๋‹ˆ๋‹ค. ๋ฐ์ดํ„ฐ์— ๋Œ€ํ•œ ์˜ˆ์ธก ์š”์ฒญ์„ ๋ฐ›์œผ๋ฉด ์บ์‹œ์—์„œ ์˜ˆ์ธก์„ ๊ฒ€์ƒ‰ํ•ฉ๋‹ˆ๋‹ค. ๋Œ€๊ธฐ ์‹œ๊ฐ„์„ ๊ฐœ์„ ํ•˜๊ธฐ ์œ„ํ•ด ์บ์‹œ ์†๋„๋ฅผ ๋†’์ด๋ ค๋Š” ๊ฒฝ์šฐ ์ด ๋ฐฉ๋ฒ•์ด ์„ ํƒํ•˜๋Š” ๊ฒƒ์ด ์ข‹์Šต๋‹ˆ๋‹ค.


## Diagram
### Input data cache
![diagram1](diagram1.png)

### Prepare data cache
![diagram2](diagram2.png)


## Pros
- ์š”์ฒญ์„ ์˜ˆ์ธก ์„œ๋ฒ„๋กœ ์˜คํ”„๋กœ๋“œํ•˜๊ณ  ์„ฑ๋Šฅ์„ ํ–ฅ์ƒ์‹œํ‚ต๋‹ˆ๋‹ค.
- ๋น ๋ฅธ ์‘๋‹ต์ด ๊ฐ€๋Šฅํ•ฉ๋‹ˆ๋‹ค.

## Cons
- ์บ์‹œ ์„œ๋ฒ„ ๋น„์šฉ์ด ๋ถ€๊ณผ๋ฉ๋‹ˆ๋‹ค.
- ์บ์‹œ ์‚ญ์ œ ์ •์ฑ…์ด ํ•„์š”ํ•ฉ๋‹ˆ๋‹ค.

## Needs consideration
- ์ž…๋ ฅ ๋ฐ์ดํ„ฐ๋Š” ํ‚ค๋กœ ์‹๋ณ„ํ•  ์ˆ˜ ์žˆ์–ด์•ผ ํ•ฉ๋‹ˆ๋‹ค.
- ์†๋„, ๋น„์šฉ, ๋ณผ๋ฅจ ๊ฐ„์˜ ๊ท ํ˜•์„ ๊ณ ๋ คํ•ด์•ผ ํ•ฉ๋‹ˆ๋‹ค.
- ์บ์‹œ ์‚ญ์ œ ์ •์ฑ…์ด ํ•„์š”ํ•ฉ๋‹ˆ๋‹ค.
- ๋ฐ์ดํ„ฐ ์บ์‹œ ์ •์ฑ…์ด ํ•„์š”ํ•ฉ๋‹ˆ๋‹ค.
31 changes: 0 additions & 31 deletions Serving-patterns/Microservice-vertical-pattern/design_kr.md

This file was deleted.

27 changes: 27 additions & 0 deletions Serving-patterns/Multiple-stage-prediction-pattern/design_ko.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,27 @@
# Multiple stage prediction pattern

## Usecase
- ๋Œ€ํ™”์‹ ์• ํ”Œ๋ฆฌ์ผ€์ด์…˜์—์„œ ๋จธ์‹ ๋Ÿฌ๋‹ ์˜ˆ์ธก์„ ์‚ฌ์šฉํ•  ๊ฒฝ์šฐ.
- ํ•˜๋‚˜์˜ ๋ชฉ์ ์— ๊ฐ€๋ฒผ์šด ๋ชจ๋ธ๊ณผ ๋ฌด๊ฑฐ์šด ๋ชจ๋ธ์ด ์žˆ๋Š” ๊ฒฝ์šฐ.

## Architecture
Multiple stage prediction pattern์€ ์›Œํฌํ”Œ๋กœ์šฐ๊ฐ€ ์—ฌ๋Ÿฌ ๋‹จ๊ณ„๋กœ ํด๋ผ์ด์–ธํŠธ์— ์‘๋‹ตํ•˜๋Š” ๊ฒฝ์šฐ ์‚ฌ์šฉํ•  ์ˆ˜ ์žˆ์Šต๋‹ˆ๋‹ค. ์ผ๋ฐ˜์ ์œผ๋กœ ๋จธ์‹ ๋Ÿฌ๋‹ ๋ชจ๋ธ์€ ํ…Œ์ด๋ธ” ๋ฐ ์ˆซ์ž ๋ฐ์ดํ„ฐ๋ฅผ ์‚ฌ์šฉํ•  ๊ฒฝ์šฐ ๊ฐ€๋ฒผ์šด ๊ฒฝํ–ฅ์ด ์žˆ๋Š” ๋ฐ˜๋ฉด, ์ด๋ฏธ์ง€๋‚˜ ํ…์ŠคํŠธ ๊ฐ™์€ ๋น„์ •ํ˜• ๋ฐ์ดํ„ฐ๋Š” ๋ฌด๊ฑฐ์šด ๊ฒฝํ–ฅ์ด ์žˆ์Šต๋‹ˆ๋‹ค. ์ผ๋ถ€ ์„œ๋น„์Šค๋Š” ์‚ฌ์šฉ์ž ๊ฒฝํ—˜์„ ๊ฐœ์„ ํ•˜๊ธฐ ์œ„ํ•ด ๋” ๋‚˜์€ ์˜ˆ์ธก์„ ์ถ”๊ฐ€ํ•ด ๋น ๋ฅธ ์‘๋‹ต์„ ์š”๊ตฌํ•ฉ๋‹ˆ๋‹ค. ์›น ์• ํ”Œ๋ฆฌ์ผ€์ด์…˜์€ ์†๋„์™€ ์ •ํ™•๋„์˜ ๊ท ํ˜•์„ ์œ ์ง€ํ•˜๋Š” ๊ฒƒ์ด ์ค‘์š”ํ•˜๋ฉฐ, ๋Œ€ํ™”ํ˜• ์• ํ”Œ๋ฆฌ์ผ€์ด์…˜์€ ๋จผ์ € ๋น ๋ฅธ ์˜ˆ์ธก์„ ๋ฐ˜ํ™˜ํ•œ ํ›„ ๋‹ค์Œ ํ™”๋ฉด ๋˜๋Š” ์•„๋ž˜์ชฝ์— ๋” ์ข‹์€ ์˜ˆ์ธก์„ ์ถ”๊ฐ€ํ•˜๋Š” ๋ฐฉ๋ฒ•์„ ๊ณ ๋ คํ•  ์ˆ˜ ์žˆ์Šต๋‹ˆ๋‹ค. ์ด ํŒจํ„ด์€ ๋Œ€ํ™”ํ˜• ์• ํ”Œ๋ฆฌ์ผ€์ด์…˜์— ํšจ๊ณผ์ ์ž…๋‹ˆ๋‹ค.

<br>

์ด ํŒจํ„ด์€ ๋‘ ๊ฐœ์˜ ์˜ˆ์ธก ์„œ๋ฒ„๊ฐ€ ์กด์žฌํ•ฉ๋‹ˆ๋‹ค. ํ•˜๋‚˜๋Š” ๋น ๋ฅธ ๋™๊ธฐ์‹์œผ๋กœ ์‘๋‹ตํ•˜๊ณ  ๋‹ค๋ฅธ ํ•˜๋‚˜๋Š” ๋‚˜์ค‘์— ๋น„๋™๊ธฐ์‹์œผ๋กœ ์˜ˆ์ธกํ•˜๋Š” ์„œ๋ฒ„์ž…๋‹ˆ๋‹ค. ์ฒซ ์„œ๋ฒ„๋Š” REST ๋˜๋Š” GRPC ์ธํ„ฐํŽ˜์ด์Šค๋ฅผ ์‚ฌ์šฉํ•ด ๋ฌด๋‚œํ•œ ์ •ํ™•๋„๋ฅผ ๊ฐ€์ง„ ์˜ˆ์ธก์„ ๋น ๋ฅด๊ฒŒ ์‘๋‹ตํ•˜๋Š”๋ฐ ์‚ฌ์šฉ๋ฉ๋‹ˆ๋‹ค. ํ›„์ž๋Š” ๋Š๋ฆฌ๋ฏ€๋กœ ๋น„๋™๊ธฐ ๋Œ€๊ธฐ์—ด ๋˜๋Š” ๋ฉ”์„ธ์ง€ ์„œ๋น„์Šค๊ฐ€ ์œ ์šฉํ•ฉ๋‹ˆ๋‹ค. ํ”„๋Ÿฌ๋•์…˜ ๋ชจ๋ธ์€ ์—ฌ๋Ÿฌ ํ˜•ํƒœ๋ฅผ ์‚ฌ์šฉํ•  ๊ฒฝ์šฐ ์˜ˆ๋ฅผ ๋“ค์–ด ๋™๊ธฐ์‹ ์˜ˆ์ธก์„ ์œ„ํ•œ ์ˆ˜์น˜ ๋ฐ ๋ฒ”์ฃผํ˜• ๋ฐ์ดํ„ฐ, ๋น„๋™๊ธฐ์‹ ์˜ˆ์ธก์„ ์œ„ํ•œ ์˜์ƒ๊ณผ ํ…์ŠคํŠธ ๊ฐ™์ด ์‚ฌ์šฉ๋  ๋ฐ์ดํ„ฐ๋กœ ๋ถ„๋ฆฌ๋  ์ˆ˜ ์žˆ์ง€๋งŒ, ์˜ˆ์ธก ํ’ˆ์งˆ๊ณผ ์‘๋‹ต ์†๋„์˜ ์š”๊ตฌ ์‚ฌํ•ญ์— ๋”ฐ๋ผ ๋‹ฌ๋ผ์ง‘๋‹ˆ๋‹ค.


## Diagram
![diagram](diagram.png)


## Pros
- ๋น ๋ฅด๊ฒŒ ๋Œ€์‘ํ•˜๊ณ  ๊ทธ ํ›„ ๋” ์ž˜ ์˜ˆ์ธกํ•ฉ๋‹ˆ๋‹ค.

## Cons
- ์—ฌ๋Ÿฌ ์„œ๋น„์Šค์™€ ์ธํ„ฐํŽ˜์ด์Šค๊ฐ€ ํ•„์š”ํ•ฉ๋‹ˆ๋‹ค.

## Needs consideration
- ์†๋„, ์ •ํ™•๋„, ์œ ์ € ๊ฒฝํ—˜์˜ ๊ท ํ˜•์„ ๋งž์ถฐ์•ผ ํ•ฉ๋‹ˆ๋‹ค.
- ๋ฌด๊ฑฐ์šด ์˜ˆ์ธก์„ ์ œ๊ณตํ•˜๋Š” ๋ฐฉ๋ฒ•์— ๋Œ€ํ•ด ๊ณ ๋ฏผํ•ด์•ผ ํ•ฉ๋‹ˆ๋‹ค.
31 changes: 31 additions & 0 deletions Serving-patterns/Prediction-circuit-break-pattern/design_ko.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,31 @@
# Prediction circuit break pattern

## Usecase
- ์˜ˆ์ธก ์š”์ฒญ๋Ÿ‰ ๋˜๋Š” ๋นˆ๋„๊ฐ€ ๊ฐ‘์ž๊ธฐ ์ฆ๊ฐ€ํ•  ๊ฐ€๋Šฅ์„ฑ์ด ์žˆ๋Š” ๊ฒฝ์šฐ.
- ๊ฐ‘์ž‘์Šค๋Ÿฌ์šด ์š”์ฒญ์— ๋น ๋ฅด๊ฒŒ ์‘๋‹ตํ• ๋งŒํผ ๋น ๋ฅด๊ฒŒ ์Šค์ผ€์ผ ์•„์›ƒํ•  ์ˆ˜ ์—†๋Š” ๊ฒฝ์šฐ.
- 100% ์‘๋‹ตํ•  ํ•„์š”๊ฐ€ ์—†๋Š” ๊ฒฝ์šฐ.

## Architecture
์บ ํŽ˜์ธ์ด๋‚˜ ์™ธ๋ถ€ ์ด๋ฒคํŠธ ๋•Œ๋ฌธ์— ์›น ์„œ๋น„์Šค๋‚˜ ๊ด€๋ จ ์„œ๋น„์Šค์— ์ ‘์†์ด ์ฆ๊ฐ€ํ•˜๋Š” ๊ฒฝ์šฐ๊ฐ€ ์žˆ์Šต๋‹ˆ๋‹ค. ๋งŒ์•ฝ ํด๋ผ์šฐ๋“œ ์„œ๋น„์Šค ๋˜๋Š” ์ฟ ๋ฒ„๋„คํ‹ฐ์Šค๋ฅผ ์‚ฌ์šฉํ•œ๋‹ค๋ฉด ์š”์ฒญ๋Ÿ‰๋งŒํผ ์Šค์ผ€์ผ ์•„์›ƒ์„ ํ•  ์ˆ˜ ์žˆ์ง€๋งŒ, ์Šค์ผ€์ผ ์•„์›ƒ ์†๋„๋ณด๋‹ค ์š”์ฒญ๋Ÿ‰์ด ์ฆ๊ฐ€ํ•˜๋Š” ์†๋„๊ฐ€ ๋” ๋น ๋ฅธ ๊ฒฝ์šฐ๊ฐ€ ๋งŽ์Šต๋‹ˆ๋‹ค. ํŠนํžˆ ์„œ๋ฒ„ ๋˜๋Š” ์ปจํ…Œ์ด๋„ˆ ์ด๋ฏธ์ง€์— ๋ชจ๋ธ ํŒŒ์ผ์ด ํฌํ•จ๋œ ๊ฒฝ์šฐ, ๋ชจ๋ธ์„ ์‹คํ–‰ํ•˜๊ฑฐ๋‚˜ ๋‹ค์šด๋กœ๋“œ ๋ฐ›๋Š”๋ฐ ์‹œ๊ฐ„์ด ์˜ค๋ž˜ ๊ฑธ๋ฆด ์ˆ˜ ์žˆ์Šต๋‹ˆ๋‹ค.

<br>
Prediction circuit breaker pattern์€ ์Šค์ผ€์ผ ์•„์›ƒ์ด ์„ฑ๊ณตํ•  ๋•Œ๊นŒ์ง€ `complete outage`๋ฅผ ๋ฐฉ์ง€ํ•˜๋Š” ์•„ํ‚คํ…์ฒ˜์ž…๋‹ˆ๋‹ค. ์˜ˆ์ธก ์„œ๋ฒ„๊ฐ€ ์˜ˆ์ธกํ•  ์ˆ˜ ์žˆ์„ ๋งŒํผ ์˜ˆ์ธกํ•˜๊ณ , ํŠน์ • ํ•œ๊ณ„ ์ด์ƒ์œผ๋กœ ์š”์ฒญ์ด ์˜ค๋ฉด ์˜ˆ์ธก์„ ์ทจ์†Œํ•ฉ๋‹ˆ๋‹ค. ์ „์ฒด ์ค‘๋‹จ์ด ์ตœ์•…์˜ ๊ฒฝ์šฐ๋ผ ์ƒ๊ฐํ•˜๋ฉด ๋ถ€๋ถ„ ์ค‘๋‹จ์ด ํ•ฉ๋ฆฌ์ ์ด๋ผ๊ณ  ์ƒ๊ฐํ•  ์ˆ˜ ์žˆ์Šต๋‹ˆ๋‹ค. ์š”์ฒญ์ด ๋งŽ์œผ๋ฉด ์˜ˆ์ธก ์„œ๋ฒ„๊ฐ€ ๋‹ค์‹œ ์‹œ์ž‘๋˜์–ด ์˜ˆ์ธก ๋ฆฌ์†Œ์Šค๊ฐ€ ์ค„์–ด๋“œ๋Š” ๊ฒฝ์šฐ๊ฐ€ ์ž์ฃผ ๋ฐœ์ƒํ•ฉ๋‹ˆ๋‹ค. ๋ชจ๋“  ์˜ˆ์ธก์— ์‘๋‹ตํ•˜๊ธฐ ์œ„ํ•ด ์Šค์ผ€์ผ ์•„์›ƒ์ด ์™„๋ฃŒ๋  ๋•Œ๊นŒ์ง€ ํ˜„์žฌ ์˜ˆ์ธก ์„œ๋น„์Šค๋ฅผ ์•ˆ์ •ํ™”ํ•ด์•ผ ํ•˜๊ณ , ์•ˆ์ •ํ™”๋ฅผ ์œ„ํ•ด ํŠน์ • ์ˆ˜์˜ ์š”์ฒญ์„ ์ทจ์†Œํ•˜๋Š” ๊ฒƒ์ด ํ•ฉ๋ฆฌ์ ์ž…๋‹ˆ๋‹ค.

<br>

์ด ํŒจํ„ด์˜ ์ค‘์š”ํ•œ ์ ์€ ์ทจ์†Œ๋œ ์š”์ฒญ์— ๋Œ€ํ•œ ๋Œ€์•ˆ์„ ์„ธ์šฐ๋Š” ๊ฒƒ์ž…๋‹ˆ๋‹ค. ์‚ฌ์šฉ์ž ๊ฒฝํ—˜ ์ €ํ•˜๋ฅผ ์ตœ์†Œํ™”ํ•˜๊ณ  ํด๋ผ์ด์–ธํŠธ ํ™œ๋™์„ ์ค‘๋‹จํ•˜์ง€ ์•Š์•„์•ผ ํ•ฉ๋‹ˆ๋‹ค. ์ทจ์†Œ๋ฅผ ์œ„ํ•œ ์›Œํฌํ”Œ๋กœ์šฐ๋ฅผ ๊ณ ๋ คํ•˜๋Š” ๊ฒƒ์ด ์ข‹์Šต๋‹ˆ๋‹ค.


## Diagram
![diagram](diagram.png)

## Pros
- ์„œ๋น„์Šค์˜ ์™„์ „ํ•œ ์ค‘๋‹จ์„ ํ”ผํ•ฉ๋‹ˆ๋‹ค.
- ํ˜„์žฌ ๋ฆฌ์†Œ์Šค ๊ฐ€์šฉ์„ฑ์„ ๋‚ฎ์ถ”์ง€ ์•Š๊ณ  ์˜ˆ์ธก ์„œ๋ฒ„๋ฅผ ํ™•์žฅํ•  ์ˆ˜ ์žˆ์Šต๋‹ˆ๋‹ค.

## Cons
- ์ทจ์†Œ๋œ ์š”์ฒญ์— ๋Œ€ํ•œ ๋Œ€์•ˆ์ด ํ•„์š”ํ•ฉ๋‹ˆ๋‹ค.

## Needs consideration
- ์ทจ์†Œ๋œ ์š”์ฒญ์— ๋Œ€ํ•œ ๋Œ€์•ˆ ๋ฐ ์›Œํฌํ”Œ๋กœ์šฐ.
- circuit breaking limit์€ ์ผ๋ฐ˜์  ์„œ๋น„์Šค ์š”์ฒญ ์ฆ๊ฐ€์— ๋Œ€์‘ํ•  ์ˆ˜ ์žˆ์„๋งŒํผ ๋†’์•„์•ผ ํ•ฉ๋‹ˆ๋‹ค.
32 changes: 0 additions & 32 deletions Serving-patterns/Prep-pred-pattern/design_kr.md

This file was deleted.

23 changes: 0 additions & 23 deletions Serving-patterns/Synchronous-pattern/design_kr.md

This file was deleted.

26 changes: 0 additions & 26 deletions Serving-patterns/Web-single-pattern/design_kr.md

This file was deleted.

0 comments on commit ffdf09b

Please sign in to comment.