If the ID's are short lived, you might find string IDs to be better suited. 
How are the configs being defined, TextFormat? Or some other way?

On Wednesday, October 5, 2022 at 4:01:48 PM UTC-6 Agnivah Poddar wrote:

> Hi all,
>
> I am designing a new framework for my team wherein I introduce a new Proto 
> message that is uniquely identified by a proto enum value. 
>
> message FooId {
>   enum Id {
>    ...
>   }
> }
>
> message Foo {
>   optional FooId.Id = 1;
>   ...
> }
>
>
> The configs are supposed to be short-lived. The way this is intended to be 
> used is that a client can grab a new enum value and use that in their 
> configuration. Afterwards, they can clean up the config and mark the enum 
> value as reserved. One concern I have is that over time, the list of 
> reserved values will grow too large along with the new enum values making 
> it wasteful(?). Is there a different approach I can take here for my 
> use-case? 
>
> Thanks,
>

-- 
You received this message because you are subscribed to the Google Groups 
"Protocol Buffers" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to [email protected].
To view this discussion on the web visit 
https://groups.google.com/d/msgid/protobuf/ffb8db99-f2ba-48e7-83c3-bc202e664445n%40googlegroups.com.

Reply via email to