Bỏ qua để đến nội dung

Tổng quan Lộ trình Solo Fullstack

Tóm tắt

Mục tiêu: Xây nền tảng fullstack vững chắc, dùng chung cho 2 con đường — đi làm lên Staff/Architect hoặc tự làm Solo Founder — rồi rẽ nhánh dựa trên hoàn cảnh thực tế.

Thời gian ước tính: Lõi chung 9–12 tháng (kịch bản lạc quan); thực tế cộng dồn 3 khối thường rơi vào 11–21 tháng tùy tốc độ. Sau đó mỗi nhánh tiếp tục 12–24 tháng.

Stack: JavaScript/TypeScript ecosystem

Project liên quan: P1P2P3P4P5P6

Hai con đường cần kỹ năng khác nhau ở giai đoạn nâng cao:

  • Nhánh A (Staff/Architect): Kafka, service mesh, distributed systems
  • Nhánh B (Solo Founder): Sales, validate ý tưởng, unit economics

Học cả hai cùng lúc kéo bạn về hai ưu tiên đối nghịch. Giải pháp:

  1. Học lõi chung trước — thứ cả hai con đường đều cần 100%
  2. Dừng lại ở điểm rẽ nhánh — đánh giá hoàn cảnh thật lúc đó
  3. Chọn Nhánh A hoặc B — có thể đổi nhánh sau này nếu hoàn cảnh thay đổi

Mỗi khối không chỉ là checklist kiến thức, mà là năng lực chứng minh được.

Frontend — Senior FE Ready

Thời gian: 3–6 tháng | Mục tiêu: Sẵn sàng phỏng vấn Senior FE (30–45 triệu)

Lưu ý: “sẵn sàng phỏng vấn”, không phải “đã là senior”.

  • JS Core Engine (V8, Event Loop, Memory Management)
  • JS Core Deep Dive (Prototype, this, Execution Context, Proxy, Class)
  • TypeScript Nâng cao (Generics, Utility Types, Zod Runtime Validation)
  • Build Tool & Bundler (Webpack, Vite, Rspack, Tree-shaking)
  • Package Manager (npm, yarn, pnpm, Lockfile, Peer Dependencies)
  • Design Patterns (Singleton, Observer, Factory, Compound, State Machine)
  • React Fiber, Re-render Optimization, React Compiler (auto-memoization)
  • Framework Evolution (Class → Hooks → v19, Pages → App Router → v16)
  • Next.js App Router (RSC, Serialization Limits, use(), Caching, Actions)
  • Error Handling & Resilience (Boundary, Graceful Degradation, Retry)
  • Form Engineering (react-hook-form, Field Arrays, Optimistic, Auto-save)
  • TanStack Query, Zustand, Redux Ecosystem (RTK, Saga, RTK Query), XState
  • Tailwind Deep Dive, shadcn/ui, Component Library từ đầu
  • CSS Modern (@layer, Container Queries, :has(), Native Nesting)
  • Accessibility (WCAG 2.1 AA), Design System, Design Tokens
  • Vitest + Testing Library, Playwright E2E, MSW
  • Lighthouse CI, Core Web Vitals (LCP/INP/CLS), LoAF API, Performance Budget
  • Tối ưu Web Thuần (CRP, Font, Image, Video, HTTP Caching, DevTools)
  • Micro-frontends, Monorepo (Turborepo), PWA, i18n, Data Viz, Storybook
  • Web APIs & Storage (IndexedDB, Observers, Broadcast Channel, Page Vis)
  • SEO Technical: JSON-LD, GEO (AI Search Optimization), Dynamic Meta
  • BFF Pattern (Backend-for-Frontend, Next.js as BFF, Standalone BFF)
  • Frontend System Design: RADIO framework, News Feed/Autocomplete/Editor
  • Bảo mật Frontend: XSS, CSP, CORS, Auth (OAuth/JWT), Server Actions
  • Supply Chain Security (lockfile, Provenance, dependency confusion)
  • Production Ops: Error tracking, RUM, Feature Flags, Rollback, Incident
  • Git Teamwork (Rebase, Merge, Conflict, Cherry-pick, Reflog, Bisect)
  • AI Coding Agent hằng ngày: Claude Code / Cursor — VERIFY output AI
  • Judgment & Ownership: trade-off dưới ambiguity, code review, mentoring
  • War Stories: Deadline, API Dispute, Code Review, AI Output, Incident

Backend — API vững chắc + AI

