Sending SQS messages to FIFO queues
smsharman opened this issue · comments
Hi Michael,
Thanks for a library that I use a lot and which works really well for me. I have a question regarding the SQS client - when sending messages using FIFO queues, you must set a message parameter "MessageGroupId" to a non-blank value.
According to https://docs.aws.amazon.com/AWSSimpleQueueService/latest/SQSDeveloperGuide/FIFO-queues-getting-started-java.html
this is done by using the setMessageGroupId on the SendMessageRequest class created to deal with a specific message. Java interop is something I'm quite new to in Clojure, and using reflection doubly so. Is this something that can be done easily using the current Amazonica library, or does some specific additional code need to be written to cope with this case?
Many thanks for any advice.
-- Steve
something like (sqs/send-message :queue-url "..." :message-body "..." :message-group-id "...")
see the docs
Yes, that works perfectly, thank you. I'd tried something similar with :messageGroupId rather than message-group-id - that's the lesson for the future. Much appreciated.