I have a service in Python which processes some dictionaries. I wish to find and store a unique identifier for one of these dictionaries (when a condition is met).
Then a different service can process a list of dictionaries. This list contains the unique dictionary. If the unique identifier is found and verified, then the dictionary will be processed accordingly.
What is the best way to do achieve this. I thought maybe adding a new field to the dictionary something like
my_dict["unique_dict"] = True
but is there a better way?