Bài 36: Deploy NestJS với Docker
Deploy NestJS với Docker: build production, Dockerfile nhiều stage chạy bằng user thường, docker compose với prisma migrate deploy, healthcheck,...
Deploy NestJS với Docker: build production, Dockerfile nhiều stage chạy bằng user thường, docker compose với prisma migrate deploy, healthcheck,...
Health check với Terminus trong NestJS: liveness và readiness, kiểm tra PostgreSQL, MongoDB, Redis, ổ đĩa, bộ nhớ, HealthIndicatorService, withTimeout...
Testing trong NestJS với Vitest: unit test service bằng mock và Test.createTestingModule, e2e test với Supertest trên database riêng, test...
Microservices trong NestJS phần 2: transport NATS v3 với queue group, timeout và đổi lỗi microservice sang 503/502, pre-request hook...
Microservices trong NestJS: transport TCP và Redis, @MessagePattern (request-response) và @EventPattern (event), ClientProxy, hybrid application để tách service thông báo...
WebSocket trong NestJS: tạo gateway với socket.io, xác thực JWT lúc handshake, room theo project, phát sự kiện realtime khi...
Task Scheduling và Event trong NestJS: chạy job theo lịch với @Cron, @Interval của @nestjs/schedule, gửi mail nhắc việc qua...
Queue với BullMQ trong NestJS: cấu hình @nestjs/bullmq trên Redis, producer đưa job vào queue, processor xử lý job, thử...
Gửi mail trong NestJS với @nestjs/mail: cấu hình SMTP qua ConfigService, template HTML tự escape, mail class, gửi mail sau...
Cache trong NestJS với @nestjs/cache-manager: TTL, CacheInterceptor với key theo từng user để không lộ dữ liệu, cache thủ công...