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
This video is life-saving and really appreciate your effort into it. Look forward for more content esp in Microservices communication with compensating transactions.
2 chicken biriyani 999 , and 1 mutton biriyani 345 rs . costlier :) ..just kidding , but u r a gem in explaining Things with example /code.
thank you so much, my friend! Explained everything simply! I couldn't figure it out before
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.
Thanks buddy 😌
wow in one shot you explained end to end not only in the pictorial presentation but in code also cudo's
great video with full explainatio , thank you for making such videos
Very thankful for explaining in easy way with an example😍
Very much useful. Never thought event driven architecture is as easy as this.
crisp and clear! Amazing tutorial
Thank you basant. Your explained topic really helpful for the viewers.
I'm grateful to you, such a great knowledge your sharing ..THANKS
Good one..happy to see 30 k subscribers. Great!
Thank you so much brother for teaching us. It's my pleasure.You are Boss.
Sir, Thanks for the great tutorial about rabbitmq & spring boot
I have just implemented your code and worked great for me :) Thanks
Thank you so much. Your contents are always helpful
Thorough and simple explanation
truly life-saving. Thank you
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
Nicely explained with all required softwares
Excellent, very clear and concise... Thanks
Thank you so much for this wonderful tutorial!!!
Hats off to you bro. You are a life saver. :)
thank you, as always very clear and efficient
great work sir...simple and clear
Thanks for this masterpiece:) it really helped me to understand the architecture of Rabbit MQ.
Your Explanation is Very Good Thanks You
felt satisfied after watching this.
This video lesson helped me a lot. Thank you sir...
In this topic really help to me sir, thanks you sir 💐
Nicely explained.. totally time saving tutorial.. thanks alot.
Sweet, crispy, clear
pretty straightforward. Thank you!
Thank you sir ❤️ Your videos helps a lot
Thank you for this great content and great channel.
Thanks Basant for the tutorial. Its was awesome
Excellent work sr, everything is clear
As always, very helpful.
Thank you so much to sharing you knowledge
Only java techie is real🎉
Thank you so much to sharing you knowledge, this video are helped me.
Awesome to the point explanation
very good explanation , Thanks a lot brother
Amazing Explanation
Thank you very much :) Liked and Subscribed :)
Thanks buddy 😊
What an amazing introduction!
Thanks Bro for this info you're awesome
kudos! Very well explained...
That was excellent. Thank you so much for concise and precise explanation.
Great work. Keep continue
Very useful. Thanks Basant.
Thanks for sharing ...really helpful..
absolutely helpful. Thanks boss
Thank you for the awsome content..................
Thank you so much for Sharing..🙏🙏❤
Thank youuuu
Awesome Explanation !!
Thanks for this wonderful tutorial
Thank you good explanation
The best explanation 🌟💯
Great work! You're the best.
Very well explained
Lovely. Thank you
Very helpful thank you.
Great explanation boss
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
very useful .. great channel
Thanks buddy 😊
@@Javatechie
hi
why dont you add data structure and algorithms using java like stack queues linked list trees graphs .. internal details with core java
It required enough amount of time to prepare PPT buddy . But no worries I am planning to start in upcoming session
Beautifully explained and demo'd
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
clear and concise
You are just awesome man 👌
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.
Yes we can configure N number of consumer they all can listen to same channel at a time
@@Javatechie thanks
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 :)
Hi Basant. Thanks for your great video tutorials! Please make tutorials for Spring boot+Camunda BPM
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.
You can specify any name
@@Javatechie Thank you
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!!
Thanks for sharing
Great one!
Thanks for sharing such a great content..
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.
Hello buddy not getting you
@@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.
@@motolola yes default configuration and we are also defining exchange right
Awesome video .. very good
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?
Hi Deepak Thanks, definitely I will do this .
Thanks dude!
simple and best
Thank you bro.
Nice explain 👍👍👍👍
Very good video
Useful
Thanks for this video and your chicken biriyani is so costly.... 😉
Didn't get you , what chicken biryani ?
@@Javatechie in request body u written chicken biriyani @ Rs 999
Ha ha 😂🙂😂.
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.
Okay I'll do
Thank you Sir..
Nice tutorial. Thanks
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 ?
Hi Kayesh ,
I would strongly suggest you to first understand what is the need of messaging system
@@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 ?
Correct if it is different type of application obviously consumer should be one separate application right
Good video man.
Nice video ❤️
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 ?
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.
Yes spring auto configuration will take max of things.apart from that we also giving exchange , port , and host and topic information in code .
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.
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
I have a question. Where did you configure rabbitmq host, port details. How it connected to ur local rabbitmq server
Check my config class
@@Javatechie which is not appear in video
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
Everything I explained in code only please check my configuration class
Is it mandatory to map routing key with queue programmatically ? Cant we do directly in rabbitmq ?