Throttle

mkhome·2022년 4월 22일
0

django

목록 보기
6/6

Throttle이란

  • Throttling is similar to permissions, in that it determines if a request should be authorized. Throttles indicate a temporary state, and are used to control the rate of requests that clients can make to an API.

  • settings에 위와 같이 설정해서 사용을 하면 된다.

load balancer

  • 최근 많은 사이트나 스타트업에서 자원 분산을 위해 로드밸런서를 사용하고 있다. 해당 기능을 사용하게 되면 사용자의 Remote_addr이 동일해지기 때문에 Throttle을 사용하기에 적절하지 않게 된다. 단순히 remote_addr만을 사용하면 제대로 기술을 쓸 수 없다.

0개의 댓글