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

Reduce load on GET /subscribers endpoint #309

Open
chris13524 opened this issue Jan 21, 2024 · 0 comments
Open

Reduce load on GET /subscribers endpoint #309

chris13524 opened this issue Jan 21, 2024 · 0 comments
Labels

Comments

@chris13524
Copy link
Member

chris13524 commented Jan 21, 2024

This endpoint is slow due to downloading all subscribers in 1 go, and many dapps poll this endpoint frequently. This will become a problem as the list becomes large, and more dapps are doing it. We need some alternatives:

  • An endpoint to check if a specific account is subscribed: Get subscribers endpoint #352
  • Webhooks to send subscribers to a dapp when they are subscribed, rather than needing to poll the endpoint
  • Broadcast functionality to send a notification to all subscribers of a notification type
  • Broadcast groups to allow dapps to update the group periodically and broadcast to that, rather than needing to supply the full list in every request

These features should be prioritized based on the load on the service, and what alternatives will fulfill the dapp's needs.

Download the full list of subscribers is still a valid use case, and it's uncertain if there is benefit into implementing API pagination into this specific query, but to continue the function of this endpoint we need to:

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

2 participants