8000 Don't allow Redis RPC's client to add messages to streams that doesn't exists · Issue #148 · deriv-com/perl-Myriad · GitHub
[go: up one dir, main page]

Skip to content

Don't allow Redis RPC's client to add messages to streams that doesn't exists #148

Open

Description

@eyadof

We have at least two issues in the current RPC handling:

  • A client sending messages to a service that doesn't exist.
  • A client sending messages to a method that isn't implemented.

Although the client (per spec) will eventually timeout and the correctness of the application will be maintained, this will leave garbage in Redis.

We should implement a way to prevent the RPC client from adding messages in these two cases.

  • In Redis 6.2+ xadd has the NOMKSTREAM option.
  • for Redis 5 and less the key idea is to combine one exists call then monitor the keyspace for changes on the key.

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions

      0