Mastering Kafka E2E Integration Testing in Spring Boot with TestContainers | JavaTechie
HTML-код
- Опубликовано: 9 сен 2024
- #JavaTechie #SpringBoot #Kafka #IntegrationTest #Testcontainers
In this tutorial, we will walk through the process of creating an integration test for a Kafka-based application using Test Containers. Test Containers is a powerful tool for running Docker containers in JUnit tests, making it easy to set up and tear down dependencies like Kafka for integration testing.
👉 Write Integration Test for Producer application
👉 Write Integration Test for Consumer application
Spring boot Integration test using TestContainers
• Spring Boot 3 Integrat...
Spring boot microservice Premium course lunched with 70% off 🚀 🚀
Hurry-up & Register today itself!
COURSE LINK : javatechie5246...
PROMO CODE : JAVATECHIE50
OR use Javatechie APP
Download the JavaTechie app on your iOS or Android device from the App Store or Google Play Store.
Find the links below :
Android 🌐 : play.google.co...
IOS 🌐 : apps.apple.com...
GitHub:
github.com/Jav...
Blogs:
github.com/Jav...
Facebook:
/ javatechie
Join this channel to get access to perks:
www.youtube.co...
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
Very informative video on "Kafka Integration Testing". Appreciate your efforts, Basant. God bless you. 🙂
bro you are the best. I learned many things with youand all worked perfectly
I am waiting since long time. Thank you sir
Great tutorials so far... If you can also cover topics like Avro serialization/deserialization and Schema Registry, That would be great.
I will do that buddy
Thank you.
Thank you so much sir 🙏
Nice video, thanks for valuable information ❤️
i have an error running the test : /tmp/testcontainers_start.sh: line 3: /etc/kafka/docker/run: No such file or directory
Awesome ❤😊
Nice concept
by using auto-offset-reset: latest my test failed because listener did not pick up the message. I have to use earlist for it. could you tell me why I have this issue?
Long awaited....❤
Thank you so much 😊 but I am wondering that How did you watch this video buddy? I haven't made it public yet ?
@@Javatechie just saw the notification and it made me happy .Reserved it for my weekend ......not yet seen .
💯👍
It's again a great work. Just one question, how to validate the consumer has received the data. I can see in the log but need to call the consumer method for actual assertion.
Consumer method type is void so just change its return type and validate it otherwise store events in some db and validate again it depends on the use case how you want to play with events
Great content as always. I have a question pls: can Kafka be used to schedule recurring events let's say, hourly, daily, weekly, or even monthly just like the way these auto monthly subscription work.
I've heard about cron jobs, but can Kafka be used for the same purpose?
Yes but you must need to use the cron job to schedule this automation task using Kafka
Will it work if system don’t have docker installed?
No it won’t