aws / aws-sdk

Landing page for the AWS SDKs on GitHub
https://aws.amazon.com/tools/
Other
68 stars 13 forks source link

Parallel Activity Task Poller for Step Functions #532

Open nolotz opened 1 year ago

nolotz commented 1 year ago

Describe the feature

Implement a parallel activity task poller for the Additional Features module that can be scaled across multiple threads to improve throughput and latency. This feature will help in avoiding latency problems when polling for tasks in step functions, as described in the Amazon Step Functions documentation.

Use Case

For production systems using Step Functions with activity workers, it is recommended to have at least 100 open polls per activity ARN at each point in time. This is to ensure that even if a few polls are blocked, there are still many more requests that will receive a taskToken to process work. However, implementing this manually can be cumbersome and prone to errors. By providing a parallel activity task poller in the SDK, users can easily implement and manage their pollers, ensuring high throughput and low latency for their systems.

The proposed solution aims to help users who are leveraging AWS Step Functions in their systems by providing a built-in, easy-to-use, and scalable solution for polling activity tasks. This will enable users to focus on their business logic and not worry about the intricacies of implementing a parallel activity task poller from scratch.

Proposed Solution

Other Information

No response

Acknowledgements

AWS Go SDK V2 Module Versions Used

latest

Go version used

1.20.3

RanVaknin commented 1 year ago

Hi @nolotz ,

Thanks for opening this feature request. I think what you are proposing is a nice addition to the SDK, however customization on this level would have to be implemented as a cross-SDK level to avoid feature parity gaps.

Since feature requests are driven by community engagement, and since we didn't see this being asked in the past, we are not inclined to implement this at this time.

I will transfer this to the aws-sdk general repo, where we monitor all cross SDK FRs / and bugs and prioritize them based on the customer impact.

Thanks again, Ran~

nolotz commented 1 year ago

Hi @RanVaknin,

Thank you for considering my feature request and providing a thorough explanation on the current approach to SDK customization. I appreciate your effort to transfer this request to the aws-sdk general repository for further monitoring and prioritization.

tim-finnigan commented 1 week ago

Just to clarify, is the request here for Step Functions API functionality or SDK functionality? Looking in their documentation on Activities (https://docs.aws.amazon.com/step-functions/latest/dg/concepts-activities.html) It sounds like maybe this relates to GetActivityTask, in which case we would want to reach out to the Step Functions team to review the feature request.

github-actions[bot] commented 2 days ago

This issue has not received a response in a while. If you want to keep this issue open, please leave a comment below and auto-close will be canceled.