Skip to content

Messages duplicated when using phoenix_pubsub_redis as adapter #63

@thiamsantos

Description

@thiamsantos

Whenever I published a message on a subscription it always publishes two messages instead of one. It only happens when the phoenix_pubsub_redis adapter is used for the pubsub. If I use the PG2 adapter the errors stops from happening.

Using Redis as backend we have two messages been published:
Screenshot at 2019-11-06 10-12-40

Using PG2 we have only one.
Screenshot at 2019-11-06 10-14-05

The expected behaviour would be only one message been published.

I don't know if it is a issue with absinthe or with the redis adapter, but is a really strange behaviour.

I created a bootstrap phoenix project with the minimal to simulate the behaviour.

Versions:

Elixir version: 1.9.1
OTP version: 21.1.1

Deps:

{:phoenix, "~> 1.4.9"},
{:phoenix_pubsub, "~> 1.1"},
{:gettext, "~> 0.11"},
{:jason, "~> 1.0"},
{:plug_cowboy, "~> 2.0"},
{:absinthe_plug, "~> 1.4"},
{:absinthe_phoenix, "~> 1.4"},
{:phoenix_pubsub_redis, "~> 2.1"}

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