NestJS Microservices: Build a Distributed Job Engine

Master NestJS Microservices by Building a Scalable, Distributed Job Engine with gRPC, Pulsar, Kubernetes & AWS

  • 0.0 (0 Reviews)
  • 0 Students
  • 111 Lessons
  • Michael Guay

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.

See more

FAQ

FAQ area empty

Course curriculum

17 chương 111 bài học 15 giờ 25 phút 7 bài học thử miễn phí
Chương 1 Introduction
Chương 2 Users
Chương 3 Cleanup
  • Commit Hooks 6:44
  • Unit Tests 5:04
  • Config Module 2:33
  • Nx Options 1:14
Chương 4 Authentication
  • 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
  • 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
  • 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
  • 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
  • Pulsar Batch Producer 7:51
  • Backlog Test Script 16:49
Chương 9 Dockerization
  • 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
  • Pino Logger 9:15
  • GraphQL Logger 8:06
  • GRPC Logger 8:47
Chương 11 Kubernetes
  • 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
  • Fibonacci Script 9:52
  • Horizontal Scaling 8:58
Chương 13 Products
  • 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
  • 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
  • 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
  • Debugging 12:09
Chương 17 Updates
  • 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

Instructor

...
Michael Guay

0.0

  • ... 0 Student
  • ... 3 Courses
  • ... 0 review

View Details

Reviews

Rate this course :

Remove all