Skip to content
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

SSE transport #25

Closed
gedw99 opened this issue Jan 7, 2025 · 1 comment
Closed

SSE transport #25

gedw99 opened this issue Jan 7, 2025 · 1 comment

Comments

@gedw99
Copy link

gedw99 commented Jan 7, 2025

Would be nice and lightweight.

Can do 120 FPS updates when using SSE in browser.
Easy to cluster and firewell and proxy. there is nothing to do as its just HTTP.
Perf due to using HTTP 1, 2 or 3.
Easy LB. Proxies will LB it automatically.
Browsers auto reconnect. nothing to do.

Can be done to be directional based on fetch and EventSource primitives.


I am seeing this come up a lot in systems now, and there are many implementations.

The ServerSentEventGenerator must use a response controller that has the following response headers set by default:

Cache-Control = nocache
Connection = keep-alive
Content-Type = text/event-stream

Then the created response should flush immediately to avoid timeouts while 0-♾️ events are created
Multiple calls using ServerSentEventGenerator should be single threaded to guarantee order.

@gedw99
Copy link
Author

gedw99 commented Jan 14, 2025

No response so closing

@gedw99 gedw99 closed this as completed Jan 14, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant