Spring Boot RabbitMQ | Publisher & Subscriber Example | AMQP | JavaTechie

แชร์
ฝัง
  • เผยแพร่เมื่อ 8 ก.พ. 2025
  • This tutorial will guide you how to use AMQP messaging via RabbitMQ in a Spring Boot application. Configure the Message Converters to switch from default Java deserialization to JSON
    #javatechie #RabbitMQ #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

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

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

    This video is life-saving and really appreciate your effort into it. Look forward for more content esp in Microservices communication with compensating transactions.

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

    2 chicken biriyani 999 , and 1 mutton biriyani 345 rs . costlier :) ..just kidding , but u r a gem in explaining Things with example /code.

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

    thank you so much, my friend! Explained everything simply! I couldn't figure it out before

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

    All your tutorials are awesome, fully functional, with source-code provided. I must say, this is the first channel that I have not only subscribed but pressed the bell-icon as well. 😀 Thanks.

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

      Thanks buddy 😌

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

    wow in one shot you explained end to end not only in the pictorial presentation but in code also cudo's

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

    great video with full explainatio , thank you for making such videos

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

    Very thankful for explaining in easy way with an example😍

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

    Very much useful. Never thought event driven architecture is as easy as this.

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

    crisp and clear! Amazing tutorial

  • @AbhishekGupta-qs9oy
    @AbhishekGupta-qs9oy 4 ปีที่แล้ว +2

    Thank you basant. Your explained topic really helpful for the viewers.

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

    I'm grateful to you, such a great knowledge your sharing ..THANKS

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

    Good one..happy to see 30 k subscribers. Great!

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

    Thank you so much brother for teaching us. It's my pleasure.You are Boss.

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

    Sir, Thanks for the great tutorial about rabbitmq & spring boot

  • @MuhammadRehan-lq1ii
    @MuhammadRehan-lq1ii 4 ปีที่แล้ว +2

    I have just implemented your code and worked great for me :) Thanks

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

    Thank you so much. Your contents are always helpful

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

    Thorough and simple explanation

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

    truly life-saving. Thank you

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

    Awesome Basant bhai...ur content is always unique...and in between u r talking about best practices & coding standard which is very helpful for beginner and mid level developer....keep it up

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

    Nicely explained with all required softwares

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

    Excellent, very clear and concise... Thanks

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

    Thank you so much for this wonderful tutorial!!!

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

    Hats off to you bro. You are a life saver. :)

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

    thank you, as always very clear and efficient

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

    great work sir...simple and clear

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

    Thanks for this masterpiece:) it really helped me to understand the architecture of Rabbit MQ.

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

    Your Explanation is Very Good Thanks You

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

    felt satisfied after watching this.

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

    This video lesson helped me a lot. Thank you sir...

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

    In this topic really help to me sir, thanks you sir 💐

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

    Nicely explained.. totally time saving tutorial.. thanks alot.

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

    Sweet, crispy, clear

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

    pretty straightforward. Thank you!

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

    Thank you sir ❤️ Your videos helps a lot

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

    Thank you for this great content and great channel.

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

    Thanks Basant for the tutorial. Its was awesome

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

    Excellent work sr, everything is clear

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

    As always, very helpful.

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

    Thank you so much to sharing you knowledge

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

    Only java techie is real🎉

  • @astn-el3iq
    @astn-el3iq 4 ปีที่แล้ว +2

    Thank you so much to sharing you knowledge, this video are helped me.

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

    Awesome to the point explanation

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

    very good explanation , Thanks a lot brother

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

    Amazing Explanation

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

    Thank you very much :) Liked and Subscribed :)

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

      Thanks buddy 😊

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

    What an amazing introduction!

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

    Thanks Bro for this info you're awesome

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

    kudos! Very well explained...

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

    That was excellent. Thank you so much for concise and precise explanation.

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

    Great work. Keep continue

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

    Very useful. Thanks Basant.

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

    Thanks for sharing ...really helpful..

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

    absolutely helpful. Thanks boss

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

    Thank you for the awsome content..................

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

    Thank you so much for Sharing..🙏🙏❤

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

    Thank youuuu

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

    Awesome Explanation !!

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

    Thanks for this wonderful tutorial

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

    Thank you good explanation

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

    The best explanation 🌟💯

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

    Great work! You're the best.

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

    Very well explained

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

    Lovely. Thank you

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

    Very helpful thank you.

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

    Great explanation boss

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

    ji you are awesome...great effort.. i dont miss your videos..i appreciate you for posting industry needed cutting edge technologies. Keep it up ji...Need complete application which covers text, drop down box, data picker using angular, rest, spring boot, spring cloud, Spring data JPA and MysQL. please post it asap ji..i really waiting for that.. thanks ji

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

    very useful .. great channel

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

      Thanks buddy 😊

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

      @@Javatechie
      hi
      why dont you add data structure and algorithms using java like stack queues linked list trees graphs .. internal details with core java

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

      It required enough amount of time to prepare PPT buddy . But no worries I am planning to start in upcoming session

  • @dilshand.5127
    @dilshand.5127 3 ปีที่แล้ว +1

    Beautifully explained and demo'd

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

    Using spring boot 3 w/ Java 17 you will need to implement serialization on the OrderStatus class for the order to get sent to the queue

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

    clear and concise

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

    You are just awesome man 👌

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

    Very useful video, thaanks a lot for sharing this. One doubt I have is if multiple consumers want to listen to same message which is published in one (same) queue, is there a way that they all can simultaneously listen that. Coz once the message is consumed by one listener it is no longer present in queue.

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

      Yes we can configure N number of consumer they all can listen to same channel at a time

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

      @@Javatechie thanks

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

    liked the video, but in real time generally we consume queue message from another microservice so it will be very good if you can explain the concept by having 2 microservices and
    i tried to publish the message to queue from another microservice and it is not getting published
    so could you please do a video by 2 taking 2 applications :)

  • @sultan.travels
    @sultan.travels 4 ปีที่แล้ว +1

    Hi Basant. Thanks for your great video tutorials! Please make tutorials for Spring boot+Camunda BPM

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

    Awesome explanation!!!... Keep it up.... A small doubt, the places where you have used ROUTING KEY, I think it should be BINDING KEY instead. ROUTING KEY is an attribute of the message from the PRODUCER which tells the Exchange how the messages should be routed to the queues.

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

      You can specify any name

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

      @@Javatechie Thank you

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

      Hi @@Javatechie , how can we make sure that message publish in a queue is get consume by 4or5 micro-services before it get deleted form queue!!

  • @YogeshKumar-hl8cg
    @YogeshKumar-hl8cg ปีที่แล้ว +1

    Thanks for sharing

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

    Great one!

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

    Thanks for sharing such a great content..

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

    Awesome Tutorial as always, If I may ask, there is no setting somewhere that tells the connection between the Producer/Consumer and the RabbitMq broker.

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

      Hello buddy not getting you

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

      @@Javatechie, I was wondering how the app knows how to connect to the RabbitMq server, but I guess all settings are set to default connections without the need to apply credentials.

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

      @@motolola yes default configuration and we are also defining exchange right

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

    Awesome video .. very good

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

    Hi, thanks for the nice video, I like your all videos and you provide us complex things as a simple way so we can understand it easily. I have a request to you, could you please make a video in RabbitMQ with with stream cloud using @StreamListener using topic exchange and using spring boot. it is very less video available in TH-cam also?

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

      Hi Deepak Thanks, definitely I will do this .

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

    Thanks dude!

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

    simple and best

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

    Thank you bro.

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

    Nice explain 👍👍👍👍

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

    Very good video

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

    Useful

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

    Thanks for this video and your chicken biriyani is so costly.... 😉

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

      Didn't get you , what chicken biryani ?

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

      @@Javatechie in request body u written chicken biriyani @ Rs 999

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

      Ha ha 😂🙂😂.

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

    Hi Basant,
    This vedio looks great.Thanks for this great vedio.
    Can u pls make a vedio regarding Keyclock integration with rest api. With various role access.

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

    Thank you Sir..

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

    Nice tutorial. Thanks

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

    Very nice video. Your example is easy to understand. Could you tell me what are the benefits we may get if I write the consumer in separate application ?

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

      Hi Kayesh ,
      I would strongly suggest you to first understand what is the need of messaging system

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

      @@Javatechie as far I know messaging system helps communicating with different types of apps and it also makes system asynchronous. could you tell me any other benefits ?

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

      Correct if it is different type of application obviously consumer should be one separate application right

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

    Good video man.

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

    Nice video ❤️

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

    Thanks for video, can you makw video on how we give custom names to Consumers how can we handle timeouts.
    How can we use rabbitMQ using docker ?

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

    Thanks for the great tutorial bhaiya, I have one question I'm confused how rabbitmq dashboard created all queue and exchange which we defined in our project/code though we didn't made any connection b/w our running rabbit mq server and project like in application properties files or etc. or its just dependency magic of spring-rabbitmq.

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

      Yes spring auto configuration will take max of things.apart from that we also giving exchange , port , and host and topic information in code .

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

    Hi, thank you for the well-explained video. Just have a question -
    how it's detecting the RabbitMQ on our computer? We didn't config anything to detect it, right? :/
    for example, this is our rabbitMQ running at - localhost:15672/ or port:15672..?
    What to do if we want to use rabbitMQ running on another host?
    Thank you.

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

      In your properties file you can set
      spring.rabbitmq.host=x.x.x.x
      You can also set other configs like port, username, password, cache connection mode etc

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

    I have a question. Where did you configure rabbitmq host, port details. How it connected to ur local rabbitmq server

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

    Hi, it is amazed, how are you binding to rabbitmq server running in your local to code. It will be great if you shown the host and port configuration

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

      Everything I explained in code only please check my configuration class

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

    Is it mandatory to map routing key with queue programmatically ? Cant we do directly in rabbitmq ?