Thời gian: 6–12 tháng | Mục tiêu: Tự build API, tích hợp payment, search, email, AI

  • NestJS: DI, Guards, Interceptors, Pipes, Clean Architecture / DDD
  • SQL Fundamentals: ACID, Isolation Levels, Indexing (B-Tree, Composite)
  • Prisma ORM: Schema, Migrations (strategy, rollback), Transactions, N+1
  • Database Design: Normalization, ER Modeling, Migration Strategy
  • NoSQL (MongoDB): Khi nào dùng Document thay Relational
  • RESTful API chuẩn: HTTP Status, Pagination, Filtering, Versioning
  • API Testing: Jest + Supertest, contract test
  • GraphQL / tRPC: Type-safe API, Apollo Server, tRPC + Next.js
  • Auth: JWT (Access/Refresh), OAuth2/OIDC, RBAC/ABAC, Session Management
  • Security: OWASP Top 10, XSS, CSRF, Rate Limiting, Argon2/Bcrypt
  • Webhooks: Verify signature, Retry with backoff, Idempotency keys
  • File Upload: Validation, virus scan, signed URL, CDN upload
  • Payment: Stripe (Checkout, Webhooks, Subscription, Idempotency)
  • Search: Elasticsearch / Meilisearch (Full-text search, typo-tolerant)
  • Email: Transactional (Resend/Postmark), Templates, Deliverability
  • Background Jobs: BullMQ + Redis (queue, schedule, retry, dead letter)
  • Real-time: WebSockets (Socket.io), Server-Sent Events (SSE)
  • API Design: Idempotency, Rate Limiting, Throttling, Circuit Breaker
  • OpenAPI / Swagger: Auto-generated docs, client SDK generation
  • Event-Driven: Outbox Pattern, Saga Pattern (distributed transactions)
  • Tích hợp LLM API (Anthropic/OpenAI SDK), streaming, prompt engineering
  • RAG cơ bản + Vector DB (pgvector trên Postgres, chưa cần Pinecone)
  • AI Evaluation: kiểm thử & đánh giá chất lượng output AI
  • Multi-tenancy: Schema-based vs Row-based (cơ bản)
  • Backend/API System Design: rate limiter, webhook idempotency, job queue chịu tải, notification system — luyện dạng bị hỏi ngược trade-off

DevOps — Solo deploy production

Thời gian: 2–3 tháng | Mục tiêu: Solo deploy 1 dự án hoàn chỉnh lên production

  • Docker: Multi-stage build, docker-compose (Next + Nest + PG + Redis), networking, volumes, health checks
  • Linux VPS cơ bản: Ubuntu/Debian, permissions, systemd, log rotation
  • CI/CD: GitHub Actions (Lint → Test → Build → Push → Deploy), AI-assisted security scanning
  • Git Flow / Trunk Based, Conventional Commits, Semantic Versioning
  • Domain & DNS: Cloudflare (Proxy, DNS, Free SSL, DDoS protection)
  • Reverse Proxy: Nginx routing multi-service, caching, load balancing
  • SSL/TLS: Let’s Encrypt auto-renewal, Cloudflare Origin CA
  • Environment Management: Staging/Prod parity, .env best practices, Secrets management
  • Deploy: Vercel (FE) + Railway/Render (BE) — chưa cần AWS phức tạp
  • Graceful Shutdown: SIGTERM handling, connection draining
  • Backup cơ bản: Automated DB backup (pg_dump cron), test restore thật
  • Observability cơ bản: Sentry + structured logging + OpenTelemetry basics
  • Khung Production Readiness: bảo mật nền + observability nối thẳng runbook + rollback tập luyện thật + backup test restore thật

Lưu ý: Terraform, Vault, K8s, Service Mesh, IaC nâng cao chuyển sang Nhánh A.

3. Điểm rẽ nhánh — Tiêu chí quyết định

Phần tiêu đề “3. Điểm rẽ nhánh — Tiêu chí quyết định”

Không quyết định trước bằng cảm tính. Khi tới checkpoint (~tháng 9–12), đánh giá theo bảng sau:

Tiêu chíNghiêng về Nhánh A (Staff/Architect)Nghiêng về Nhánh B (Solo Founder)
Tài chínhChưa có runway 6–12 tháng chi phí sốngĐã có tiết kiệm đủ sống 6–12 tháng không lương
Ý tưởng sản phẩmChưa có ý tưởng đã kiểm chứng nhu cầu thậtĐã có ý tưởng + tín hiệu người dùng thật (dù nhỏ)
Kết quả tìm việcNhận được offer Senior/Fullstack tốtThị trường tuyển dụng khó, hoặc offer không hấp dẫn
Ràng buộc cá nhânCó gia đình cần thu nhập ổn địnhÍt ràng buộc, chấp nhận rủi ro thu nhập bấp bênh
Năng lượng sau 9–12 thángĐã khá kiệt sức, cần nhịp ổn định hơnVẫn còn động lực cao để tự chủ hoàn toàn

