Long polling #516
Replies: 1 comment 5 replies
-
When OPA sends a long poll request to the server, it defers its response until an update is available or timeout has occurred. In case of a timeout, the server responds with a |
Beta Was this translation helpful? Give feedback.
5 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
Hi!
We are implementing a bundle server with long polling.
In OPA we have this parameter: 'bundles[_].polling.long_polling_timeout_seconds'.
By looking in the OPA code we have learned that having that parameter != nil enables long poling and the parameter itself is sent in the
prefer
header. For example:prefer:"modes=snapshot,delta;wait=15"
.Is it used by OPA for anything else? (We couldn't determine any effect of it on OPA long poling functionality).
What does the bundle server suppose to do with that parameter? Is it a timeout for a bundle server to send 304 response back if no new version of bundle is available?
Thank you!
Beta Was this translation helpful? Give feedback.
All reactions