Skip to content

In the kubernetes env, should we allow the score to change during an ADD op ? #47

@cezar-tech

Description

@cezar-tech

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:

image

which result in the end in this following operation on mongo
image

And then we would probably need to change the redis (cache) script too
image

According to the docs, Redis also would support this:
image

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type
    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions