-
Notifications
You must be signed in to change notification settings - Fork 40
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
Feedback for “Schema Language” #196
Comments
These are good questions, and we're actively working on improving docs and making these answers more discoverable. If you can remember and can share where you tried and failed to find answers, that might help us tailor the docs better?
The new schema is stored at a particular revision (which is returned to the client). Future requests will resolve to a revision either before or after the schema change, and either the old or new schema will be used to evaluate the request based on the revision used for the request (which is either server or user-controlled with consistency options in the API)
It's similar to traditional RDMSs (i.e. ones without built-in online schema change tooling, which also don't have version numbers) - it's your choice as a user whether to make a change that will break on-going application requests or if you want phase the changes to ensure nothing breaks in clients. We have a blog post that talks about these strategies here: https://authzed.com/blog/online-schema-migrations
This is a big topic because:
Some places to get started with this are:
|
Here is what i have done to try and find the answers.
There are fundamental architecture / design trade offs questions that I am trying to answer regarding how to use a system like SpiceDB in a variety of scenarios. These questions have the classic it depends on your situation answers. This is why I am trying to build a very deep understanding of how SpiceDB works under the covers, so I can do a proper analysis for the scenarios I am interested in. |
I think adding a section on Resources and Subjects giving them precise definitions with examples at the start of the doc can make it a lot easier grok and build a mental model from.
I have been trying to answer the question. How is the schema being used and what is the relationship between the schema and what gets put into the database, I wanted to know what goes into the postgres not what is shown the playground which is higher level. How is the engine executing a query for a permission check. I was not able to find any details I am looking for.
I think adding a section along the lines of "How the schema is used by SpiceDB" can be quite helpful. The section should answer the following questions.
Building a strong mental model of how SpiceDB works is important to building the trust to use it in an application and to fully understand the trade offs of using it.
The text was updated successfully, but these errors were encountered: