spring-cloud / spring-cloud/spring-cloud-zookeeper

Application starts for a long time

Open
#306 0 comments 0 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

waiting-for-triage
Dominant language
Java
Stars
574
Forks
408
Avg merge
1d 12h
Merged PRs (30d)
4

Description

https://github.com/spring-cloud/spring-cloud-zookeeper/blob/b4e3c39298e0ca01ad9444e42b7586a760ad176a/spring-cloud-zookeeper-config/src/main/java/org/springframework/cloud/zookeeper/config/ZookeeperPropertySource.java#L80

If there are a large number of configurations in Zookeeper, it will take a lot of time to get all configs one by one when the application starts. I find nothing abount batch operation for read in curator. Eager for your advice ~

Contributor guide

Open the contributing guide

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

Research direction

Start at spring-cloud-zookeeper-config/src/main/java/org/springframework/cloud/zookeeper/config/ZookeeperPropertySource.java around line 80 and trace how configuration entries are read during application startup. Check Curator's available read operations and measure startup behavior with many Zookeeper configurations. Done should mean a documented, agreed approach that avoids the current one-by-one startup delay, with coverage or measurements showing the improvement.

Written by the indexing model from the issue text.

Assessment

Tech stack
java
Domain
backend, cloud
Issue type
Bug
Difficulty
4/5
Estimated time
3-5 days
Activity status
Stale
Clarity
Needs clarification
Newbie friendliness
30/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.