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

Metadata for values in a keyvalue instance #294

Open
stuarteberg opened this issue Oct 29, 2018 · 0 comments
Open

Metadata for values in a keyvalue instance #294

stuarteberg opened this issue Oct 29, 2018 · 0 comments

Comments

@stuarteberg
Copy link
Member

For certain use-cases, we will need some way of storing metadata along with values that we store in keyvalue instances.

(As a stop-gap solution in the past, we have occasionally stored a separate '_info' key alongside every value that needs metadata, but that's non-optimal for multiple reasons.)

Ideally, the metadata for each value would be:

  1. Optional.
  2. Easily posted simultaneously with the value.
  3. Stored contiguously with the value within the database.
  4. Not returned by default for an ordinary .../key/... call.

If we choose to implement this feature using protobuf, then a protobuf-based read/write API could be exposed for powerusers. But either way, a "simpler" API based on pure HTTP will be needed for naive clients who won't want to get their hands dirty with protobuf. Possible "simple" implementations could include:

  • Provide separate endpoints for reading/writing metadata and binary value
  • Allow metadata to be read/written via the http headers (e.g. base64-encoded)
  • Allow reading/writing metadata and binary value as a tarball containing a meta.txt file
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

1 participant