Spring Cloud AWS. SQS. How to configure for FIFO queues

Viewed 401

I am using standard setup for SqsListener.

On class level

@Component 

Then on method level I have this annotation:

@SqsListener

And all works as expected, but what I noticed that there is a warning in my app log:

io.awspring.cloud.messaging.listener.SimpleMessageListenerContainer:[]-AmazonSQSBufferedAsyncClient that Spring Cloud AWS uses by default to communicate with SQS is not compatible with FIFO queues. Consider registering non-buffered AmazonSQSAsyncClient bean.

When I checked the suggested class I found that it is depreciated already. So any idea how to configure spring boot for fifo queues and get rid of this message?

Thanks in advance.

1 Answers
Related