A1: High Traffic System Design

Thời gian: 6–12 tháng | Mục tiêu: Staff/Principal level — thiết kế hệ thống chịu tải cao

  • Scalability: Horizontal vs Vertical, Load Balancing (L7/L4), Auto-scale
  • Caching Strategies: Cache Aside, Read-Through, Write-Behind, Invalidation
  • Database Advanced: Sharding, Partitioning, Read Replicas, Connection Pooling, CAP/PACELC theorem
  • Async & Event-Driven: Kafka/RabbitMQ, Event Sourcing, CQRS
  • Microservices: Khi nào tách, khi nào không, API Gateway (Kong/AWS)
  • Service Mesh: Istio/Linkerd (m2m communication, observability)
  • Distributed Transactions: Saga Pattern, 2PC, Outbox Pattern
  • CDN & Edge: Cloudflare Workers, Edge computing, Global load balancing
  • Chaos Engineering: Circuit breakers (Resilience4j), Fault injection
  • Security Advanced: mTLS, WAF, DDOS mitigation, Zero Trust
  • Compliance: GDPR/CCPA, Data retention, Right to be forgotten
  • Infrastructure as Code: Terraform / Pulumi, K8s, HashiCorp Vault / Secrets Manager
  • AI System Design: kiến trúc có AI là thành phần cốt lõi, multi-model routing, real-time inference, vector DB như lớp dữ liệu ngang hàng
  • Bài tập: URL Shortener, Twitter/X News Feed, Chat System, E-commerce Checkout (Saga), Video Streaming

A2: Career & Interview

Thời gian: Song song với A1 | Mục tiêu: Vượt qua phỏng vấn Senior/Staff và tối ưu thu nhập

  • Data Structures & Algorithms (pattern thường gặp, không cần thi đấu)
  • System Design Interview format: trình bày trong 45 phút — kỹ năng giao tiếp/framing riêng
  • Frontend System Design: RADIO framework, UI Component + Application
  • Behavioral Interview: War Stories, STAR format, trade-off reasoning
  • Đàm phán lương & đánh giá offer (base, equity, benefit, level)
  • Technical Writing: RFC/ADR, tài liệu kiến trúc
  • Tech Lead: Tech Debt Management, Code Review Culture, mentoring
  • Cross-team influence, xây ảnh hưởng kỹ thuật không cần chức danh
  1. B1: Validate trước khi build (1–2 tháng)

    • Lean Startup, MVP Validation
    • No-code test nhu cầu trước khi code (landing page, form đăng ký chờ)
    • Customer discovery: user interview thật, không hỏi ý kiến chung chung
    • Xác định 1 “core problem” hẹp thay vì sản phẩm đa năng ngay từ đầu
  2. B2: Deploy tối giản (song song B3)

    • VPS đơn giản + Docker Compose là đủ cho rất lâu (không cần K8s)
    • Feature Flags cơ bản nếu cần (Unleash open-source)
    • Staging environment đơn giản
    • Chỉ học Terraform/Vault/Service Mesh/Kafka khi THẬT SỰ chạm giới hạn của Docker Compose + 1 VPS
  3. B3: Product, Growth & Business (liên tục)

    • Metrics: AARRR, North Star Metric, CAC/LTV, Unit Economics
    • Analytics: PostHog/Amplitude, SQL for product analytics
    • UX Research: A/B Testing (statistical significance)
    • Pricing: Freemium, Tiered, Usage-based, Stripe/Paddle integration
    • Growth: SEO, Content marketing, Viral loops, Referral programs
    • Sales trực tiếp: cold outreach, demo, closing — quan trọng hơn kỹ thuật ở giai đoạn đầu
    • Đăng ký kinh doanh: hộ kinh doanh cá thể / công ty TNHH tại Việt Nam
    • Cofounder & equity dynamics (nếu có): vesting, cap table cơ bản
    • Legal: Terms of Service, Privacy Policy, GDPR, Software licenses
    • Financial: Burn rate, Runway, Fundraising basics (Seed, Series A)
    • Customer Support: Intercom/Crisp, SLA, Ticketing system
    • Hiring & Team Building: khi có traction thật, cần scale team
    • Tech Lead skills: RFC/ADR, Tech Debt — vẫn cần dù đang solo

6. Nguyên tắc học theo chiều ngang (Project-based)

