Skip to content

Latest commit

Β 

History

History
23 lines (18 loc) Β· 1.1 KB

throttling.md

File metadata and controls

23 lines (18 loc) Β· 1.1 KB

Throttling

API Throttling은 μ„œλΉ„μŠ€λ₯Ό λ³΄ν˜Έν•˜κΈ° μœ„ν•œ μˆ˜λ‹¨μ΄λ‹€. λ¬΄λΆ„λ³„ν•œ λ¦¬ν€˜μŠ€νŠΈμ˜ 곡격으둜 λΆ€ν„° μ„œλΉ„μŠ€λ₯Ό 지킬 수 μžˆλ‹€. API Throttling은 Request 처리 μ „ μΌμ–΄λ‚˜μ•Ό ν•œλ‹€. 일반적으둜 ν΄λΌμš°λ“œ μ„œλΉ„μŠ€μ—μ„œλŠ” μ“°λ‘œν‹€λ§ κΈ°λŠ₯을 μ œκ³΅ν•œλ‹€.

κ΅¬ν˜„ 방식

μœ μ €μ˜ μš”μ²­μˆ˜κ°€ μ΄ˆκ³Όν•˜λ©΄ 429, Too many requests λ°˜ν™˜

  1. Hard Throttling
  • limit을 μ—„κ²©ν•˜κ²Œ 관리, 1κ°œλΌλ„ λ„˜μœΌλ©΄ μ•ˆλ¨.
  1. Soft Throttling
  • νŠΉμ • percentage κΉŒμ§€λŠ” throttling limit을 λ„˜κΈ°λŠ” 것 ν—ˆμš©. rate limit이 λΆ„ λ‹Ή 100회일 λ•Œ, 10% μž‘λŠ” κ²½μš°μ—” 110회 κΉŒμ§€ κ°€λŠ₯
  1. Elastic or Dynamic Throttling
  • μ„œλ²„ μžμ›μ— μ—¬μœ κ°€ μžˆμ„ κ²½μš°μ—” throttle limit λ„˜κ²¨λ„ μš”μ²­ ν—ˆμš©

// TODO : μ•Œκ³ λ¦¬μ¦˜ 정리

좜처