-
Notifications
You must be signed in to change notification settings - Fork 68
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Add connection session process, event buffer and long-polling support #217
Milestone
Comments
jakobwgnr
added a commit
to jakobwgnr/reactive-interaction-gateway
that referenced
this issue
May 28, 2019
jakobwgnr
added a commit
to jakobwgnr/reactive-interaction-gateway
that referenced
this issue
May 29, 2019
jakobwgnr
added a commit
to jakobwgnr/reactive-interaction-gateway
that referenced
this issue
Jun 6, 2019
jakobwgnr
added a commit
to jakobwgnr/reactive-interaction-gateway
that referenced
this issue
Jun 6, 2019
jakobwgnr
added a commit
to jakobwgnr/reactive-interaction-gateway
that referenced
this issue
Jun 6, 2019
jakobwgnr
added a commit
to jakobwgnr/reactive-interaction-gateway
that referenced
this issue
Jul 14, 2019
jakobwgnr
added a commit
to jakobwgnr/reactive-interaction-gateway
that referenced
this issue
Jul 14, 2019
jakobwgnr
added a commit
to jakobwgnr/reactive-interaction-gateway
that referenced
this issue
Jul 25, 2019
jakobwgnr
added a commit
to jakobwgnr/reactive-interaction-gateway
that referenced
this issue
Jul 25, 2019
jakobwgnr
added a commit
to jakobwgnr/reactive-interaction-gateway
that referenced
this issue
Jul 25, 2019
jakobwgnr
added a commit
to jakobwgnr/reactive-interaction-gateway
that referenced
this issue
Jul 30, 2019
Closed by #220 |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
In order to support apps behind the Azure API Management Gateway with WebSockets disabled, we need to allow apps to "long-poll" for events. This means:
In order to support this, we need a "Session" process that buffers incoming events. The ephemeral processes associated to incoming HTTP connections look up the session processes according to the client's JWT:
jti
identifies the session and with that also the session process. The Erlang process registry should be used to do the lookup, by registering session processes using their associatedjti
.The session process handles
Also, all session processes should be in a process group to support the new session API - to be implemented in #154 .
Going forward, the SSE and WS handlers should also rely on the session process (using the ring buffer, the SSE handler could even support SSE's "last-event-id" feature to re-send missed events). This is to be implemented in another issue.
The text was updated successfully, but these errors were encountered: