Skip to content

Feature: Trigger GraphQL execution immediately on published events (without writing to a store) #133

Open
@andyrichardson

Description

@andyrichardson

About

Hey there, first off - thanks for the awesome lib!

I'm working with a team who are currently using a self-made implementation of serverless subscriptions and we'd really like to use this library instead.

One thing that is holding us back right now is the use of polling for events.

Current functionality

So if I'm not mistaken, in the case of a new event being published, the following happens:

  1. A publish event is triggered pubsub.publish('SOME_EVENT')
  2. This event is written to some kind of persistence layer (e.g. MemoryEventStore)
  3. The persistence layer is then polled
  4. Upon polling event, all new events are then sent to an event handler (e.g. MemoryEventProcessor)
  5. Subsequently the event is handed to resolvers and the

Expected functionality

If we're working with push/event based systems, I'm confused as to why events would need to be persisted and polled.

My expectation was that an event publish (1.) would immediately trigger some kind of event handler (4.) without the need for polling or persistence.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions