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

КОМЕНТАРІ • 134

  • @1dagmawi
    @1dagmawi 11 місяців тому +4

    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  11 місяців тому +1

      Thank you brother keep learning 😃

    • @1dagmawi
      @1dagmawi 11 місяців тому +1

      @@Javatechie yessir

  • @malleswaaraor9733
    @malleswaaraor9733 4 роки тому +5

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

  • @surendram3612
    @surendram3612 3 роки тому +1

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

  • @parthdeveloper2793
    @parthdeveloper2793 3 роки тому +1

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

  • @nriitg1672
    @nriitg1672 3 роки тому +1

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

  • @MenukaIshan
    @MenukaIshan Рік тому +1

    Good content. Thumbs up from Sri Lanka brother 😃

  • @maheshwaghmare2312
    @maheshwaghmare2312 4 місяці тому +1

    informative session

  • @thatpanditTV
    @thatpanditTV 3 роки тому +2

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

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

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

  • @farrukhahmedsid
    @farrukhahmedsid 4 роки тому +1

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

  • @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 11 місяців тому

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

  • @rakeshnarang8545
    @rakeshnarang8545 2 роки тому +1

    Thank you for this tutorial
    Very good and clean video

  • @aminebouita7185
    @aminebouita7185 4 роки тому +3

    thanks for the tutorial go on go on

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

  • @nikhithagoli9737
    @nikhithagoli9737 3 роки тому +1

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

  • @Manuel-oe4gv
    @Manuel-oe4gv 3 роки тому +1

    Great job. God bless you.

  • @matheuscardoso9844
    @matheuscardoso9844 3 роки тому +3

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

  • @sagarsri4143
    @sagarsri4143 4 роки тому +1

    Superb explanation👌

  • @vasudhareddy31
    @vasudhareddy31 3 роки тому +1

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

  • @user-yx2zz1pk5j
    @user-yx2zz1pk5j 10 місяців тому +1

    Greate

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

  • @ashok.9761
    @ashok.9761 4 роки тому +1

    Excellent video ...

  • @shirish2005
    @shirish2005 3 роки тому +1

    very nice . thanks

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

  • @nikitakhandelwal6865
    @nikitakhandelwal6865 Рік тому

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

  • @arghyamitra3281
    @arghyamitra3281 4 роки тому +1

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

  • @gaurgovindsingh8085
    @gaurgovindsingh8085 2 роки тому +1

    Much appreciated. Your code helped.

  • @gam4524
    @gam4524 9 місяців тому

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

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

  • @infowizz3797
    @infowizz3797 Рік тому +1

    you are too good

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

  • @thesadanand6599
    @thesadanand6599 Рік тому

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

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

  • @sagar1689
    @sagar1689 3 роки тому +1

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

    • @Javatechie
      @Javatechie  3 роки тому

      Yes we should store it outside the code

  • @vsingh-26
    @vsingh-26 11 місяців тому +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  11 місяців тому

      Use ExecutorService

  • @user-bs1xp7bh7l
    @user-bs1xp7bh7l 6 місяців тому

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

  • @gouravkumar-or6jy
    @gouravkumar-or6jy Рік тому +1

    Thanks sir 🙏

  • @malleswarrao3887
    @malleswarrao3887 3 місяці тому

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

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

  • @supritavenkat3807
    @supritavenkat3807 10 місяців тому

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

  • @shashibhushan6623
    @shashibhushan6623 Рік тому

    Hi Do you have demo on spring-boot Kinesis ?

  • @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 UA-cam please checkout my AWS playlist 😊.

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

  • @thisisnimish3thisisnimish39

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

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

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

  • @bharat_news433
    @bharat_news433 9 місяців тому +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  8 місяців тому +1

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

    • @bharat_news433
      @bharat_news433 8 місяців тому +1

      @@Javatechie ok I am waiting⏳

  • @vijayraj0502
    @vijayraj0502 2 роки тому

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

  • @mustafakamalsirajudeen8133
    @mustafakamalsirajudeen8133 4 роки тому

    Please do video on Amazon SMS service as you said.

  • @SoumyaDassrd
    @SoumyaDassrd 2 роки тому +1

    Thanks bro..

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

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

  • @harshaghanta1
    @harshaghanta1 3 роки тому

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

  • @ashok.9761
    @ashok.9761 4 роки тому +1

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

  • @leochongsh
    @leochongsh Рік тому +1

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

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

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

  • @sureshgangavarapu7382
    @sureshgangavarapu7382 2 роки тому

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

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

  • @VinuezaDario
    @VinuezaDario 2 роки тому

    Hi, Can I conect Axon and Sqs?

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

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

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

  • @rajarajagopal7522
    @rajarajagopal7522 4 роки тому +1

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

  • @VinuezaDario
    @VinuezaDario 2 роки тому

    Ho, Can I conecto Axon and Sqs?

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

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

  • @mrvxkumar
    @mrvxkumar 4 роки тому +1

    Please make a video on java aws lambda.

    • @Javatechie
      @Javatechie  4 роки тому +1

      Yes you can find it in upcoming tutorial

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

  • @mallikarjunaathota2954
    @mallikarjunaathota2954 3 роки тому

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

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

    • @malikisdon
      @malikisdon 15 днів тому +1

      use AWS Secret Manager

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

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

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

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

  • @gauravkumardwivedi2290
    @gauravkumardwivedi2290 4 роки тому +1

    Hi Basant Is SQS same like Apache Kafka

    • @Javatechie
      @Javatechie  4 роки тому +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 4 роки тому +1

      @@Javatechie thanks

    • @gauravkumardwivedi2290
      @gauravkumardwivedi2290 4 роки тому +1

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

    • @Javatechie
      @Javatechie  4 роки тому +1

      Okay I will

  • @RaviVerma-bg6ul
    @RaviVerma-bg6ul 2 роки тому +1

    Hi sir, Is this SQS is paid in aws ?