Course Overview
Master the art of building scalable, distributed microservices with NestJS by developing a fully functional job engine from the ground up. This course is designed to teach you NestJS microservices the right way, covering everything from architecture and design to deployment and scaling in production.
You’ll start by setting up a monorepo with Nx, allowing you to manage multiple services within a single codebase efficiently. Using gRPC as the transport layer, you'll enable high-performance, low-latency communication between services. The course dives into Apache Pulsar, a powerful distributed messaging system, that allows us to add multiple consumers to a shared queue & achieve scale. You'll also expose a GraphQL API, providing a flexible and efficient way to interact with your microservices.
Security is a core focus, and you'll implement JWT-based authentication with secure, HTTP-only cookies. Throughout the course, everything is built using object-oriented design principles, ensuring a clean, modular, and reusable codebase that follows DRY (Don’t Repeat Yourself) principles. This makes your codebase more maintainable as it scales.
You'll also optimize your Docker setup, using Nx libraries with separate package.json files for better dependency management. Horizontal scaling techniques will ensure your services can handle increasing workloads efficiently. As your job engine matures, you'll implement job state tracking, allowing you to monitor job progress.
For database management, you’ll use Prisma ORM and Drizzle ORM with PostgreSQL, ensuring type safety, migrations, and optimized queries. Finally, you’ll deploy everything to Kubernetes, taking your microservices to production with AWS, a custom domain, and SSL encryption.
By the end of this course, you'll have a fully operational distributed job engine with robust state tracking and the expertise to design, develop, and deploy scalable NestJS microservices in real-world production environments.
FAQ
FAQ area empty
Course curriculum
Chương 1 Introduction 10 bài · 42 phút
- Introduction Học thử 3:39
- System Architecture Học thử 6:51
- Prerequisites Học thử 1:35
- Resources Học thử 1:07
-
GitHub Repository
-
Nx Bug
- Nx Monorepo Setup - Part 1 Học thử 9:55
-
Nx Monorepo Setup - Part 2 8:18
- GitHub Actions CI Học thử 10:39
-
Course Updates
Chương 2 Users 5 bài · 1 giờ 2 phút
- Prisma Schema Học thử 12:58
-
Nx Prisma Targets 12:42
-
GraphQL & Nx Libs - Part 1 9:21
-
GraphQL & Nx Libs - Part 2 10:44
-
Users Mutation & Query 16:10
Chương 3 Cleanup 4 bài · 16 phút
-
Commit Hooks 6:44
-
Unit Tests 5:04
-
Config Module 2:33
-
Nx Options 1:14
Chương 4 Authentication 9 bài · 55 phút
-
NestJS Generators
-
JWT Module 7:33
-
Config Cleanup 2:33
-
User Verification 12:49
-
JWT Expiration
-
Sign JWT Cookie 13:37
-
JWT Strategy 14:31
-
User Parameter Decorator 2:56
-
Auth Playground Settings 0:42
Chương 5 Jobs 5 bài · 39 phút
-
Generate Application 5:25
-
Job Decorator 9:16
-
Discovery Module 7:24
-
Jobs Resolver 16:09
-
Jobs Playground Settings 0:27
Chương 6 GRPC Transport 6 bài · 57 phút
-
Auth Proto 7:46
-
TS Proto 13:21
-
GRPC Server 10:07
-
Auth Controller & Client 7:31
-
GRPC GQL Auth Guard 11:07
-
GRPC Auth Strategy 6:44
Chương 7 Pulsar Job Executor 7 bài · 1 giờ 17 phút
-
Pulsar Client 12:19
-
Abstract Job Producer 16:50
-
Abstract Consumer 10:44
-
Job Executor 11:48
-
JSON GraphQL Scalar 4:48
-
Message Serialization & Error Handling 13:31
-
Job Validation 7:15
Chương 8 Message Batching 2 bài · 25 phút
-
Pulsar Batch Producer 7:51
-
Backlog Test Script 16:49
Chương 9 Dockerization 9 bài · 1 giờ 26 phút
-
NPM Workspaces 11:24
-
New Libraries 8:33
-
Library Dependencies 8:19
-
Library Webpack 8:17
-
Update Applications 9:15
-
Module Alias 9:09
-
Jobs Dockerfile 13:34
-
Finish Dockerfiles 7:49
-
Common Webpack 9:30
Chương 10 Logging 3 bài · 26 phút
-
Pino Logger 9:15
-
GraphQL Logger 8:06
-
GRPC Logger 8:47
Chương 11 Kubernetes 16 bài · 2 giờ 6 phút
-
Elastic Container Registry 4:16
-
GitHub Action ECR 14:05
-
Minikube 3:30
-
Update Prettier 1:24
-
Create Helm Chart 4:15
-
Jobs Deployment 12:17
-
Registry Creds Addon 6:35
-
Pulsar & Postgres 12:09
-
Environment Variables 9:21
-
Prisma Debian 2:26
-
Executor & Auth Deployment 12:41
-
Auth gRPC URL 2:00
-
Services 9:22
-
Minikube Service 6:55
-
Prisma Migrations 9:31
-
Job Execution 15:15
Chương 12 Horizontal Scaling 2 bài · 19 phút
-
Fibonacci Script 9:52
-
Horizontal Scaling 8:58
Chương 13 Products 15 bài · 2 giờ 23 phút
-
File Upload 15:43
-
Products Service 4:40
-
Drizzle ORM 15:35
-
Drizzle Kit Migrations 7:27
-
Products Proto 7:58
-
Products gRPC 4:36
-
Load Products Job 13:36
-
Job File Data 12:35
-
Load Products Consumer 3:35
-
Products gRPC Client 8:47
-
Categories 12:07
-
Products Dockerfile 7:51
-
Products Helm 11:59
-
Products Helm Testing 7:11
-
Jobs Volume 8:50
Chương 14 Job Status 8 bài · 1 giờ 7 phút
-
Jobs Prisma 8:30
-
Save Job 8:10
-
Job Acknowledge 11:12
-
Executor Acknowledge 13:43
-
Acknowledge Testing 3:23
-
Jobs Dockerfile Prisma 3:10
-
Acknowledge Helm 10:35
-
Job Status Resolver 7:48
Chương 15 Production 8 bài · 1 giờ 1 phút
-
Ingress 10:19
-
AWS CLI 3:48
-
Elastic Kubernetes Service 3:43
-
LB Controller & CSI Driver 8:21
-
AWS Helm Chart - Part 1 9:25
-
AWS Helm Chart - Part 2 8:27
-
Horizontal Scaling 6:44
-
Custom Domain & SSL 10:07
Chương 16 Extra 1 bài · 12 phút
-
Debugging 12:09
Chương 17 Updates 1 bài · 14 phút
-
Prisma v7, GraphQL, & More 14:13
Requirment
-
Basic knowledge of JavaScript or TypeScript
-
Familiarity with Node.js and backend development concepts
-
Understanding of REST APIs (GraphQL knowledge is helpful but not required)
-
Some experience with databases like PostgreSQL is beneficial
-
Basic understanding of Docker and containerization concepts
-
Familiarity with basic NestJS concepts
-
Familiarity with Kubernetes for deployment
Outcomes
-
Build a fully functional distributed job engine using NestJS microservices
-
Structure a scalable monorepo using Nx for efficient development and dependency management
-
Implement gRPC as the transport layer for high-performance, low-latency communication
-
Use Apache Pulsar for distributed messaging and reliable job processing
-
Expose a GraphQL API for flexible data access and interaction
-
Secure microservices with JWT authentication and HTTP-only cookies
-
Apply object-oriented design principles to keep code modular, reusable, and maintainable
-
Implement horizontal scaling to efficiently handle high workloads
-
Optimize Dockerization with Nx libraries and independent package.json files
-
Use Prisma ORM and Drizzle ORM with PostgreSQL for robust database management
-
Deploy microservices to Kubernetes with best practices for production readiness
-
Set up a production-grade AWS deployment with a custom domain and SSL encryption
-
Gain hands-on experience designing, developing, and deploying real-world NestJS microservices
0 Student
3 Courses
0 review