Spring Cloud AWS | Amazon Simple Queue Service | SQS | Spring Boot | JavaTechie

แชร์
ฝัง
  • เผยแพร่เมื่อ 16 ก.ค. 2020
  • 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/Java-Techie-jt/spr...
    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
  • วิทยาศาสตร์และเทคโนโลยี

ความคิดเห็น • 133

  • @farrukhahmedsid
    @farrukhahmedsid 4 ปีที่แล้ว +1

    Very helpful tutorial..
    Nicely explained, clear voice and clear video.. thanks...

  • @surendram3612
    @surendram3612 3 ปีที่แล้ว +1

    Excellent explanation I am big fan of your teaching I learn a lot from your tech videos

  • @nriitg1672
    @nriitg1672 3 ปีที่แล้ว +1

    Wow nice job brother I have learnt many topics in a single day. Keep up good work.

  • @rakeshnarang8545
    @rakeshnarang8545 2 ปีที่แล้ว +1

    Thank you for this tutorial
    Very good and clean video

  • @Manuel-oe4gv
    @Manuel-oe4gv 3 ปีที่แล้ว +1

    Great job. God bless you.

  • @malleswaaraor9733
    @malleswaaraor9733 4 ปีที่แล้ว +5

    I am a big fan of your teaching style. Thanks for providing such a great content

  • @aminebouita7185
    @aminebouita7185 4 ปีที่แล้ว +3

    thanks for the tutorial go on go on

  • @MenukaIshan
    @MenukaIshan ปีที่แล้ว +1

    Good content. Thumbs up from Sri Lanka brother 😃

  • @maheshwaghmare2312
    @maheshwaghmare2312 2 หลายเดือนก่อน +1

    informative session

  • @sagarsri4143
    @sagarsri4143 4 ปีที่แล้ว +1

    Superb explanation👌

  • @ashok.9761
    @ashok.9761 4 ปีที่แล้ว +1

    Excellent video ...

  • @parthdeveloper2793
    @parthdeveloper2793 3 ปีที่แล้ว +1

    Highly recommended videos ✌️🙌
    Please publishing videos on cognito with spring boot.

  • @shirish2005
    @shirish2005 3 ปีที่แล้ว +1

    very nice . thanks

  • @1dagmawi
    @1dagmawi 10 หลายเดือนก่อน +3

    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

    • @Javatechie
      @Javatechie  10 หลายเดือนก่อน +1

      Thank you brother keep learning 😃

    • @1dagmawi
      @1dagmawi 10 หลายเดือนก่อน +1

      @@Javatechie yessir

  • @gouravkumar-or6jy
    @gouravkumar-or6jy ปีที่แล้ว +1

    Thanks sir 🙏

  • @gaurgovindsingh8085
    @gaurgovindsingh8085 2 ปีที่แล้ว +1

    Much appreciated. Your code helped.

  • @thatpanditTV
    @thatpanditTV 3 ปีที่แล้ว +2

    4k+ views and 0 dislikes. WOW. Keep it up.

  • @user-yx2zz1pk5j
    @user-yx2zz1pk5j 9 หลายเดือนก่อน +1

    Greate

  • @gam4524
    @gam4524 8 หลายเดือนก่อน

    should I write SqsListener in RestController class or can I write some class for it with deserialising to some Object?

  • @nikhithagoli9737
    @nikhithagoli9737 3 ปีที่แล้ว +1

    Hi ,
    can you please share a video to implement multiple @sqslisterners for a single sqs queue in spring boot

  • @infowizz3797
    @infowizz3797 ปีที่แล้ว +1

    you are too good

  • @SoumyaDassrd
    @SoumyaDassrd 2 ปีที่แล้ว +1

    Thanks bro..

  • @thisisnimish3thisisnimish39
    @thisisnimish3thisisnimish39 11 หลายเดือนก่อน

    if there are different nodes listening from the same queue will this work?

  • @matheuscardoso9844
    @matheuscardoso9844 3 ปีที่แล้ว +3

    Hi, I'm from Brazil and I really like the way you explain! Keep going

    • @Javatechie
      @Javatechie  3 ปีที่แล้ว

      Glad to hear this 🤗

  • @techieguru718
    @techieguru718 2 ปีที่แล้ว +3

    If anyone is using spring boot 2.5.* then execute below 3 classes
    @SpringBootApplication (exclude = {ContextStackAutoConfiguration.class, ContextInstanceDataAutoConfiguration.class, ContextRegionProviderAutoConfiguration.class})

  • @shashibhushan6623
    @shashibhushan6623 ปีที่แล้ว

    Hi Do you have demo on spring-boot Kinesis ?

  • @adrienmbiandji8282
    @adrienmbiandji8282 4 ปีที่แล้ว +4

    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

    • @Javatechie
      @Javatechie  4 ปีที่แล้ว

      Spring cloud stream already I explained but yes security context I need to check

    • @PracticeTech-rg7yh
      @PracticeTech-rg7yh 9 หลายเดือนก่อน

      ​@@Javatechiehi do you have additional tutorial implementing dlq and events related to this topic? Thank you

  • @malleswarrao3887
    @malleswarrao3887 หลายเดือนก่อน

    Hi Sir , do we have any session/course for Spring boot with Azure cloud computing

  • @JavaTechnicalKnowledge
    @JavaTechnicalKnowledge ปีที่แล้ว

    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.

  • @premraj.m
    @premraj.m 3 ปีที่แล้ว +1

    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

  • @srikanthdannarapu2419
    @srikanthdannarapu2419 4 ปีที่แล้ว +2

    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

    • @Javatechie
      @Javatechie  4 ปีที่แล้ว

      Yes free tire Srikanth , you can try this

  • @mustafakamalsirajudeen8133
    @mustafakamalsirajudeen8133 4 ปีที่แล้ว

    Please do video on Amazon SMS service as you said.

  • @hasyar706
    @hasyar706 4 ปีที่แล้ว +4

    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

    • @Javatechie
      @Javatechie  4 ปีที่แล้ว +3

      Sure I will try this 👍

  • @user-bs1xp7bh7l
    @user-bs1xp7bh7l 4 หลายเดือนก่อน

    can someone explain why @Primary anotation is used while declaring beans

  • @rajarajagopal7522
    @rajarajagopal7522 4 ปีที่แล้ว

    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.

  • @vasudhareddy31
    @vasudhareddy31 3 ปีที่แล้ว +1

    Thks good content.. really helpd..do sns & s3 bucket also..

  • @harshaghanta1
    @harshaghanta1 3 ปีที่แล้ว

    For some reason, the listener event is not firing? any ideas?

  • @VinuezaDario
    @VinuezaDario ปีที่แล้ว

    Hi, Can I conect Axon and Sqs?

  • @ManeeshKumar-nd8rg
    @ManeeshKumar-nd8rg ปีที่แล้ว

    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.

  • @veerendrashukla
    @veerendrashukla ปีที่แล้ว

    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?

  • @arindamdas6788
    @arindamdas6788 2 ปีที่แล้ว

    Nice concept and description.
    How ever this Template issue is still unresolved.
    'org.springframework.cloud.aws.messaging.core.QueueMessagingTemplate' that could not be found

  • @sriharshaakurathi7568
    @sriharshaakurathi7568 4 ปีที่แล้ว +2

    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.

    • @Javatechie
      @Javatechie  4 ปีที่แล้ว +1

      SNS is my next tutorial

    • @tejachowdary309
      @tejachowdary309 ปีที่แล้ว +1

      @@Javatechie SNS tutorial is on the list?

    • @Javatechie
      @Javatechie  ปีที่แล้ว

      No I haven't uploaded it yet . Will do soon

  • @rajarajagopal7522
    @rajarajagopal7522 4 ปีที่แล้ว

    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.

  • @supritavenkat3807
    @supritavenkat3807 8 หลายเดือนก่อน

    Can u plz provide a link where we can construct and send a JSON object to SQS queue with same configuration in java?

  • @nikitakhandelwal6865
    @nikitakhandelwal6865 ปีที่แล้ว

    Can plz make a video on the same thing but using producer consumer logic

  • @saikiran901
    @saikiran901 3 ปีที่แล้ว +1

    If we want to deploy in new region do we want to change yml file in jar ?
    Or any dynamic way to do that ?

    • @Javatechie
      @Javatechie  3 ปีที่แล้ว

      I believe Region is optional please do try once

  • @mallikarjunaathota2954
    @mallikarjunaathota2954 3 ปีที่แล้ว

    Hi ,I need FIFO example. is there any example?

  • @vijayarajualladi6523
    @vijayarajualladi6523 2 ปีที่แล้ว

    Only poll messages from SQS Queue. How we can do it?

  • @sairammanchala40
    @sairammanchala40 2 ปีที่แล้ว

    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?

    • @bahab.6038
      @bahab.6038 ปีที่แล้ว

      have you got knowledge regarded your question?

  • @arghyamitra3281
    @arghyamitra3281 4 ปีที่แล้ว +1

    Good learning , please do video on Spring boot - Lambda - dynamo dB

    • @Javatechie
      @Javatechie  4 ปีที่แล้ว

      With AWS lambda I will

  • @sureshgangavarapu7382
    @sureshgangavarapu7382 2 ปีที่แล้ว

    How is @sqsLisntener configured ?????, if anyone know please tell

  • @sureshmanne7245
    @sureshmanne7245 ปีที่แล้ว +1

    What's the difference b/w SNS & SES, both can send emails right?
    Do you have SES topic link available?

    • @Javatechie
      @Javatechie  ปีที่แล้ว

      Try to find out abbreviations of these 2 terms you will get it

  • @abhinandanjhansi5
    @abhinandanjhansi5 2 ปีที่แล้ว +1

    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

  • @VinuezaDario
    @VinuezaDario ปีที่แล้ว

    Ho, Can I conecto Axon and Sqs?

  • @vsingh-26
    @vsingh-26 9 หลายเดือนก่อน +1

    Is there any way to add multiple threads for the same listener, so that during load multiple messages are consumed in parallel.

    • @Javatechie
      @Javatechie  9 หลายเดือนก่อน

      Use ExecutorService

  • @abhishekwasave9010
    @abhishekwasave9010 2 ปีที่แล้ว +1

    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 ?

    • @Javatechie
      @Javatechie  2 ปีที่แล้ว

      No Abhishek no udemey course. Everything is there in my TH-cam please checkout my AWS playlist 😊.

  • @thesadanand6599
    @thesadanand6599 ปีที่แล้ว

    Hey Basant, Can you make one v on aws GLUE/spring... much needed I guess

  • @bharat_news433
    @bharat_news433 7 หลายเดือนก่อน +1

    @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...

    • @Javatechie
      @Javatechie  6 หลายเดือนก่อน +1

      Buddy i haven't tried that but will check and update

    • @bharat_news433
      @bharat_news433 6 หลายเดือนก่อน +1

      @@Javatechie ok I am waiting⏳

  • @mrinalinitarvekar4181
    @mrinalinitarvekar4181 2 ปีที่แล้ว +1

    Do we need user credentials for only consuming message from sqs?

    • @Javatechie
      @Javatechie  2 ปีที่แล้ว +1

      Credentials required to access any AWS service

  • @infosmart346
    @infosmart346 2 ปีที่แล้ว +1

    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?

    • @Javatechie
      @Javatechie  2 ปีที่แล้ว +1

      You can use dependency from my pom.xml mentioned over video description

    • @infosmart346
      @infosmart346 2 ปีที่แล้ว +1

      @@Javatechie Thank you

  • @saiprasanth159
    @saiprasanth159 4 ปีที่แล้ว +1

    very nice content, is it possible to achieve distributed messaging like kafka with different group ids in sqs

    • @Javatechie
      @Javatechie  4 ปีที่แล้ว +1

      Kafka am not sure I will check and update

  • @vijivenkat9414
    @vijivenkat9414 2 ปีที่แล้ว +1

    hi, am not getting the option of amazon web services in my eclipse while adding the dependencies.. can you help me for it..

    • @Javatechie
      @Javatechie  2 ปีที่แล้ว

      Please copy paste that dependency manually

  • @leochongsh
    @leochongsh ปีที่แล้ว +1

    If some error is thrown in the load message method, will the message be deleted in the queue?

  • @marcosradix1
    @marcosradix1 3 ปีที่แล้ว +1

    Is it possible to use more than one queue configuration in yml file?

    • @Javatechie
      @Javatechie  3 ปีที่แล้ว +1

      Yes we can configure many queue

  • @sagar1689
    @sagar1689 2 ปีที่แล้ว +1

    Great explanation and upto the point. Can we keep the secrets outside our code?

    • @Javatechie
      @Javatechie  2 ปีที่แล้ว

      Yes we should store it outside the code

  • @rajarajagopal7522
    @rajarajagopal7522 4 ปีที่แล้ว +1

    Hi Basant,
    Could you please reply to my question? I would like to continue the SQS example.
    Thanks,
    Raja Rajagopal

    • @Javatechie
      @Javatechie  4 ปีที่แล้ว

      Please tag your question

  • @jamshedhussain6621
    @jamshedhussain6621 3 ปีที่แล้ว +1

    In my appication.yml file end-point is showing as unknown property how to solve that plzz do reply..!!

    • @Javatechie
      @Javatechie  3 ปีที่แล้ว +1

      Please align it properly

  • @robgreen9479
    @robgreen9479 3 ปีที่แล้ว

    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

    • @Javatechie
      @Javatechie  3 ปีที่แล้ว

      Did you configure your client I'd and secret key and region properly ?

    • @vinay2841
      @vinay2841 2 ปีที่แล้ว

      @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
      }
      )

  • @ManishKumar-fi4ig
    @ManishKumar-fi4ig 2 ปีที่แล้ว +1

    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

    • @Javatechie
      @Javatechie  2 ปีที่แล้ว +1

      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 .

    • @ManishKumar-fi4ig
      @ManishKumar-fi4ig 2 ปีที่แล้ว

      @@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 ?

    • @ManishKumar-fi4ig
      @ManishKumar-fi4ig 2 ปีที่แล้ว

      @@Javatechie Request If you can include one small video on this series related to IAM

  • @AbhiRam-kz1ks
    @AbhiRam-kz1ks 2 ปีที่แล้ว +1

    I am interested in sns concept can you please prepare video on it

    • @Javatechie
      @Javatechie  2 ปีที่แล้ว

      It's already there please checkout my AWS playlist

  • @ashok.9761
    @ashok.9761 4 ปีที่แล้ว +1

    Can you make one video docker swam and dockerfile ..
    How to setup one app on that topics

    • @Javatechie
      @Javatechie  4 ปีที่แล้ว +1

      I will try this

    • @ashok.9761
      @ashok.9761 4 ปีที่แล้ว +1

      @@Javatechie thank you 😊

  • @ambidextrousTrades
    @ambidextrousTrades ปีที่แล้ว +1

    SqsListener is not working for me. I am using spring boot version 3.0.5.

    • @Javatechie
      @Javatechie  ปีที่แล้ว

      Spring boot 3.0 not sure what changes have been made. I will check and update you

    • @ambidextrousTrades
      @ambidextrousTrades ปีที่แล้ว +1

      @@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.

    • @Javatechie
      @Javatechie  ปีที่แล้ว

      @@ambidextrousTrades great 👍.

  • @siddarthakamble9166
    @siddarthakamble9166 4 ปีที่แล้ว

    Diff between rabbit mq and Kafka?

    • @mustafakamalsirajudeen8133
      @mustafakamalsirajudeen8133 4 ปีที่แล้ว

      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.

  • @mrvxkumar
    @mrvxkumar 4 ปีที่แล้ว +1

    Please make a video on java aws lambda.

    • @Javatechie
      @Javatechie  4 ปีที่แล้ว +1

      Yes you can find it in upcoming tutorial

  • @surendram3612
    @surendram3612 3 ปีที่แล้ว +1

    I am getting error when I connected AWS SQS FIFO QUEUE can you help why same code is not working for FIFO queues

    • @Javatechie
      @Javatechie  3 ปีที่แล้ว

      Did you pass your own secret key and access key

    • @surendram3612
      @surendram3612 3 ปีที่แล้ว

      @@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

    • @mallikarjunaathota2954
      @mallikarjunaathota2954 3 ปีที่แล้ว

      Hi , I need FIFO example. can you provide me the any site link?

  • @souvikc37
    @souvikc37 3 ปีที่แล้ว +1

    Yes interested for SNS

    • @Javatechie
      @Javatechie  3 ปีที่แล้ว +1

      Already uploaded

    • @souvikc37
      @souvikc37 3 ปีที่แล้ว

      Can you kindly make a tutorial on firebase integration with spring boot or Java?

  • @gauravkumardwivedi2290
    @gauravkumardwivedi2290 3 ปีที่แล้ว +1

    Hi Basant Is SQS same like Apache Kafka

    • @Javatechie
      @Javatechie  3 ปีที่แล้ว +1

      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

    • @gauravkumardwivedi2290
      @gauravkumardwivedi2290 3 ปีที่แล้ว +1

      @@Javatechie thanks

    • @gauravkumardwivedi2290
      @gauravkumardwivedi2290 3 ปีที่แล้ว +1

      Hi Basant could you make one spring boot video using SseEmitter it will be great help.

    • @Javatechie
      @Javatechie  3 ปีที่แล้ว +1

      Okay I will

  • @RaviVerma-bg6ul
    @RaviVerma-bg6ul 2 ปีที่แล้ว +1

    Hi sir, Is this SQS is paid in aws ?

    • @Javatechie
      @Javatechie  2 ปีที่แล้ว

      No free

    • @RaviVerma-bg6ul
      @RaviVerma-bg6ul 2 ปีที่แล้ว +1

      @@Javatechie Thanks Basant for quick reply