Master Backend Engineering SSOT & Strategy Compass

Tran Van Ngoc|

TL;DR

Tài liệu này là Single Source of Truth (SSOT) và Interactive Command Center định hình toàn bộ lộ trình phát triển năng lực, tư duy kiến trúc, và tiêu chuẩn kỹ nghệ cho Backend & Software Engineering. Được xây dựng dựa trên triết lý kỹ nghệ của các kỹ sư huyền thoại (Salvatore Sanfilippo (antirez), Mitchell Hashimoto, Fabrice Bellard, Martin Fowler): Giá trị cốt lõi đến từ độ sâu kiến trúc, khả năng giải quyết bài toán phức tạp bằng giải pháp tối giản (KISS), và sự thấu hiểu bản chất cách hệ thống vận hành under the hood.


1. Strategic Intent & Active Sprint Workbench

Khu vực điều phối hành động - Khi mất phương hướng, nhìn vào đây đầu tiên để kéo tiêu điểm về bài toán hiện tại:

A. North Star & Timeline

  • Target Role: Offer Backend Developer chính thức (Node.js, NestJS, Go, PostgreSQL, Redis, System Design) trước ngày 06/12/2026.
  • CV Golden Metrics:
    • Throughput & Latency: RPS > 1,500 req/sec dưới p95 Latency < 45ms trên dự án Ticket Booking Backend.
    • Concurrency Control: 100% Zero Race Condition chứng minh qua Asynchronous Socket Flooding & Redis Redlock.
    • Architecture Boundaries: Phân tách ranh giới rõ ràng theo Modular Monolith và Clean Architecture, triệt tiêu Circular Dependency.
    • Automated Verification: Đạt chuẩn Playwright Automation Testing (CDP/IPC, Contract Drift, JSON Schema).

B. Current Active Sprint (Work in Progress)

  • Tích hợp và chuẩn hóa toàn bộ hệ thống Second Brain theo tiêu chuẩn SSOT.
  • Ticket Booking Backend: Hoàn thiện kịch bản k6 Load Test, đo RPS/Latency và đóng gói số liệu vào CV.
  • Software Testing Coursework: Hoàn thiện toàn diện dự án Playwright Automation Testing (16 bài phân tích kiến trúc).
  • Daily Technical Discipline: 1 bài LeetCode Medium/ngày (15 Patterns) + Ôn 20 thẻ Anki (50_Flashcards/).

2. The 4 Evergreen Knowledge Pillars (Active Progression)

Cây lộ trình 4 tầng nhận thức - Đánh dấu [x] khi đã nghiệm thu và mint flashcard, [/] khi đang code thực chiến, [ ] cho nốt chờ nghiên cứu/ôn tập lại từ đầu:

Pillar 1: Under-the-Hood, Networking & Low-Level Runtime (Layer 1)

Computer Science & OS Process / Memory Execution

JavaScript Engine & V8 Internals

Go Runtime & Memory Mechanics

Type Systems & Compilers

Low-Level Networking, Sockets & I/O Multiplexing


Pillar 2: Architecture, Boundaries, Auth & Clean Code (Layer 2)

Architecture Principles & Paradigms

Modular Monolith & Boundary Rules

Design Patterns

Authentication, Authorization & Web Security Core

System Design Frameworks


Pillar 3: Database Internals, Storage & Distributed Systems (Layer 3)

Database Storage Engine & Physical Layout

Transactions, Isolation & Concurrency Control

In-Memory Systems, Caching Architecture & Invalidation

Messaging, Streaming & Reliability Patterns

Distributed Systems & Consensus

API & Pagination Strategies

Benchmarking & Infrastructure Ops


Pillar 4: Quality, Verification & Full-Stack Observability (Layer 4)

Testing Foundations & ISTQB Standards

Test Design Techniques

SDLC Models & Engineering SOPs

Automated Verification Frameworks

Playwright Protocol-Level Automation Suite

Full-Stack Observability & Tracing


3. Diagnostic & Root Cause Analysis Toolkit

Khi hệ thống gặp sự cố (High CPU, Memory Leak, Timeout, Deadlock), tuyệt đối không restart mù quáng. Tuân thủ quy trình truy vết đến tận cùng:

