Skip to content

Add options for visibility timeout and content based deduplication#177

Open
andremonteiro95 wants to merge 1 commit intogetlift:masterfrom
andremonteiro95:queue-config-options
Open

Add options for visibility timeout and content based deduplication#177
andremonteiro95 wants to merge 1 commit intogetlift:masterfrom
andremonteiro95:queue-config-options

Conversation

@andremonteiro95
Copy link
Copy Markdown

We have run into some use cases where we need to manually set the visibility timeout and turn off content-based duplication, as such, we had the need to configure these directly in the serverless.yml.

@fredericbarthelet
Copy link
Copy Markdown
Collaborator

Hi @andremonteiro95, we discussed this PR earlier with @mnapoli and we came up with the idea illustrated in #191.

Because we don't want every construct to turn into something with hundreds of options, but also we don't want to limit users. WDYT?

@andremonteiro95
Copy link
Copy Markdown
Author

Hi @fredericbarthelet, thanks for your reply.

I guess the first proposal is more in line with what Serverless already supports (resources.extensions).

Can you give me an example of how it would work with an SQS resource? I looked at the AWS Cloudformation Resource Reference table and I didn't find a reference for SQS, I don't know if you are relying on these.

@seantcanavan
Copy link
Copy Markdown
Contributor

seantcanavan commented Feb 16, 2023

@fredericbarthelet is there any documentation on how to disable content based deduplication with #191?

EDIT: The documentation is located here https://github.com/getlift/lift/blob/master/docs/queue.md#extensions and here's the relevant code snippet for anyone else coming from google / github search:

constructs:
    my-queue:
        type: queue
        worker:
            handler: src/worker.handler
        extensions:
            queue:
                Properties:
                    ContentBasedDeduplication: false

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.

3 participants