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

Add metadata service to Jupyter Server #71

Open
lresende opened this issue Nov 18, 2024 · 1 comment
Open

Add metadata service to Jupyter Server #71

lresende opened this issue Nov 18, 2024 · 1 comment
Labels
enhancement New feature or request

Comments

@lresende
Copy link
Member

lresende commented Nov 18, 2024

Proposal

The Metadata Service provides a generic and flexible schema-driven data store for metadata that can be easily integrated with other backend and/or frontend components.

Metadata Service overview

The core design of the metadata service is primarily driven by schema. That is, all metadata instances must adhere to a schema. Metadata schemas are organized logically and physically into schema spaces, where a given schema space contains a set of schemas, and each instance of a schema space’s schemas is co-located relative to the configured storage mechanism.

Externally, both in its persisted and serialized forms, a metadata instance is represented as a JSON structure. Within the metadata service, however, this JSON structure is represented as a Metadata class instance. The Metadata class can be extended via subclassing to enable custom behaviors that are triggered following load operations and/or before and after create, update, and delete operations on a per schema level. That is, it is the respective schema that identifies the name of the class to use as the internal representation.

As previously mentioned, the metadata service has a pluggable storage mechanism. By default, metadata instances are stored within the file system. However, alternative storage mechanisms can be configured for, say, NoSQL DB or traditional, table-oriented, databases.

Schemaspaces and their schemas can be dynamically introduced via entrypoints. When the system starts, it will identify applicable entrypoints and load their corresponding objects to seed the list of configured schemaspaces and schemas.

Design proposal

We are proposing a similar design as the one used by terminals

  • The component will be implemented as a separate repository
  • The component will be integrated and enabled by default to jupyter server

Additional references

More details about the existing Metadata service implementation

@lresende lresende added the enhancement New feature or request label Nov 18, 2024
@lresende
Copy link
Member Author

cc @kevin-bates for awareness.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

No branches or pull requests

1 participant