Hiện Tượng / Sự CốCông Cụ Chẩn Đoán Cấp ThấpMục Tiêu Phân TíchTarget Atomic Note
High CPU / CPU Spikepprof, CPU Profiler, FlamegraphsĐịnh vị hàm chiếm dụng chu kỳ CPU cao nhất[ ] Go_Pprof_and_Flamegraph_Analysis
Memory Leak / OOMHeap Profiler, Heap Snapshot, GC TraceTìm đối tượng không được giải phóng[ ] JS_Memory_Leaks_and_Mitigation
Slow I/O / Blocked ThreadLinux strace, lsofTruy vết system call bị nghẽn (epoll_wait, fsync)[ ] Linux_Strace_and_Syscall_Profiling
Network Latency / Dropped Packetstcpdump, WiresharkPhân tích TCP Handshake, retransmission, reset[ ] Network_Packet_Analysis_Tcpdump_Wireshark
Slow Database QueriesEXPLAIN (ANALYZE, BUFFERS)Tìm Seq Scan, Buffer spill to disk, Index misses[ ] Postgres_SQL_Performance_Benchmarking_Guide

4. Engineering Craftsmanship & Decision Protocols

  1. KISS & Anti-Overengineering (Keep It Simple, Stupid):

    • Tuyệt đối không đưa Microservices, Kafka, hay Kubernetes vào bài toán khi 1 server đơn Postgres + Node.js/Go chưa được tối ưu hóa đến giới hạn.
    • KISS_and_Simplicity_in_System_Design
  2. “Show, don’t tell” Mindset (Evidence-First):

    • Mọi khẳng định kỹ thuật phải được chứng minh bằng Benchmark có số liệu cụ thể (p95/p99p95/p99 Latency, Throughput RPS, Hardware footprint).
    • Local_Stress_Testing_Benchmark
  3. Technical Design Documentation (RFC / ADR):

  4. Open Source & Technical Writing:

  5. AI-as-Mentor Protocol (Cognitive Ownership & Active Coding):

    • Tuân thủ RMIT_Critical_Review_AI_Coding_2026 (Phase 1: System Fundamentals): Tuyệt đối không copy-paste code do AI sinh sẵn cho các thuật toán, concurrency logic, hay core business rules.
    • Phân định vai trò:
      • AI đóng vai trò: Socratic Tutor (gợi mở tư duy, giải thích under-the-hood, chỉ ra edge-cases, cung cấp tài liệu uy tín, và review phản biện logic).
      • Human đóng vai trò: Author & Implementer (tự tay tư duy thuật toán, tự gõ từng dòng code thực nghiệm, tự debug qua compiler/runtime errors).
    • Mục tiêu: Xây dựng Mental Model nguyên bản và Technical Judgment thực chất. Chỉ chuyển sang AI-Orchestration khi đã làm chủ hoàn toàn các System Invariants.

5. Definition of Done (Tiêu Chuẩn Đóng Gói Tri Thức)

Một chủ đề hoặc tính năng chỉ được đánh dấu [x] khi thỏa mãn đồng thời 4 điều kiện:

  1. Codebase Execution: Triển khai trực tiếp trên mã nguồn thật hoặc tái hiện qua bài test thực tế (Unit/Integration/Repro Script), vượt qua 100% test suites, không có lỗi tiềm ẩn.
  2. Empirical Measurement: Đo đạc được số liệu thực tế (p95/p99 Latency, Throughput RPS, Memory/CPU Footprint, EXPLAIN (ANALYZE, BUFFERS)).
  3. Atomic Synthesis: Tạo hoặc cập nhật Atomic Note chuẩn cấu trúc đúc kết nguyên lý under the hood và các điểm đánh đổi (Trade-offs).
  4. Active Flashcard Minted: Bắt buộc tạo ít nhất 1–2 thẻ câu hỏi chẩn đoán (Diagnostic Cards) trong thư mục 50_Flashcards/ tương ứng và đồng bộ vào Anki để kích hoạt vòng lặp Spaced Repetition trước khi được phép tích [x].