aws-cdk icon indicating copy to clipboard operation
aws-cdk copied to clipboard

(aws-ecs-patterns): Add sqs deliveryDelay attribute to QueueProcessingFargateService

Open leandrodvd opened this issue 5 years ago • 2 comments

Want to add deliveryDelay attribute to QueueProcessingFargateService so that it can be passed to queue constructor

Use Case

We have a service using QueueProcessingFargateService and we currently let it create the SQS queue internally (we don't provide the queue).

To fix an issue we need to set the deliveryDelay attribute of the main queue.

Since the deliveryDelay is not present in QueueProcessingFargateServiceProps we'll need to create the queue and it's dlq first and pass it to QueueProcessingFargateServiceinstead of letting it create the queue for us.

Proposed Solution

Add deliveryDelay attribute to QueueProcessingFargateServiceProps and use in the queue creation

Other

I think the main discussion here is to think if we want to eventually add all the Queue props to QueueProcessingFargateService to allow any use case that requires more complex configs or if we want to keep it to a bare minimal that only supports most common use cases and if deliveryDelay usage would fall in such common use cases. Not sure if there is already some main design direction or general rules for patterns

  • [x] :wave: I may be able to implement this feature request
  • [ ] :warning: This feature might incur a breaking change

This is a :rocket: Feature Request

leandrodvd avatar Sep 09 '21 23:09 leandrodvd

Hi @leandrodvd , sorry for the delayed response.

That’s right, we’ll need to add the deliveryDelay attribute, perhaps to the QueueProcessingServiceBaseProps (so that it can also be used for the QueueProcessingEc2Service). As you have indicated in the issue, will you be able to work on a PR for this?

The discussion point is a totally valid concern that the team is considering as well. And to overcome similar gap-related issues and support more composable new patterns, we have been focusing on the ecs-service-extensions. You can refer this issue and the official documentation. I would also highly recommend you check out the QueueExtension which allows you to create a queue for your service and also sets up the necessary permissions for it. We’re currently working on adding auto scaling to these constructs.

If you like the approach or have suggestions, please leave a comment or 👍 in the issue which will help us prioritize. Thanks!

upparekh avatar Oct 08 '21 16:10 upparekh

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

github-actions[bot] avatar Nov 24 '22 04:11 github-actions[bot]