spring-attic / spring-cloud-etcd

Apache License 2.0
144 stars 60 forks source link

Determine registry schema #37

Open spencergibb opened 7 years ago

spencergibb commented 7 years ago

Currently <hostname>:<port> is all that is stored in etcd. It could probably a little bit richer, possibly a json document.

spencergibb commented 7 years ago

see #20

marcingasior commented 7 years ago

@spencergibb Hi Spencer,

Can you elaborate a bit more about your ideas on this?

Are you looking for something like?

{
  "key":"sample key",
  "value": "some value",
  "attributes": {
      //whatever you like to put, with some size limits like eg.8096 bytes
  }
}

Or something more concrete?

spencergibb commented 7 years ago

What data should be there, not just the format. Right now we have host/port. Eureka has a lot. Here's consul and zookeeper