In the kubernetes env, should we allow the score to change during an ADD op ?
Opened this issue · 1 comments
Regarding the kubernetes environment of deckard that connects to mongo and redis as storage and cache respectively, I was thinking that it might be useful to make the ADD operation more like an HTTP PUT im more ways, in this case I mean it to be able to change a message's score with an ADD operation, something that is currently not possible as I detail below.
In the mongo_storage.go file, we have the following code:
which result in the end in this following operation on mongo
And then we would probably need to change the redis (cache) script too
According to the docs, Redis also would support this:
Do you think we should let users change the score on add requests or create a new gRPC request updateScore
that is able to update the score if the message is on the queue?
Do you mind adding more details on the use case?