Skip to content
New issue

Have a question about this project? # for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “#”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? # to your account

Rework operation poller #245

Merged
merged 2 commits into from
Nov 15, 2022
Merged

Conversation

runakash
Copy link
Member

Issue #, if available:

Description of changes: Replace ListOperations with GetOperation because it has higher limits. Rework the poller code to keep the OperationPolling simple with Submit - submitting operations, Poll - polling operations till complete or timeout, and Await - waiting for the all the submitted operation's result.

By submitting this pull request, I confirm that you can use, modify, copy, and redistribute this contribution, under the terms of your choice.

pkg/cloudmap/client.go Outdated Show resolved Hide resolved
…. Rework the poller code to keep the OperationPolling simple with Submit - submitting operation provider, Poll - polling operations till complete or timeout, and Await - waiting for the all the submitted operation's result. Moving the rate-limiter to the separate file for the clarity and separation of concerns. Adding the limiter for Register/DeregisterInstance api calls.
@runakash runakash force-pushed the rework-operation-poller branch from 9abe508 to 5018b44 Compare November 14, 2022 23:47
@runakash runakash requested a review from astaticvoid November 15, 2022 00:01
@runakash runakash merged commit 4dc8b4d into aws:main Nov 15, 2022
@runakash runakash deleted the rework-operation-poller branch November 15, 2022 18:59
# for free to join this conversation on GitHub. Already have an account? # to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants