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

Treatment service Poller #87

Merged
merged 20 commits into from
Jan 2, 2025
Merged

Conversation

rautelaanirudh
Copy link
Contributor

What this PR does / why we need it:
The intention of this PR is to provide the option of utilising a poller in the treatment service instead of pub/sub. The poller will be responsible for pulling the changes periodically instead of subscribing to the management service topic.

Poller can be enabled from treatment service config

PollerConfig:
  Enabled: true
  PollInterval: 10s

Which issue(s) this PR fixes:

Treatment service can be used in cloud environments where pub/sub is currently not supported e.g. Tencent cloud.

Copy link
Contributor

@deadlycoconuts deadlycoconuts left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thanks a lot of this PR! There are just a couple of small comments I left, especially on the polling logic which I didn't really understand why it needed to be implemented as such.

treatment-service/appcontext/appcontext.go Outdated Show resolved Hide resolved
treatment-service/server/server.go Outdated Show resolved Hide resolved
treatment-service/config/config.go Outdated Show resolved Hide resolved
treatment-service/server/poller.go Outdated Show resolved Hide resolved
treatment-service/server/poller.go Outdated Show resolved Hide resolved
treatment-service/server/poller.go Outdated Show resolved Hide resolved
Copy link
Contributor

@deadlycoconuts deadlycoconuts left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thanks a lot for all the changes! I've just one last tiny comment but feel free to merge this once that's addressed! :D 🚀

@deadlycoconuts deadlycoconuts merged commit 397e59b into caraml-dev:main Jan 2, 2025
6 checks passed
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

Successfully merging this pull request may close these issues.

2 participants