spring-cloud-config icon indicating copy to clipboard operation
spring-cloud-config copied to clipboard

ConfigServerConfigDataLoader provided property sources can degrade performance

Open philwebb opened this issue 4 years ago • 1 comments

This line or ConfigServerConfigDataLoader adds a new OriginTrackedMapPropertySource with items loaded from the config server.

If there are a large number of properties then binding operations in Spring Boot can become very slow. This is due to SpringIterableConfigurationPropertySource constantly remapping entries.

Performance improves significantly if the alternate OriginTrackedMapPropertySource constructor is used and the immutable argument is set to true.

philwebb avatar Jan 15 '22 04:01 philwebb

Hi. Let me know if this should go into a different issue, but we've also faced an added issue, I think specific to Redis and possibly other sources. Please take a look at my comment: https://github.com/spring-projects/spring-boot/issues/28723#issuecomment-1014502593

pintomau avatar Jan 17 '22 16:01 pintomau