Company
Date Published
Author
Jimmy Zelinskie
Word count
908
Language
English
Hacker News points
None

Summary

SpiceDB has introduced a new experimental feature called Relationship Expiration, which allows users to specify an expiration time for relationships, making it easier to model access control and cleanup. This feature is designed to improve developer experience and address real-world requirements outside of the Google Zanzibar paper's scope. The implementation uses a unique approach by pushing logic into the underlying datastore to avoid inconsistencies caused by distributed systems' clock skew. To try out this feature, users need to enable an experimental flag, annotate their schema with expiration support, and provide a timestamp for the OptionalExpiresAt field when writing relationships. This new feature is part of SpiceDB's ongoing journey to achieve peak performance and deliver the best product for scaling authorization in diverse enterprise use-cases.