For each day, I need to assign an incremental ID to messages that I receive. Messages can get consumed multiple times, in which case the existing ID should be used if it already