Skip to content

ConfigServerConfigDataLoader provided property sources can degrade performance #2032

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Closed
philwebb opened this issue Jan 15, 2022 · 1 comment
Milestone

Comments

@philwebb
Copy link

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.

@pintomau
Copy link

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: spring-projects/spring-boot#28723 (comment)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
No open projects
Status: Done
Status: Done
Development

No branches or pull requests

3 participants