GitHub user Yangsx-1 added a comment to the discussion: Talks about the design of consumer group in stream
> I am not sure about the detail of key encoding: is consumer group name and > fields behind it encoded as subkey (refer to > https://kvrocks.apache.org/community/data-structure-on-rocksdb#user-key-encoding)? We can do like that, but the subkey maybe a little long. If we store them together, the subkeies and values may be as follows: ``` 1. CGname + metadata --> last_id, entries_read 2. CGname + consumer name --> seen_time(a variable of uint64_t) 3. CGname + StreamEntryID + metadata --> delivery_time, delivery_count 4. CGname + StreamEntryID + consumer --> consumer name ``` May be 3 and 4 can be encoded together, like `CGname + StreamEntryID --> delivery_time, delivery_count, consumer name` Is this ok? GitHub link: https://github.com/apache/kvrocks/discussions/1654#discussioncomment-6790187 ---- This is an automatically sent email for [email protected]. To unsubscribe, please send an email to: [email protected]
