aws-cloud-clubs / 2023-system-design-interview-1st

0 stars 3 forks source link

4장 처리율 장치 설계 docs #19

Open Eeap opened 1 year ago

Eeap commented 1 year ago

🚀 Resources to Share

책에서 언급된 내용이긴 하지만 한번 씩 읽어봐도 괜찮을 것 같아요! https://developers.cloudflare.com/waf/rate-limiting-rules/best-practices/

rate limiter 언어 별 라이브러리.. tech는 사실 책에 나온 내용인 것 같네요 https://medium.com/@alameerashraf/rate-limiters-in-a-nutshell-strategies-use-cases-and-implementation-part-2-f96d3bc24b28

redis sorted set https://redis.io/docs/data-types/sorted-sets/

aws WAF를 이용한 request rate limiting - 제한 규칙을 정의해서 사용하는 것 같아요 https://docs.aws.amazon.com/waf/latest/developerguide/waf-rule-statement-type-rate-based-request-limiting.html

좀 오래된 글이긴 한데 라인에서는 2020년도에 customer 인스턴스에 rate limiting을 인메모리 형태로 분산처리를 했더라구요.. 이유는 redis가 중앙 집중형으로 관리되면 이것 또한 병목 지점이 될수도 있기 때문에 분리했다고 하군요.. https://engineering.linecorp.com/ko/blog/high-throughput-distributed-rate-limiter

📎 Additional context

Eeap commented 1 year ago

기업마다 처리율 장치를 middleware에 어떤 방식으로 두고 쓰는지 찾고 싶은데 찾으신분은.. 알려주세요 🥹

bik1111 commented 1 year ago

https://cointelegraph.com/news/what-is-twitter-s-rate-limit https://juneyr.dev/rate-limit-algorithm 미들웨어단 까지인지는 모르겠지만 트위터에서 실제 API 요청 제한을 둔 사례가 있어 공유드립니다 ~