Integrate Spring Boot application with AWS SNS/SQS using localstack

  Рет қаралды 2,976

Visa2Learn

Visa2Learn

Күн бұрын

In this video, we will see how to integrate a spring boot application with AWS SQS/SNS but in the local environment using localstack. We will create a SNS topic, a SQS queue and create SNS subscription with sqs as the protocol. We will demo how to publish notifications to SNS topic. Demo will also cover pushing/listening messages to/from SQS queue
Github code: github.com/vis...
Reference links:
aws.amazon.com...
aws.amazon.com...
docs.aws.amazo...
docs.localstac...
spring.io/proj...
awspring.io/
docs.aws.amazo...
#springboot #springcloudaws #localstack #sqs #sns

Пікірлер: 6
@sakthinivas1840
@sakthinivas1840 6 ай бұрын
Thanks for sharing, may I know where the properties defined in application.yaml is referred in the application?
@visa2learn
@visa2learn 6 ай бұрын
Those are internally used by spring cloud aws as stated in their documentation page
@anakhaaniejose4135
@anakhaaniejose4135 6 ай бұрын
Can I use spring-cloud-aws-sqs dependency instead of starter dependency? But when using that my listener doesn't seem to work. is there is particular reason for using starter dependency?
@visa2learn
@visa2learn 6 ай бұрын
Yes the starter dependency auto-configures the SQS integration beans. So those objects are created during application startup. If you do not use the starter, you will have to create the beans yourself. docs.awspring.io/spring-cloud-aws/docs/3.1.0/reference/html/index.html#sqs-integration
@piumidesh
@piumidesh 5 ай бұрын
can we use multiple consumers and multiple producers using one queue.how to identify that messages these are for one consumer and these are for another consumer
@visa2learn
@visa2learn 5 ай бұрын
What you can do is use SNS and add multiple SQS as subscribers to this single SNS topic and then add a message filtering in SNS to route the message only to specific queues depending on what the message is. docs.aws.amazon.com/sns/latest/dg/sns-message-filtering.html
SNS And SQS Deep Dive | SNS Vs SQS | Standard Vs FIFO | Use Cases
15:05
Electric Flying Bird with Hanging Wire Automatic for Ceiling Parrot
00:15
when you have plan B 😂
00:11
Andrey Grechka
Рет қаралды 58 МЛН
Kubernetes Ingress networking
5:57
Project Calico
Рет қаралды 52 М.
5 Common Mistakes Spring Developers Make
18:06
Dan Vega
Рет қаралды 18 М.
AWS SQS FIFO Queues Overview and Demonstration
28:15
Be A Better Dev
Рет қаралды 13 М.
Amazon Simple Queue Service (SQS) with SpringBoot | Spring Cloud AWS
17:25