Skip to content

Suggestion: Use WAL instead of LISTEN/NOTIFY #559

@psteinroe

Description

@psteinroe

Feature description

This is a big ask, but LISTEN/NOTIFY can become a bottleneck for Graphile Worker because it acquires a global lock.

Maybe it could be replaced by subscribing to the WAL stream of the jobs table? This could increase the rate at which jobs are inserted. Especially with local queues, INSERT could become the new bottleneck.

Motivating example

Not seeing issues myself yet, but better be safe than sorry.

Breaking changes

not on the API layer, but this requires a significant rework internally.

Supporting development

I [tick all that apply]:

  • am interested in building this feature myself
  • am interested in collaborating on building this feature
  • am willing to help testing this feature before it's released
  • am willing to write a test-driven test suite for this feature (before it exists)
  • am a Graphile sponsor ❤️
  • have an active support or consultancy contract with Graphile

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