Phần tiêu đề “6. Nguyên tắc học theo chiều ngang (Project-based)”
Giai đoạnProjectKiến thức lồng ghép
Lõi chungPortfolio + BlogNext.js App Router, Tailwind, shadcn/ui, MDX, SEO, Zod + Server Action, Lighthouse CI, Git flow
Lõi chungE-commerce FrontendTanStack Query, Zustand cart, Multi-step checkout (Zod + XState), PWA, Playwright E2E, Git cherry-pick
Lõi chungSaaS API Backend + AI featureNestJS + Prisma + PostgreSQL, JWT Auth, Stripe payment, BullMQ email queue, LLM API + RAG cơ bản, API testing, Webhook security
Lõi chungSolo DeployDocker compose, GitHub Actions CI/CD, Nginx reverse proxy, Cloudflare, Sentry, Backup automation, Graceful shutdown
Nhánh AURL ShortenerCaching (Redis), Rate limiting, Horizontal scaling, Load balancing, API versioning
Nhánh ATwitter/X CloneNews feed (fan-out write vs read), Notification system, Search, Microservices, Event-driven (Outbox, Saga)
Nhánh BMVP thật có userXuất phát từ B1 (đã validate), launch nhanh, đo AARRR, thu phí sớm
Nhánh BReal-time ChatWebSockets, Redis pub/sub — chỉ làm nếu MVP thật sự cần
Layer Công nghệ Ghi chú
Frontend Next.js 14+ (App Router) + Tailwind + shadcn/ui RSC, SEO built-in, Vercel deploy
State FE TanStack Query + Zustand Server state + Client state separation
Backend Next.js API Routes (bắt đầu) → NestJS (scale) Cùng JS/TS ecosystem, chuyển dễ dàng
Database PostgreSQL (Neon / Supabase / RDS) Relational, ACID, Prisma hỗ trợ tốt
AI / LLM Anthropic/OpenAI API + pgvector RAG cơ bản trên chính Postgres
AI Coding Tool Claude Code / Cursor / Copilot agent mode Công cụ hằng ngày, VERIFY output
Cache Redis (Upstash / Railway / self-host) Session, rate limit, BullMQ, cache layer
Auth Clerk / NextAuth.js / Supabase Auth Không tự build auth cho startup sớm
Payment Stripe Checkout, Subscription, Webhooks, Idempotency
Search Meilisearch → Elasticsearch (scale, Nhánh A) Full-text search, typo-tolerant
File Storage AWS S3 / Cloudflare R2 Ảnh, video, documents
Email Resend / Postmark Transactional email, templates
Monitoring Sentry + OpenTelemetry basics FE + BE errors, structured logging, tracing
Analytics PostHog / Plausible Product analytics, funnel, retention
Deploy Vercel (FE) → Railway/Render (BE) → AWS/K8s (Nhánh A scale) Tiến hóa theo traffic
CI/CD GitHub Actions Lint, Test, Build, Deploy tự động, AI security scan
Domain Cloudflare DNS, SSL, CDN, DDoS protection
Git pnpm + GitHub Workspace, lockfile, branch protection, semantic release

8. Lộ trình thực tế — Kết hợp đi làm & học

Phần tiêu đề “8. Lộ trình thực tế — Kết hợp đi làm & học”

KHỐI 1: Master FE

  • Học sâu, làm 2 project portfolio, dùng AI coding agent hằng ngày ngay từ đầu
  • Bao gồm: JS Core, Build Tool, Package Manager, Git Teamwork, Framework Evolution, Error Handling, Form Engineering, CSS Modern, Web Thuần, Web APIs, BFF, War Stories, System Design practice
  • Đủ nền tảng để BẮT ĐẦU phỏng vấn Senior FE (30–45 triệu) — không phải “là senior”, mà là đủ điều kiện để được nhận và tích lũy kinh nghiệm senior thật qua công việc
