Join Slack
Powered by
Does sst queue construct support fifo property? Ca...
# sst
s
Sam Frampton
09/17/2021, 4:37 PM
Does sst queue construct support fifo property? Can't see it in the docs
Sam Frampton
09/17/2021, 10:04 PM
Ah aws cdk supports fifo queues is easy to add into your sst constructs.
f
Frank
09/17/2021, 11:49 PM
Hey
@Sam Frampton
, I just added a FIFO queue example to the doc, let me know if it works.
https://docs.serverless-stack.com/constructs/Queue#configuring-the-sqs-queue
s
Sam Frampton
09/19/2021, 6:58 PM
Hey
@Frank
thanks for this. I don't think this will work if you don't append .fifo to the name of consumer as well as set fifo flag to true. So something like
myQueue.fifo
is worth adding to docs.
Sam Frampton
09/19/2021, 7:00 PM
I'm not sure if aws cdk supports new aws feature but sns now has fifo functionality as well:
https://aws.amazon.com/blogs/aws/introducing-amazon-sns-fifo-first-in-first-out-pub-sub-messaging/
f
Frank
09/21/2021, 3:46 AM
@Sam Frampton
are you explicitly configuring the queue name? SST should automatically append
.fifo
to the self-generated queue name.
Frank
09/21/2021, 4:21 AM
Gotcha, also added an example for FIFO topic
https://docs.serverless-stack.com/constructs/Topic#creating-a-fifo-topic
Open in Slack
Previous
Next