#3260·spicedb

Aurora: 完全一致且至少与最新的读取操作间歇性地会错过之前的写入操作。

作者: sawangupta92创建于 2026年8月3日更新于 2026年8月6日

require 'securerandom'

resource_type = 'team' relation = 'creator' subject_type = 'workspace_user' subject_id = SecureRandom.uuid

misses_fully_consistent = [] misses_at_least_as_fresh = []

client_options = { target: 'auth:50051', interceptors: [Authzed::GrpcUtil::BearerToken.new(token: 't_your_token_here_1234567deadbeef'), []].compact.flatten }

Only use insecure channel in development environment

client_options[:credentials] = :this_channel_is_insecure

内容来源: authzed/spicedb