Yêu cầu JDThuộc khối/nhánhMức độ
jQuery → React migrationKhối 1 (Lõi chung)Critical
JS Core (Prototype, this, Execution Context)Khối 1 (Lõi chung)Critical
Build Tool (Webpack/Vite)Khối 1 (Lõi chung)High
Package Manager (pnpm, lockfile)Khối 1 (Lõi chung)High
Git Teamwork (rebase, conflict, cherry-pick)Khối 1 (Lõi chung)High
CSS Modern (@layer, container queries)Khối 1 (Lõi chung)Medium
Error Handling & ResilienceKhối 1 (Lõi chung)High
Form Engineering (complex forms)Khối 1 (Lõi chung)High
BFF PatternKhối 1 (Lõi chung)Medium
Web APIs (IndexedDB, Observers)Khối 1 (Lõi chung)Medium
Tối ưu Web Thuần (CRP, HTTP caching)Khối 1 (Lõi chung)High
Micro-frontends (Module Federation)Khối 1 (Lõi chung)High
Monorepo (Nx, Turborepo)Khối 1 (Lõi chung)High
PWA / Tablet-optimizedKhối 1 (Lõi chung)Medium
i18n (react-i18next)Khối 1 (Lõi chung)High
WCAG / AccessibilityKhối 1 (Lõi chung)High
Storybook + ChromaticKhối 1 (Lõi chung)Medium
Frontend System Design (RADIO)Khối 1 → A2Critical
War Stories / BehavioralKhối 1 → A2Critical
API Testing (Jest/Supertest)Khối 2 (Lõi chung)High
API VersioningKhối 2 (Lõi chung)Medium
Rate Limiting / IdempotencyKhối 2 (Lõi chung)High
Webhook Security (signature)Khối 2 (Lõi chung)High
OpenAPI / SwaggerKhối 2 (Lõi chung)Medium
Event-driven (Outbox, Saga)Khối 2 → A1High
Multi-tenancyKhối 2 (Lõi chung)Medium
AI integration / LLM APIKhối 2 (Lõi chung)High
eCommerce + SEO/GEOKhối 1 (Lõi chung)High
GraphQLKhối 2 (Lõi chung)Medium
ElasticsearchKhối 2 → A1Medium
Design Patterns + OOPKhối 1–2 (Lõi chung)High
System Design + PerformanceA1 (Nhánh A)High
DSA / Coding InterviewA2 (Nhánh A)High
MVP Validation / Customer DiscoveryB1 (Nhánh B)Critical
  1. Học mỗi ngày ít nhất 2 giờ — sáng 1h trước khi đi làm, tối 1h sau khi về
  2. Cuối tuần làm project — 4–8 giờ, đóng gói kiến thức tuần đó thành code
  3. Không xem tutorial passive — Pause, code theo, sau đó tự làm lại không nhìn
  4. Mỗi tháng 1 project nhỏ — Hoàn chỉnh, deploy, share lên GitHub
  5. Tham gia cộng đồng — Discord/Reddit dev communities, contribute open source
  6. Checkpoint 3 tháng/lần — Đánh giá lại tiến độ và hoàn cảnh, điều chỉnh kế hoạch
  7. Giữ nhịp bền vững, không burnout — “2 giờ/ngày đều đặn trong 12 tháng” tốt hơn “6 giờ/ngày trong 2 tháng rồi bỏ cuộc”
  8. Nhánh A: Technical blog post định kỳ — củng cố kiến thức + xây thương hiệu cá nhân
  9. Nhánh B: “Build in Public” — chia sẻ journey, nhận feedback, tạo accountability
  • JavaScript: “You Don’t Know JS” (Kyle Simpson), “JavaScript: The Definitive Guide”
  • TypeScript: “Effective TypeScript” (Dan Vanderkam), TypeScript Handbook
  • React: React Docs (Beta), “Building Large-Scale Web Apps” (Addy Osmani)
  • Next.js: Next.js Documentation (App Router), Vercel Engineering Blog
  • Backend: NestJS Docs, “Node.js Design Patterns” (Mario Casciaro)
  • DevOps: “The Docker Book”, GitHub Actions docs, Nginx docs
  • AI Engineering: Anthropic Docs (docs.claude.com), Claude Code / MCP docs
  • Frontend System Design: Frontend Interview Handbook
  • Web Performance: web.dev (Core Web Vitals, LoAF, CRP)
  • Security: OWASP Top 10, OWASP Cheat Sheet Series

Giải thích lại cho người khác

“Mỗi checkbox trong checklist là một kiến thức bạn PHẢI giải thích được cho người khác. Nếu không giải thích được, chưa hiểu sâu — quay lại học.”

“Tại sao không học cả Nhánh A và Nhánh B cùng lúc?”

Hai con đường cần kỹ năng khác nhau ở giai đoạn nâng cao. Học cả hai kéo bạn về hai ưu tiên đối nghịch → kiệt sức mà không đạt được gì.


Trạng thái Buổi Học

Xem chi tiết trạng thái
Current File00-roadmap-overview.mdx
Day In File1 / 1
Total Days Completed0
Completed Files[]
NotesTrang tổng quan — không có bài tập cụ thể, dùng để định hướng toàn bộ lộ trình
P1: not startedP2: not startedP3: not startedP4: not startedP5: not startedP6: not started

Next Topic

Buổi 1: Mục tiêu & Thông tin cá nhân → 01-goals-and-info.mdx