Skip to content
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

Why does RefreshScope refresh all beans instead of only refreshing the beans that are dependent on the configuration item? org.springframework.cloud.context.refresh.ContextRefresher#refresh #1262

Open
Jcateye opened this issue Sep 8, 2023 · 1 comment

Comments

@Jcateye
Copy link

Jcateye commented Sep 8, 2023

Is your feature request related to a problem? Please describe.
When I update a particular configuration in Nacos in a production environment with high concurrency, some servers will remain unresponsive for a long time.

Describe the solution you'd like
Update only the properties of the Bean corresponding to the configuration item.

Describe alternatives you've considered
Dispose of the currently associated bean, initialize it directly, and replace the original object reference.

Additional context
org.springframework.cloud.context.refresh.ContextRefresher#refresh
image

@shamrai-dev
Copy link

Is there any progress here?
@Jcateye have you solved this somehow?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

3 participants