Running User & Notification Services with Kafka in Java

🚀 Day 39 – Java Backend Journey | Running User & Notification Services Together 🔹 What I practiced today Today I worked on running multiple microservices together, specifically the User Service and Notification Service, and verified their communication using Kafka. 🔹 What I implemented ✔ Started both services on different ports User Service → port 9090 Notification Service → port 9091 ✔ Verified Kafka-based communication User Service → Kafka → Notification Service • User Service produces UserCreated event • Notification Service consumes the event • Notification is triggered 🔹 What I observed • When a user is created → event is published • Notification service receives the event instantly • Services work independently but communicate via Kafka 🔹 What I learned • How to run multiple services simultaneously • Importance of port configuration • How microservices interact in real-time • Practical understanding of event-driven communication 🔹 Why this is important ✔ Demonstrates real microservices architecture ✔ Shows decoupled communication ✔ Helps in building scalable systems ✔ Common in real-world backend projects 🔹 Key takeaway Running multiple services together helped me understand how independent microservices collaborate using events, forming a complete backend system. 📌 Next step: Add API Gateway for centralized routing. #Java #SpringBoot #Microservices #Kafka #BackendDevelopment #EventDrivenArchitecture #SoftwareEngineering #LearningInPublic #JavaDeveloper #100DaysOfCode

To view or add a comment, sign in

Explore content categories