Open
Description
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:
- A publish event is triggered
pubsub.publish('SOME_EVENT')
- This event is written to some kind of persistence layer (e.g. MemoryEventStore)
- The persistence layer is then polled
- Upon polling event, all new events are then sent to an event handler (e.g. MemoryEventProcessor)
- 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
Labels
No labels