Udemy
Turn what you know into an opportunity and reach millions around the world.
Learn More
Your cart is empty.
Keep shopping
NestJS Microservices Course: Kafka, PostgreSQL & Drizzle ORM
New
100 students

NestJS Microservices Course: Kafka, PostgreSQL & Drizzle ORM

Build an event ticketing backend with NestJS microservices, Kafka, PostgreSQL, Drizzle ORM and Docker.
Last updated 11/2026
English

What you'll learn

  • Design and build an event-driven microservices backend with NestJS, from architecture to working Auth, Events, Tickets and Notification services
  • Connect independent services with Apache Kafka topics and run Kafka locally with Redpanda and Docker Compose
  • Build a type-safe PostgreSQL data layer with Drizzle ORM and share DTOs, interfaces and utilities through a custom internal library
  • Create an API Gateway with DTO validation, global exception filters and response interceptors, then cover your services with unit tests

Course content

5 sections • 15 lectures • 4h 37m total length
  • Course intro and EventFlow microservices architecture17:38

    Get a tour of EventFlow, the event and ticketing platform you build in this course, and see how its Auth, Events, Tickets and Notification microservices work together. This lecture explains the architecture, the tech stack (NestJS, Kafka, PostgreSQL, Drizzle ORM, Docker) and what you will build.

  • Project setup for the NestJS microservices monorepo11:21

    Set up the NestJS microservices monorepo for EventFlow. Learn how to structure the workspace, create the first applications and prepare a clean foundation for independent services.

  • Building a shared microservices library14:43

    Create a shared microservices library in NestJS to reuse DTOs, interfaces and utilities across every service, so your services stay consistent and avoid duplicated code.

  • Kafka configuration with Redpanda and NestJS24:42

    Configure Apache Kafka for NestJS microservices using Redpanda and Docker Compose. Set up topics, producers and consumers so your services can communicate asynchronously.

Requirements

  • Basic knowledge of TypeScript and JavaScript
  • Node.js and npm installed, plus Docker Desktop to run Kafka and PostgreSQL locally
  • Some familiarity with NestJS or REST APIs helps, but is not required

Description

Learn how to build a production-style microservices backend with NestJS, Kafka and PostgreSQL. In this hands-on course you build EventFlow, an event and ticketing platform made of independent Auth, Events, Tickets and Notification services that talk to each other through Apache Kafka. You start with the architecture and a clean NestJS monorepo, then create a shared library to reuse DTOs, interfaces and utilities across every service. Next you configure Kafka with Redpanda and Docker Compose, and set up a type-safe PostgreSQL data layer with Drizzle ORM.

From there you build the authentication service, add DTO validation, and create an API Gateway with global exception filters and response interceptors. You then build the Events and Tickets services, connect them with event-driven messaging, and add a Notification service that reacts to Kafka events. Along the way you write safe return types and unit tests, so your microservices stay reliable as they grow. By the end you understand how to design, build and test event-driven microservices in TypeScript.

This course is ideal for developers who know basic TypeScript or NestJS and want to move beyond a single monolith to a distributed architecture, using the same patterns that modern backend teams rely on to scale services independently. Topics covered: NestJS microservices, Apache Kafka, Redpanda, PostgreSQL, Drizzle ORM, API Gateway, event-driven architecture, DTO validation, Docker Compose and unit testing.

Who this course is for:

  • Backend developers who want to move from a monolith to a microservices architecture
  • NestJS and Node developers who want hands-on experience with Kafka and event-driven design
  • TypeScript developers preparing for backend or system design interviews