
NestJS Microservices Proof of Concept A comprehensive demonstration of NestJS microservices architecture with two core services communicating over TCP transport, featuring resilience patterns, validation, and event-driven communication. ๐๏ธ Architecture Overview This project demonstrates a microservices architecture with the following components: User Service (Port 4000/4001): Manages user registration and data Notification Service (Port 4002/4003): Handles notification sending and tracking API Gateway (Port 4004): Orchestrates communication between services Shared Package: Common DTOs, interfaces, and constants ๐ Project Structure nest-microservices-poc-2/ โโโ packages/ โ โโโ shared/ # Shared utilities and types โ โโโ src/ โ โ โโโ dto/ # Data Transfer Objects โ โ โโโ interfaces/ # TypeScript interfaces โ โ โโโ constants/ # Message and event patterns โ โ โโโ index.ts # Public exports โ โโโ package.json โ โโโ tsconfig.json โโโ services/ โ โโโ user-service/ # User Management Service โ โ โโโ src/ โ โ โ โโโ entities/ # TypeORM entities โ โ โ โโโ users/ # User module โ โ โ โโโ config/ # Database configuration โ โ โ โโโ common/ # Filters, interceptors, retry logic โ โ โ โโโ app.module.ts โ โ โ โโโ main.ts โ โ โโโ package.json โ โโโ notification-service/ #…Read More
References
Back to Main