spring-cloud / spring-cloud/spring-cloud-commons
Allow updating a service registration metadata
Nobody has claimed this yet.
- Dominant language
- Java
- Stars
- 751
- Forks
- 744
- Avg merge
- 1d 14h
- Merged PRs (30d)
- 9
Description
Would it be possible to have some form of put() or set() function for the Map<String,String> metadata in the ServiceInstance?
I'd like to be able to not rely on a specific Spring Cloud implementation for adjusting the metadata (like through Eureka's properties, or the tags in Consul), but just use the api in spring-cloud-commons to update a ServiceIntance it's metadata.
This could for example give the possibility for other frameworks to set framework-specific knowledge in the ServiceInstance.metadata field and not having to know anything of specific implementation. Thus, only needing the spring-cloud-commons dependency.
Contributor guide
First steps
- Read the whole issue, then the project's contributing guide.
- Comment on the issue to say you are picking it up — it saves two people doing the same work.
- Fork the repository and make your change on a branch.
- Open a pull request that references the issue number.
Research direction
Start by reviewing the ServiceInstance API and its metadata contract in spring-cloud-commons, then inspect how current implementations expose or consume that metadata. The work is done when the project has an agreed framework-independent update capability, with tests documenting the resulting behavior.
Written by the indexing model from the issue text.
Assessment
- Tech stack
- java, spring
- Domain
- api, backend
- Issue type
- Feature
- Difficulty
- 5/5
- Estimated time
- Over a week
- Activity status
- Stale
- Clarity
- Mostly clear
- Newbie friendliness
- 25/100