I am implementing a SQS subscriber using spring boot and after a few research on internet I have found the project spring-cloud.
Use the annotation @SqsListener looks pretty easy to receive messages from a topic but I would like to implement it as Long Pooling instead of short pooling that receives every message as soon it arrives.
@SqsListener(
value = ["queue"],
deletionPolicy = SqsMessageDeletionPolicy.ON_SUCCESS
)
fun subscribeToSSmsg: String) {
....
}
This is working smooth but I would like to receive messages using long pooling. Is there any way to do it using spring-cloud?