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

Improve alerting mechanism #21

Open
xsreality opened this issue Apr 23, 2020 · 0 comments
Open

Improve alerting mechanism #21

xsreality opened this issue Apr 23, 2020 · 0 comments
Labels
enhancement New feature or request

Comments

@xsreality
Copy link
Owner

Currently, all alerts are sent by looping through list of subscribers in a consumer poll loop and firing alerts if

  1. User subscription is active.
  2. User's preferred state matches the update or...
  3. User has no preferred state

As number of subscribers is growing quicker than anticipated, this flow is not scalable. Instead this can be done via Kafka streams by repartitioning and joining the subscribers topic with the alerts topic. The resulting stream can be stored in another topic which will be picked up by the bot to fire alerts.

@xsreality xsreality added the enhancement New feature or request label Apr 26, 2020
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

No branches or pull requests

1 participant