ResourceUrlEncodingFilter cache misses are expensive #34014
Labels
in: web
Issues in web modules (web, webmvc, webflux, websocket)
status: waiting-for-triage
An issue we've not yet triaged or decided on
A PetClinic user noticed this (spring-projects/spring-petclinic#1732). For me it's a 2x throughput degradation on the home page of PetClinic, for the user that reported the issue it was 4x. The problem seems to be that
ResourceUrlEncodingFilter
has aCachingResourceResolver
in it that works great for actual classpath resources. Conversely, links that are not static resources are cache misses, and they have to be checked every time in case they are, after all, on the classpath (e.g. links to other pages in the app).The text was updated successfully, but these errors were encountered: