NestJS Microservices: Build a Distributed Job Engine

所在平台: Udemy

课程主页: https://www.udemy.com/course/nestjs-microservices-build-a-distributed-job-engine/

课程评论:没有评论

第一个写评论        关注课程

课程简介

**课程名称:** NestJS 微服务:构建分布式任务引擎 **课程概述:** 本课程学习如何利用 NestJS 构建可扩展、分布式的微服务,通过从零开始开发一个功能完整的任务引擎来掌握这一技能。您将学习 NestJS 微服务的正确构建方法,涵盖从架构设计到生产部署和扩展的各个方面。 **学习内容:** * **项目设置与架构:** * 使用 Nx 设置 Monorepo,高效管理单一代码库中的多个服务。 * 采用面向对象设计原则,构建清晰、模块化、可重用的代码,遵循 DRY(Don't Repeat Yourself)原则。 * **通信与消息传递:** * 使用 gRPC 作为传输层,实现服务之间的高性能、低延迟通信。 * 集成 Apache Pulsar,一个强大的分布式消息系统,支持多消费者共享队列,实现规模化扩展。 * **API 与安全性:** * 暴露 GraphQL API,提供灵活高效的微服务交互方式。 * 实现基于 JWT 的身份验证,采用安全的 HTTP-only Cookie。 * **数据库与数据管理:** * 使用 Prisma ORM 和 Drizzle ORM 结合 PostgreSQL,确保类型安全、数据库迁移和优化查询。 * **部署与扩展:** * 优化 Docker 设置,利用 Nx 库和独立 `package.json` 文件进行更好的依赖管理。 * 应用水平扩展技术,确保服务能够高效处理不断增长的工作负载。 * 实现任务状态跟踪,监控任务进度。 * 将所有服务部署到 Kubernetes,并在 AWS 上进行实际生产环境的部署,包括自定义域名和 SSL 加密。 **课程目标:** 学完本课程后,您将拥有一个功能完善的分布式任务引擎,具备强大的状态跟踪能力,并掌握在真实生产环境中设计、开发和部署可扩展 NestJS 微服务的专业知识。

课程评论(0条)

课程详情

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.

课程标签

0人关注该课程

主题相关的课程