Blocking pull subscriptions #2
Replies: 1 comment 1 reply
-
I'd like to introduce an alternative approach that removes the need for users to manually set up polling loops for pull subscriptions:
|
Beta Was this translation helpful? Give feedback.
-
We should look at introducing blocking functionality to pull subscriptions. Currently, this behaviour can be mimicked, but it's less-than-ideal implementation.
The reasons for this not being included in the MVP is fairly simple - focus on serverless patterns. However, as the product matures, basic features like this need to be introduced.
Current best equivalent
Introducing an infinite (
while
to everyone but go) loop to constantly pull events, wait an arbitrary short time, and then poll again is an easy way of introducing this behaviour.Frankly, this could be implemented in the SDKs as a short-term solution, but it's not an effective approach.
What we should implement
Req from @huantt
Beta Was this translation helpful? Give feedback.
All reactions