spring-cloud / spring-cloud/spring-cloud-commons

Allow updating a service registration metadata

Open
#204 19 comments 0 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

closable enhancement
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

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 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

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.