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

Cursor-based API #5

Open
dpc opened this issue Feb 11, 2019 · 0 comments
Open

Cursor-based API #5

dpc opened this issue Feb 11, 2019 · 0 comments

Comments

@dpc
Copy link
Owner

dpc commented Feb 11, 2019

Each downstream consumer would maintain a cursor, and ask for next blocks using it. The response would contain new cursor. This way multiple unrelated consumers can follow the ledger, without API having to keep track of them.

Canceling protocol should be used, so we will need code converting truncating protocol in the db into canceling one. Should be easy.

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