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

Indexer API: subscriptions #25

Closed
dzhelezov opened this issue Sep 14, 2020 · 1 comment
Closed

Indexer API: subscriptions #25

dzhelezov opened this issue Sep 14, 2020 · 1 comment
Assignees
Labels
estimate-24h 24 hour task low-prio-feature Low priority new feature

Comments

@dzhelezov
Copy link
Contributor

dzhelezov commented Sep 14, 2020

Subtask of #24

The indexer should publish updates to the subscribers, including the following info:

  • Current indexer head
  • Events in the given block
@dzhelezov dzhelezov added this to To do in Babylon Network via automation Sep 14, 2020
@dzhelezov dzhelezov self-assigned this Sep 14, 2020
@dzhelezov dzhelezov added estimate-6h 6h task estimate-12h 12h task and removed estimate-6h 6h task labels Sep 14, 2020
@dzhelezov dzhelezov changed the title Indexer API: indexer stats Indexer API: subscriptions Sep 23, 2020
@dzhelezov dzhelezov added estimate-24h 24 hour task and removed estimate-12h 12h task labels Sep 23, 2020
@dzhelezov dzhelezov moved this from To do to In progress in Babylon Network Sep 25, 2020
@dzhelezov dzhelezov moved this from In progress to To do in Babylon Network Sep 25, 2020
@dzhelezov dzhelezov moved this from To do to In progress in Babylon Network Sep 25, 2020
@dzhelezov dzhelezov moved this from In progress to Review in progress in Babylon Network Oct 6, 2020
@dzhelezov
Copy link
Contributor Author

Subscriptions are currently blocked by goldcaddy77/warthog#422

As a workaround, the processor polls the indexer every minute to fetch the most recent head and events, so there will be some latency. Incorporated into 0.0.15-alpha.1 release: #62

Once subscriptions are enabled, the latency can be significantly reduced as the processor will be able to immediately issue an additional request based on the received subscription event. Note that the polling still must remain, as there are no guarantees that all the subscription events are delivered. At the same time the polling interval may be further increased with no effect on the processor data update latency.

@dzhelezov dzhelezov added this to Needs triage in Features triage Nov 10, 2020
@bedeho bedeho removed this from Review in progress in Babylon Network Jan 11, 2021
@bedeho bedeho added the low-prio-feature Low priority new feature label Feb 10, 2021
Features triage automation moved this from ToDo to Closed Jun 15, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
estimate-24h 24 hour task low-prio-feature Low priority new feature
Projects
Development

No branches or pull requests

2 participants