|
|
|
|
|
by paulgb
1230 days ago
|
|
#1 your understanding of the DriftDB permission model is correct, but I’m not sure what declaring a new permission at runtime entails? Would I be creating a new bearer token for each room, and attaching the room’s permissions to it? #2 the optimistic concurrency headers don’t solve the problem here, e.g.: - I increment a counter (seq: 1) - I increment a counter again (seq: 2, expected last sequence: 1) - I begin computing a snapshot, resulting in a counter value of 2 - You increment the counter (seq: 3, expected last sequence: 2) - I complete the snapshot and publish it with a Nats-Rollup header - Your event has been lost, the counter value is now 2 |
|
#2: You can combine rollup and expected last sequence header to prevent this, unless I am missing another subtle detail?
(I am enjoying this thread FWIW :)