Skip to content

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.

…. 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
runakash added a commit to runakash/aws-cloud-map-mcs-controller-for-k8s that referenced this pull request Jun 20, 2025
* Replace ListOperations with GetOperation because it has higher limits. 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.

* Add found check in the rate limiters map.
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