-
Notifications
You must be signed in to change notification settings - Fork 44
docs(spicedb): Add best practises #352
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
Conversation
|
The latest updates on your projects. Learn more about Vercel for Git ↗︎
|
|
CLA Assistant Lite bot All contributors have signed the CLA ✍️ ✅ |
32d47cf to
7579839
Compare
Signed-off-by: adinhodovic <hodovicadin@gmail.com>
|
I have read the CLA Document and I hereby sign the CLA |
miparnisari
left a comment
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Loved all these tips :)
| Some examples: | ||
|
|
||
| - A banlist - this could be expressed as a list in caveat context, but it can also be expressed as a relation with negation. | ||
| - A notion of public vs internal - boolean flags seem like an obvious caveat use case, but they can also be expressed using self relations. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
can we add a link for "self relations"?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
We don't have that documentation yet 😓
| This is because caveats come with a performance penalty. | ||
| A caveated relationship is both harder to cache and also slows down computation of the graph walk required to compute a permission. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Move this to the top, before the examples. The fact that caveats affect performance should be front and center
|
|
||
| While designing your authorization, it’s important to plan ahead for how quickly an update is guaranteed, while trading off performance via cache effectiveness. | ||
| By default, SpiceDB sets the Quanitzation Interval to 5s; check operations are cached within this window. | ||
| To change this value, set `--datastore-revision-quantization-interval` longer or shorter. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I feel that this sentence doesn't help me decide what value to use. A concrete example may help
Co-authored-by: Maria Ines Parnisari <maineparnisari@gmail.com>
Co-authored-by: Maria Ines Parnisari <maineparnisari@gmail.com>
Co-authored-by: Maria Ines Parnisari <maineparnisari@gmail.com>
5205e47 to
014c30b
Compare
No description provided.