
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.
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.
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.
Configure Apache Kafka for NestJS microservices using Redpanda and Docker Compose. Set up topics, producers and consumers so your services can communicate asynchronously.
Set up PostgreSQL with Drizzle ORM for a type-safe data layer. Define your schema, connect the database to your NestJS services and prepare it for the Auth and Events services.
Build the authentication microservice in NestJS. Implement the Auth service logic, connect it to PostgreSQL and expose it through Kafka-based communication between services.
Add DTO validation across your NestJS microservices. Validate incoming data consistently so every service rejects bad input before it reaches your business logic.
Build the API Gateway as the central entry point of your microservices backend. Add global exception filters and response interceptors for consistent errors and API responses.
Build the Events service for EventFlow. Create the event model, business logic and Kafka message handlers that let other services work with event data.
Expose the Events service through the API Gateway. Add the gateway routes and connect HTTP requests to your Kafka-based Events microservice.
Build the Tickets service for EventFlow. Design ticket logic, store tickets in PostgreSQL with Drizzle ORM and connect the service to the rest of the system with Kafka.
Finish the Tickets service and write tests for it. Complete the remaining ticket features and verify that your microservice behaves correctly.
Build the Notification service that reacts to Kafka events. Consume messages from other services and trigger notifications in an event-driven workflow.
Add safe return types to your NestJS microservices. Make service responses predictable and type-safe so errors are handled explicitly across services.
Write unit tests for your NestJS microservices. Test services and handlers in isolation so your event-driven backend stays reliable as it grows.
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.