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

Horizon streaming support #216

Open
2 tasks
juanhurtado10 opened this issue Aug 9, 2022 · 1 comment
Open
2 tasks

Horizon streaming support #216

juanhurtado10 opened this issue Aug 9, 2022 · 1 comment
Labels
🎯 Epic Big picture of a feature

Comments

@juanhurtado10
Copy link
Contributor

ℹ️ This issue is an Epic

Context

Horizon provides a streaming mechanism for receiving events in near real-time. Instead of repeatedly sending requests to Horizon for batch updates, a connection is established between a client and Horizon with updates to an endpoint response streaming as new ledgers close and updates occur.

This reduces requests that return no data and allows near instantaneous updates client-side.

All attributes for the endpoints that allow streaming are the same as regular responses. A caller can initiate streaming by setting ‘Accept: text/event-stream’ in the HTTP header when making the request. Study an example of using streaming in the Follow Received Payments tutorial.

Objective

To add support for streaming requests with Horizon.

Checklist

  • ...
  • ...
@juanhurtado10 juanhurtado10 added the 🎯 Epic Big picture of a feature label Aug 9, 2022
@juanhurtado10 juanhurtado10 changed the title Add streaming support for Horizon requests Horizon streaming support Aug 9, 2022
@csokun
Copy link

csokun commented Feb 4, 2024

I played with streaming using Finch here the gist https://gist.github.com/csokun/b7fadda2a247075374ac2ca131b32fe6

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
🎯 Epic Big picture of a feature
Projects
None yet
Development

No branches or pull requests

3 participants