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

Reserve sub-namespace for index databases #500

Open
rartino opened this issue Mar 19, 2024 · 1 comment
Open

Reserve sub-namespace for index databases #500

rartino opened this issue Mar 19, 2024 · 1 comment

Comments

@rartino
Copy link
Contributor

rartino commented Mar 19, 2024

We've discussed in the past how it can be a bit inconvenient how to handle the URLs/subdomains one need for the real database and the index meta-db to participate in providers.json. Typically we do something like: https://optimade-index.example.org.

An alternative, which I don't think anyone uses, is to use a place under extensions, i.e., something like this:

https://optimade.example.org/extensions/indexdb

However, it looks a bit confusing, since this is a whole other OPTIMADE endpoint and not an "extension".

So, I want to suggest: would it make sense to completely reserve another URL under the base URL specifically for this use? I.e., something like:

<base url>/indexdb

Which is reserved to allow providers to OPTIONALLY use to host an index database base url. (But, the point being, you are allowed to provide it somewhere else - in some setups it is easier to provide it under its own subdomain; client MUST NOT assume there is an index meta-db there).

@ml-evs
Copy link
Member

ml-evs commented Mar 19, 2024

I really like this idea! Would greatly simplify the case of providing a single API, and optimade-python-tools can serve it from one app and include it when configured (which would avoid the need for some of the netlify providers list providers)

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

No branches or pull requests

2 participants