Udemy
    •  
    •  
    •  
    •  
    •  
    •  
    •  
    •  
Turn what you know into an opportunity and reach millions around the world.
Learn More
Your cart is empty.
Keep shopping
NestJs with Kafka Integration - Build Microservices Part -01
Rating: 3.7 out of 5(2 ratings)
21 students

NestJs with Kafka Integration - Build Microservices Part -01

Build real-world microservices with NestJS & Kafka — event-driven messaging, Docker, Prisma & PostgreSQL
Created byHaider Malik
Last updated 1/2026
English
English [Auto],

What you'll learn

  • Build real-world microservices in NestJS using Kafka for event-driven communication between services.
  • Set up Kafka with Docker, create topics, producers, and consumers, and debug message flow like a pro.
  • Design and implement message contracts, event schemas, and reliable inter-service communication.
  • Build Product and Order microservices that react to Kafka events using Postgres & Prisma.

Course content

6 sections93 lectures4h 56m total length
  • Welcome to the Course4:07

    Design, build, and scale an enterprise-level event-driven microservices system using NestJS, Kafka, Docker, and Postgres, learning producers, consumers, DLQ, retries, and API gateway patterns.

  • Course Roadmap and Architecture Overview7:45
  • Installing Tools2:46
  • Download Source Code1:31

    In this lecture, you’ll learn how to download and use the complete course source code.

    Each milestone of the project is stored in a separate Git branch, so you can jump to any stage during the course.

    Repository link:
    https://github.com/HaiderMalik12/nestjs-with-kafka-build-microservices

    Steps include:

    • how to download the repo
    • switching between branches
    • running each version
    • matching branches to lectures

    This makes it easy to review and follow along — even if you join later or revisit topics.

Requirements

  • Basic understanding of JavaScript or TypeScript
  • Prior exposure to Node.js or backend development helps
  • Docker installed (for Kafka setup)
  • Curiosity to learn event-driven systems

Description

Many backend developers struggle with:

• tightly-coupled REST APIs that don’t scale well
• complex inter-service communication
• confusion around Kafka concepts and workflows
• a lack of real-world implementation examples
• uncertainty about how microservices work together in production
• theory-heavy tutorials that skip practical coding

Kafka often feels powerful — but intimidating and abstract.

This course turns it into something clear, approachable, and hands-on.


This course solves those challenges by:

• teaching Kafka fundamentals in plain language
• using real diagrams and hands-on demos
• connecting Kafka directly to NestJS microservices
• guiding you through producers, consumers & messaging
• showing real event contracts & naming conventions
• building Product & Order services together
• saving data using PostgreSQL + Prisma
• testing & debugging event-driven flows step-by-step


By the end of this course, you will:

Understand event-driven architecture
Build real microservices with Kafka + NestJS
Gain confidence working with distributed systems
Add in-demand backend engineering skills to your resume
Learn tools used in industry — Docker, Prisma, PostgreSQL
Be able to design scalable, loosely-coupled systems
Have real project code you can reference or extend


Most importantly:

Kafka will finally “make sense” —
and you’ll be able to apply it in real-world backend projects.


So you don’t just learn Kafka —
you use it to build a working microservices system.


Event-driven architecture is one of the biggest shifts happening in backend engineering — and Kafka is at the heart of it. In this hands-on course, you will learn how to integrate Kafka with NestJS to build powerful, scalable, production-ready microservices step-by-step.

We start from the very beginning: understanding Kafka concepts such as topics, partitions, replication, and consumer groups. You will run Kafka locally using Docker, create topics, and publish and consume events so you fully understand how messaging works before writing any application code.

Then we move into real development. You’ll build multiple NestJS microservices that communicate through Kafka. You will create producers, consumers, shared message contracts, and event-driven workflows. Along the way, you’ll learn best practices such as message naming, debugging techniques, consumer groups, and application structure.

Next, we build two real-world services — a Product Service and an Order Service — backed by PostgreSQL + Prisma. You’ll emit and consume events like product.created and order.created, showing you how real microservices collaborate through Kafka.

By the end of this course, you’ll not only know how to use Kafka with NestJS — you’ll have built a complete event-driven backend that you can apply to real systems such as e-commerce, fintech, delivery platforms, SaaS, and more.

This course is perfect for backend developers who want to level up from REST APIs to distributed systems — with simple explanations and practical coding every step of the way.

Who this course is for:

  • This course is designed for backend developers, Node.js / NestJS engineers, and software developers who want to learn Kafka-powered microservices the practical way.
  • It’s also ideal for anyone who wants to understand event-driven architecture, message brokers, and scalable backend systems through real-world, hands-on projects.
  • If you want to upgrade from REST-only apps to distributed, production-ready systems — this course is for you.