serverless-plugin-lambda-dead-letter icon indicating copy to clipboard operation
serverless-plugin-lambda-dead-letter copied to clipboard

Short hand syntax should support FIFO queues

Open gmetzker opened this issue 8 years ago • 5 comments

SQS recently added support for 'fifo' queues. If Cloudformation supports this perhaps the plugin can support it to. Use a regex match .fifo$ to see if the queue name ends with .fifo.

If the queue name ends with .fifo then create a fifo queue by:

  • Set attribute: FifoQueue: true ?
  • Consider setting ContentBasedDeduplication: true or what ever the default queue attributes on when you create a fifo queue on the AWS web ui console.
  • [x] Determine the default fifo queue attributes

  • [x] Determine if Cloudformation supports this what what the syntax looks like

  • [ ] During compilation time determine if the queue name matches the fifo format

  • [ ] Create the queue with the default fifo attributes if it should be a fifo queue.

Potential syntax

  # 'functions' in serverless.yml

functions:
  createUser: # Function name
    handler: handler.createUser # Reference to function 'createUser' in code

    deadLetter:
      sqs:  createUser-dl-queue.fifo

gmetzker avatar Jan 29 '17 17:01 gmetzker

FIFO queues are not support by Cloudformation at this time. Once this is added to CF we can fix this.

gmetzker avatar Jan 31 '17 05:01 gmetzker

It is now: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-sqs-queues.html

kitsunde avatar May 28 '17 12:05 kitsunde

@gmetzker any work going into this plugin for support of fifo queues ?

jayasai470 avatar Apr 06 '20 23:04 jayasai470

Hi! Same here, I would really like to use this plugin using FIFO queues. Any plan to update it?

jantpedraza avatar Apr 19 '20 16:04 jantpedraza

There's a real need to support FIFO for DLQ

timothy-mugayi avatar Aug 25 '20 10:08 timothy-mugayi