Spring Cloud AWS | Amazon Simple Queue Service | SQS | Spring Boot | JavaTechie
Вставка
- Опубліковано 26 сер 2024
- This tutorial will guide you ,how to use Amazon's SQS (Simple Queue Service) using Spring Boot also you will learn how to publish and subscribe message from Queue
#javatechie #AWS #SQS #SpringBoot
GitHub:
github.com/Jav...
Blogs:
/ javatechie
Facebook:
/ 919464521471923
guys if you like this video please do subscribe now and press the bell icon to not miss any update from Java Techie
Disclaimer/Policy:
--------------------------------
Note : All uploaded content in this channel is mine and its not copied from any community , you are free to use source code from above mentioned GitHub account
every time I search something aws and java related hoping to find one of your videos, and never disappointed, you always come in clutch. Keep it up brother
Thank you brother keep learning 😃
@@Javatechie yessir
I am a big fan of your teaching style. Thanks for providing such a great content
Thank you 😊
Excellent explanation I am big fan of your teaching I learn a lot from your tech videos
Highly recommended videos ✌️🙌
Please publishing videos on cognito with spring boot.
Wow nice job brother I have learnt many topics in a single day. Keep up good work.
Good content. Thumbs up from Sri Lanka brother 😃
informative session
4k+ views and 0 dislikes. WOW. Keep it up.
If anyone is using spring boot 2.5.* then execute below 3 classes
@SpringBootApplication (exclude = {ContextStackAutoConfiguration.class, ContextInstanceDataAutoConfiguration.class, ContextRegionProviderAutoConfiguration.class})
Hi, I really liked your explanation on AWS SQS with SpringBoot. In that video you have created a standard queue. Can you upload one video with AWS SQS FIFO queue. Because I see some errors while trying to publish a message using FIFO queue. Thanks
Sure I will try this 👍
Very helpful tutorial..
Nicely explained, clear voice and clear video.. thanks...
Hi ,
I like what you do, how you explain.
Please can you provide a course on how to use spring cloud stream, specially how share security context between microservices, how to use routing key expression etc...it will be helpful.
Thanks
Spring cloud stream already I explained but yes security context I need to check
@@Javatechiehi do you have additional tutorial implementing dlq and events related to this topic? Thank you
Thank you for this tutorial
Very good and clean video
thanks for the tutorial go on go on
Please prepare a video on AWS SNS as well. Your videos are really simple and they hit the point directly. Could you please prepare a video on RabbitMq.
SNS is my next tutorial
@@Javatechie SNS tutorial is on the list?
No I haven't uploaded it yet . Will do soon
Hi ,
can you please share a video to implement multiple @sqslisterners for a single sqs queue in spring boot
Great job. God bless you.
Hi, I'm from Brazil and I really like the way you explain! Keep going
Glad to hear this 🤗
Superb explanation👌
Thks good content.. really helpd..do sns & s3 bucket also..
Okay I will
Greate
Hi Basant, love your teaching style simple and straight to the point. I have one question - are all these dynamo db, sqs free tier ? Can we try it ? Thanks in advance
Yes free tire Srikanth , you can try this
Excellent video ...
very nice . thanks
How are you able to do so many tech videos? Where do you understand all this? You have helped me a lot through your videos
Cool buddy .
Can plz make a video on the same thing but using producer consumer logic
Good learning , please do video on Spring boot - Lambda - dynamo dB
With AWS lambda I will
Much appreciated. Your code helped.
should I write SqsListener in RestController class or can I write some class for it with deserialising to some Object?
As i worked , my SQS sender in working fine and sending messages in queue.
But my sqs listener is not receving messages at all , please help, i have done exactly same things as , u stil logs are not printing , messages present in it.
you are too good
hi @java Techie,
Can you please explain how AnonymousAWSCredentia works
basically we don't pass credentials .. I think it might be work on ROLE base.
Could you please confirm
Hey Basant, Can you make one v on aws GLUE/spring... much needed I guess
You are a gem. I have one query . After creating secret key from IAM . How that key is mapped to SQS? So that in our java code which we are writing inside eclipse would know this secret key belongs to particular resource or particular SQS
Manish with your IAM credential your application authenticate with aws service . if credential are valid then you can connect to any aws service from your application .
@@Javatechie Meaning I can create only one IAM to access all the available AWS services(dynamo DB SQS Notifications ) & can access all of them using one access and secret key. Correct ?
@@Javatechie Request If you can include one small video on this series related to IAM
Great explanation and upto the point. Can we keep the secrets outside our code?
Yes we should store it outside the code
Is there any way to add multiple threads for the same listener, so that during load multiple messages are consumed in parallel.
Use ExecutorService
can someone explain why @Primary anotation is used while declaring beans
Thanks sir 🙏
Hi Sir , do we have any session/course for Spring boot with Azure cloud computing
Nice concept and description.
How ever this Template issue is still unresolved.
'org.springframework.cloud.aws.messaging.core.QueueMessagingTemplate' that could not be found
Can u plz provide a link where we can construct and send a JSON object to SQS queue with same configuration in java?
Hi Do you have demo on spring-boot Kinesis ?
Thanks for such a great explanation , its hard to find such tutorial easily on internet ... do you have any course on udemy for aws using java springboot ?
No Abhishek no udemey course. Everything is there in my UA-cam please checkout my AWS playlist 😊.
hi, am not getting the option of amazon web services in my eclipse while adding the dependencies.. can you help me for it..
Please copy paste that dependency manually
if there are different nodes listening from the same queue will this work?
Hi, I am using same code as explained in this video, but my message goes to " message in flight" instead of "available message". Please help and suggest.
Thanks for the tutorial, really enjoyed and learnt from it. My IntelliJ doesn't have Aws dependency on the spring initializer, can you tell me how to add that, please?
You can use dependency from my pom.xml mentioned over video description
@@Javatechie Thank you
@javatechie how we will proceed with more than 256kb payload size. How to handle that in @Sqslistner, is sqa will able to read that message key and bucket name...
Buddy i haven't tried that but will check and update
@@Javatechie ok I am waiting⏳
Only poll messages from SQS Queue. How we can do it?
Please do video on Amazon SMS service as you said.
Thanks bro..
If we want to deploy in new region do we want to change yml file in jar ?
Or any dynamic way to do that ?
I believe Region is optional please do try once
I am interested in sns concept can you please prepare video on it
It's already there please checkout my AWS playlist
For some reason, the listener event is not firing? any ideas?
Can you make one video docker swam and dockerfile ..
How to setup one app on that topics
I will try this
@@Javatechie thank you 😊
If some error is thrown in the load message method, will the message be deleted in the queue?
No it won't
What's the difference b/w SNS & SES, both can send emails right?
Do you have SES topic link available?
Try to find out abbreviations of these 2 terms you will get it
Do we need user credentials for only consuming message from sqs?
Credentials required to access any AWS service
How is @sqsLisntener configured ?????, if anyone know please tell
Hi Basant,
Thanks for the reply.
This is my question.
Hope you are doing good. When I tried this Amazon SQS, I am getting below error message. However, my access key is correct. Even I deleted and created new one too.
com.amazonaws.services.sqs.model.AmazonSQSException: The security token included in the request is invalid. (Service: AmazonSQS; Status Code: 403; Error Code: InvalidClientTokenId; Request ID: 038c430b-4caf-56c3-b2ca-1486bbc14678)
Also, for the end point, in my eclipse it showing warring as "colud.aws.end-point" is unknown property. Please check this and let me know. Is something I am doing wrong.
Hi, Can I conect Axon and Sqs?
Hi Basant,
Hope you are doing good. When I tried this Amazon SQS, I am getting below error message. However, my access key is correct. Even I deleted and created new one too.
com.amazonaws.services.sqs.model.AmazonSQSException: The security token included in the request is invalid. (Service: AmazonSQS; Status Code: 403; Error Code: InvalidClientTokenId; Request ID: 038c430b-4caf-56c3-b2ca-1486bbc14678)
Also, for the end point, in my eclipse it showing warring as "colud.aws.end-point" is unknown property. Please check this and let me know. Is something I am doing wrong.
SqsListener is not working for me. I am using spring boot version 3.0.5.
Spring boot 3.0 not sure what changes have been made. I will check and update you
@@Javatechie I found it. Using spring 3.0.5 eliminates the start up issue that we have when not excluding ContextStackAutoConfiguration.class. But if we don't exclude ContextStackAutoConfiguration.class, for some reason SqsListener stops working.
@@ambidextrousTrades great 👍.
very nice content, is it possible to achieve distributed messaging like kafka with different group ids in sqs
Kafka am not sure I will check and update
Hi Basant,
Could you please reply to my question? I would like to continue the SQS example.
Thanks,
Raja Rajagopal
Please tag your question
Ho, Can I conecto Axon and Sqs?
Is it possible to use more than one queue configuration in yml file?
Yes we can configure many queue
In my appication.yml file end-point is showing as unknown property how to solve that plzz do reply..!!
Please align it properly
Please make a video on java aws lambda.
Yes you can find it in upcoming tutorial
Hi Basant, what is difference between activeMq and Aws sqs. Where we have use activeMQ and where we have to use Aws SQS. if both are same which one is best and why?
have you got knowledge regarded your question?
Hi ,I need FIFO example. is there any example?
I don't want to store access key and password in app properties file while running spring boot in EC2. How can I do that?
use AWS Secret Manager
Yes interested for SNS
Already uploaded
Can you kindly make a tutorial on firebase integration with spring boot or Java?
I am getting error when I connected AWS SQS FIFO QUEUE can you help why same code is not working for FIFO queues
Did you pass your own secret key and access key
@@Javatechie yes I have passed both keys and I am getting status code 400 and The queue doesn't exist or no access to perform action SQS:GetQueueurl
Hi , I need FIFO example. can you provide me the any site link?
Hello, i keep getting "com.amazonaws.SdkClientException: Failed to connect to service endpoint. "
Even when I download your code and try to run it. Is there some setting I need to adjust to enable the aws cloud libraries?
I usually use :
com.amazonaws
aws-java-sdk-sqs
Did you configure your client I'd and secret key and region properly ?
@SpringBootApplication(
exclude = {
org.springframework.cloud.aws.autoconfigure.context.ContextInstanceDataAutoConfiguration.class,
org.springframework.cloud.aws.autoconfigure.context.ContextStackAutoConfiguration.class,
org.springframework.cloud.aws.autoconfigure.context.ContextRegionProviderAutoConfiguration.class
}
)
Diff between rabbit mq and Kafka?
Few diffs are there. The one which I know for sure is that Kafka will hold the message for some time even though the consumer consumed the message.
Hi Basant Is SQS same like Apache Kafka
Basically at High level both are following the same principle
But for high throughput always recommend to use Kafka over AWS SQS/SNS
Please go through below link for more info
stackoverflow.com/questions/16449126/kafka-or-sns-or-something-else
@@Javatechie thanks
Hi Basant could you make one spring boot video using SseEmitter it will be great help.
Okay I will
Hi sir, Is this SQS is paid in aws ?
No free
@@Javatechie Thanks Basant for quick reply