---
title: "Full bộ Source code Microservices NESTJS - Simple Bento Social Network."
description: ""
canonical: "https://200lab.io/blog/full-bo-source-code-microservices-nestjs-simple-bento-social-network"
published: "2024-11-21T03:38:08Z"
updated: "2026-08-21T07:17:46Z"
authors: ["Việt Trần"]
tags: ["Backend", "Frontend", "Showcase"]
reading_minutes: 1
access: "public"
---

### 📦 Bộ source code bao gồm:

- Microservices (NEST): Post, User (Authentication & Authorization), Comment, Notification.
- API Gateway: Tyk/Nginx.
- Database: Postgres (sử dụng Prisma ORM).
- Pub/Sub: Redis.
- Frontend: NEXT React.

Vì để đơn giản hoá phần deploy cho showcase này, 200Lab đã xây dựng kiến trúc Microservices dưới dạng Modular Hexagonal với NESTJS. Các modules sẽ độc lập và giao tiếp thông qua RPC-HTTP và Redis Pub/Sub.

## Đọc thêm

- [Idempotency là gì? Idempotency key chống trừ tiền hai lần khi retry](https://200lab.io/blog/idempotency-key-la-gi.md): Idempotency key giúp POST retry an toàn khi timeout. Middleware Go chạy thật: giữ chỗ atomic, 409 khi trùng đồng thời, replay đúng response cũ.
- [Game System Design GonnaCrash được làm như thế nào](https://200lab.io/blog/game-system-design-gonnacrash-duoc-lam-nhu-the-nao.md): Kéo thả một hệ thống rồi nhìn nó trụ hay sập: cách mình dựng GonnaCrash, từ server làm trọng tài, con bot giải đề đến skin whiteboard.
- [Architecture Pattern - Phần 7: Hexagonal Architecture](https://200lab.io/blog/hexagonal-architecture-la-gi.md): Hexagonal Architecture là pattern kiến trúc mà mọi tương tác từ bên ngoài đều phải đi qua một Adapter để kết nối vào một Port của Application
- [File __init__.py trong Python: Hướng dẫn sử dụng toàn diện](https://200lab.io/blog/huong-dan-su-dung-toan-dien-file-init-trong-python.md): __init__.py không chỉ đơn thuần là một file đánh dấu package, nó quyết định cách package của bạn được cấu trúc, import và tối ưu ra sao
- [Thiết kế Leaderboard hiệu năng cao: Khi nào chọn SQL, Khi nào dùng Redis?](https://200lab.io/blog/thiet-ke-leaderboard-hieu-nang-cao-khi-nao-chon-sql-khi-nao-dung-redis.md): Khám phá cách thiết kế hệ thống Leaderboard tối ưu, linh hoạt, dễ mở rộng, kết hợp giữa tư duy thiết kế hệ thống hiện đại và kinh nghiệm thực tế
- [Mọi bài viết chủ đề Backend](https://200lab.io/blog/tags/backend.md)

Toàn bộ nội dung: https://200lab.io/llms.txt
