You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
DB의 부하가 많아지면 일반적으로 Redis, Memcached로 캐쉬를 먼저 하려고 하는데,
그보다 먼저 HTTP Cache로 부하를 먼저 줄여보는게 좋다. DB부하를 줄일 수 있을 뿐 아니라
Response 데이터를 다시 받아오지 않아도 되기 때문에 API속도도 덤으로 개선된다.
Character 클래스
HTTP Cache(조건부 요청)
Cache-Control + Expires
Last-Modified(검증헤더) + If-Modified-Since(조건부 요청)
ETag(검증헤더) + If-None-Match(조건부 요청)
참고
간결하고 가독성이 좋은 코드
참고
간단 회고
The text was updated successfully, but these errors were encountered: