Загрузка...

🚀 Spring Boot + Kafka Streams Application – Full Setup, Design & Testing Guide! 🎯

In this video, we walk through the complete structure and design of a real-world Spring Boot application using Kafka Streams for processing visit events in Lille City 🗺️.

💡 What you'll learn:
📦 Clean and scalable package structure for Kafka Streams in Spring Boot
🔁 How to implement and wire a Kafka Streams Topology
🛠️ Create a custom Serde class for VisitStatus JSON serialization
💼 Extract business logic into Service classes and helpers
✅ Best practices: keeping configuration separate from service startup
🧪 Unit testing with JUnit 5 and @ExtendWith(MockitoExtension.class)
🧯 Fixing common test issues like NoSuchMethodError and missing artifacts
🔍 When and why to annotate your test classes (@SpringBootTest, @ExtendWith, etc.)
📃 Writing helper classes for parsing and validation of time ranges

🧰 Tech stack:
Java 🧑‍💻
Spring Boot ☕
Apache Kafka + Kafka Streams 📨
JUnit 5 ✅
Mockito 🕵️
IntelliJ IDEA 💻

✨ Whether you're building a real-time streaming system, preparing for an interview, or trying to level up your Spring Boot microservices—this guide covers both the theory and the code.

👍 Don't forget to Like, Comment, and Subscribe for more Java & Spring content!

🔗 Related GitHub repo & resources:
https://github.com/vinny59200/kstream-lille-city-tour

#KafkaStreams #SpringBoot #JavaDeveloper #Microservices #Kafka #ApacheKafka #JUnit5 #Mockito #SoftwareArchitecture #CleanCode #RealTimeData #SpringDev #StreamingData #SerDe #KafkaTopology #CodingBestPractices #SpringTesting #devlife

00:00 splash
00:11 purpose
02:50 topology
06:38 KStream
07:43 KTable
08:59 Serialization
09:59 docker compose file
10:22 code
12:10 demo: run and check in kafka UI
14:01 test and coverage
15:12 closing
15:27 CTA

Sign up to the newsletter: https://blog.vvauban.com/signup

Видео 🚀 Spring Boot + Kafka Streams Application – Full Setup, Design & Testing Guide! 🎯 канала Vincent Vauban
Яндекс.Метрика
Все заметки Новая заметка Страницу в заметки
Страницу в закладки Мои закладки
На информационно-развлекательном портале SALDA.WS применяются cookie-файлы. Нажимая кнопку Принять, вы подтверждаете свое согласие на их использование.
О CookiesНапомнить позжеПринять