-
Notifications
You must be signed in to change notification settings - Fork 14
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
Push based- Incorporate Server-Sent Events (SSE) #143
Comments
Server Sent Events is a web technology for SSF is designed as a server to server event framework. |
I think you meant to say "server to client communication". And that is a match for the Transmitter to Receiver flow of SSF. While Server Sent Events are commonly seen in frontend applications, there are plenty of libraries implementing Event Source clients in common backend languages like Go, Python, and NodeJS. For Receivers that are unable to open an HTTP endpoint to receive pushes but still want real-time notifications, Server Sent Events seem like a reasonable solution. |
I support this. There are other ways to communicate events including doing that in a bidirectional way, for instance, WebSockets (which is a decent option in my view). There should be extension points that enabling SSE, above mentioned WebSockets, etc. The abstract of the spec states that
It definitely isn't just "a server to server event framework" the way I read it. |
Some discussion about this issue happened in the SSF slack. Trying to summarize here: SSF was explicitly designed to be server-to-server. It is possible to open up other use cases, such as communicating between a server and an entity that is not able to open a push endpoint (i.e. a frontend SPA, a device agent, a firewall, etc), but we would prefer to save those discussions until after a v1 release of the spec. In the meantime, those entities that cannot open a push endpoint have two options:
|
Problem Statement:
Current implementations leveraging PUSH (RFC 8935) require receivers to have publicly exposed endpoints. This setup complicates real-time communication and scalability.
Proposal:
Integrate Server-Sent Events (SSE) as an option alongside PUSH to facilitate real-time communication without the need for receivers to maintain publicly exposed endpoints. SSE enables a server to push updates to clients over a single, long-held HTTP connection, reducing HTTP request volume.
Some benefits:
The text was updated successfully, but these errors were encountered: