- Automatically configures and runs the AWS SQS with
@AwsTemplate
- Supports configuring multiple queues, each queue will auto created the bean named
@AliasAwsTemplate
To add a dependency using Maven, use the following:
<dependency>
<groupId>com.example</groupId>
<artifactId>spring-boot-starter-aws-sqs</artifactId>
<version>0.0.1</version>
</dependency>
Configure the .yml file as follows:
aws:
sqs:
enabled: true # Feature enabled
region: us-east-1 # Region of the sqs service
queues: # Multiple queues as list
- name: MyQueueTest # QueueName
alias: myQueueTest # QueueAlias used to create different beans
max-number-of-messages: 5 # Max number when receive Messages
wait-time-seconds: 20 # Wait time seconds when long polling messages
Read more about our example projects here.