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

Reading messages without polling #5

Open
MichaelMure opened this issue Jun 6, 2023 · 0 comments
Open

Reading messages without polling #5

MichaelMure opened this issue Jun 6, 2023 · 0 comments

Comments

@MichaelMure
Copy link
Owner

There is a case to be made (mostly for propagation latency) for a synchronous way to read messages (yet still having the asynchronous message queue).

From @RangerMauve (ipfs/kubo#9717 (comment)):

I like the approach! One thing however, it'd be nice if one could also open something like an EventSource stream to subscribe to changes in realtime to remove the necessity of polling.

Two questions to answer:

  • do we want to keep that API simple at first? Likely yes (as advised by @lidel)
  • what would that looks like? websocket? long running HTTP request?
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