DefaultAWSCredentialsProvideris used for services - which seems only be true if you aren’t using the spring boot starters. The
ContextCredentialsAutoConfigurationalways creates a custom credentials provider chain that gets used for the amazon service calls - over time things have been added (like profile support) to that chain, but it’s still doesn’t support all the options of the default one
I want know if I can control the number of consumers when using Spring Cloud AWS Messaging and @MessageMapping annotation.
If I understood, I should create my own AsyncTaskExecutor. I really don't know if this is the right way.
Let me know if you could help me, guys. Thanks in advance.
@SqsListenerannotation appear to be extremely aggressive in their frequency. SQS charges per request and the Spring Cloud AWS defaults seem to be around 16 requests per second. I would like to use long pollling and adjust the interval. If anyone can point me to where I can set that I'd appreciate it. Obviously this can easily be done by using the Amazon SDK directly but I'm hoping there's a way to do this within Spring.
@kanderson450 Thanks for your attention. Actually I have the same need but in order to increase or decrease rps according to queue (it'll be decided by profile, each one with its configurations). I would like to hardly increase the number of consumers to deal with 150 rps.
If I'm right, I should pass other instance of AsyncTaskExecutor to SimpleMessageListenerContainer
But, is this the right way?