🔥 Supercharge your NestJS Microservices with Apache Kafka — the ultimate solution for real-time data streaming and message-based architecture! In this video, you'll learn how to seamlessly integrate Kafka with NestJS, build powerful event-driven systems, and scale like a pro.
📌 What You'll Learn:
✅ Why Kafka is perfect for distributed microservices
✅ How to set up a Kafka broker with Docker
✅ Connecting a NestJS microservice to Kafka
✅ Producing and consuming Kafka messages
✅ Handling events and message patterns
✅ Real-world examples of event-driven architecture
This step-by-step tutorial is ideal for both NestJS beginners and advanced developers looking to build highly scalable, fault-tolerant systems.
📖 Chapters
00:00 Intro
00:29 Microservice Architecture
02:34 Creating The Monorepo
03:28 API Gateway
07:10 Setup Kafka in Docker
10:36 Order Service Subscribing to a kafka Topic
17:30 Order Service Emitting Events to kafka broker
19:23 Payment Service Subscribe To Kafka Topic
22:26 Payment Service Emitting Events to kafka broker
24:05 Notification Service Subscribes To Two kafka Topics Simultaneously
27:43 Fixing Some Bugs
28:37 Kafka Consumer Groups: Scaling Your Services Without Extra Work
31:27 Outro
💖 Become a member to support me: https://www.youtube.com/channel/UCTKSxERKbrpQOTa7QjDPjZg/join