Skip to content

Phần 14. Tài liệu Tham Khảo

Mục tiêu: cung cấp danh mục tài nguyên chính thức và các kinh nghiệm thực tiễn mở rộng, giúp đội ngũ dev luôn nắm bắt kịp thời kiến thức, best practice, và xu hướng công nghệ.

14.1 🧩 Tài liệu chính thức (Official Docs)

Chủ đềĐường dẫnGhi chú
Supabase Documentationhttps://supabase.com/docsTrang chủ tài liệu chính thức
Next.js Documentationhttps://nextjs.org/docsTài liệu framework Next.js (App Router, SSR, ISR, Middleware)
Supabase Auth Guidehttps://supabase.com/docs/guides/authCấu hình JWT, OAuth, Magic Link, OTP
Supabase Row Level Security (RLS)https://supabase.com/docs/guides/database/postgres/row-level-securityCách bật và viết policy bảo mật
Supabase CLI Referencehttps://supabase.com/docs/reference/cliTất cả lệnh CLI (link, db push, migrate, function deploy)
Supabase Edge Functionshttps://supabase.com/docs/guides/functionsHướng dẫn viết & deploy Edge Function
Supabase Storagehttps://supabase.com/docs/guides/storageUpload, signed URL, bucket policy
Supabase Realtimehttps://supabase.com/docs/guides/realtimeStreaming dữ liệu theo thời gian thực
Supabase Database Extensionshttps://supabase.com/docs/guides/database/extensionspg_cron, pg_net, pgmq, vector, v.v.
Supabase API Reference (PostgREST)https://supabase.com/docs/reference/javascript/selectAPI client và cú pháp query
Supabase Pricing Overviewhttps://supabase.com/pricingChi tiết plan, quota và chi phí
Next.js Deploymenthttps://vercel.com/docs/deploymentsDeploy Next.js trên Vercel
Next.js Proxy (Old Middleware) & Edge Runtimehttps://nextjs.org/docs/app/api-reference/file-conventions/proxyCấu hình bảo mật và proxy (middleware cũ)
NextAuth.js (Optional)https://next-auth.js.orgNếu tích hợp auth ngoài Supabase

14.2 ⚙️ Công cụ & Thư viện hữu ích

Mục đíchCông cụ / PackageGhi chú
Supabase CLIsupabaseDùng cho migration, deploy function
Supabase JS Client@supabase/supabase-jsSDK chính dùng trong Next.js
Supabase SSR@supabase/ssrHỗ trợ auth cho App Router SSR
Monitoring / Tracing@opentelemetry/apiThu thập trace end-to-end
Error Tracking@sentry/nextjsGửi lỗi từ Edge & FE lên Sentry
Task QueuepgmqQueue native trong Postgres
Schedulerpg_cronLên lịch job định kỳ
HTTP call trong SQLpg_netGửi request API từ trigger DB
Vector SearchpgvectorLưu embedding, dùng cho AI search
Infrastructure IaCTerraform, PulumiTự động hóa deploy Supabase project
CI/CDGitHub ActionsTriển khai build-test-deploy tự động
VisualizationGrafana, MetabaseTạo dashboard phân tích dữ liệu
Performance testK6, JMeterLoad test và benchmark Edge Function

14.3 🧠 Blog & Case Study (Chính thức từ Supabase)

Chủ đềĐường dẫnGhi chú
Supabase Launch Weekshttps://supabase.com/blog/tags/launch-weekTổng hợp cập nhật hàng quý
Supabase vs Firebasehttps://supabase.com/alternatives/supabase-vs-firebaseSo sánh chi tiết
Using pgmq for job queuehttps://supabase.com/blog/supabase-queuesQueue trong Postgres
Processing large jobshttps://supabase.com/blog/processing-large-jobs-with-edge-functionsXử lý job lớn với Edge Functions, Cron, và Queues
Postgres Performance Tuninghttps://supabase.com/docs/guides/platform/performanceTối ưu query & index

14.4 🎓 Tài nguyên học tập & Video

Chủ đềNguồnGhi chú
Supabase with Cloudflare Workers & KV Storagehttps://egghead.io/courses/cache-supabase-data-at-the-edge-with-cloudflare-workers-and-kv-storage-883c7959Cache Supabase data tại Edge với Cloudflare Workers và KV Storage
Supabase Crash Course (FreeCodeCamp)Đang cập nhật...Khoá học toàn diện Supabase + Next.js
Next.js 15 (App Router)Đang cập nhật...Cập nhật App Router, SSR, ISR
Supabase Edge Functions Live DemoĐang cập nhật...Demo function, storage, auth
Auth & RLS WorkshopĐang cập nhật...Xây dựng auth an toàn với RLS
pgvector for AI SearchĐang cập nhật...Dựng AI app với pgvector
Deploy with Supabase CLIĐang cập nhật...Hướng dẫn chi tiết
Performance Testing (K6)Đang cập nhật...Tối ưu Edge Function / API latency

14.5 🧮 Cộng đồng & Kênh thảo luận

NguồnĐường dẫnGhi chú
Supabase Discordhttps://discord.supabase.comCộng đồng dev toàn cầu
Supabase GitHub Discussionshttps://github.com/supabase/supabase/discussionsThảo luận & Q&A kỹ thuật
Reddit r/Supabasehttps://reddit.com/r/SupabaseTrao đổi use case & kinh nghiệm
Supabase Status Pagehttps://status.supabase.comTheo dõi uptime hệ thống
Next.js Discordhttps://discord.gg/nextjsCộng đồng Next.js chính thức

14.6 🧩 Template & Boilerplate Repositories

Tên repoMô tảLink
supabase/supabaseMã nguồn open-source chính thứchttps://github.com/supabase/supabase
supabase/supabase-jsSDK JavaScript chính thứchttps://github.com/supabase/supabase-js
supabase-nextjs-templateSupabase + Next.js 15 templatehttps://github.com/Razikus/supabase-nextjs-template

14.7 🧠 Tài liệu chuyên sâu về PostgreSQL

Chủ đềĐường dẫnGhi chú
Postgres Documentationhttps://www.postgresql.org/docs/Tài liệu gốc
RLS & Security Policieshttps://www.postgresql.org/docs/current/ddl-rowsecurity.htmlRLS nguyên bản
EXPLAIN & Query Planninghttps://www.postgresql.org/docs/current/using-explain.htmlHiểu cơ chế query planner
Extensions Ecosystemhttps://pgxn.org/Tìm và cài extension
Partitioning Guidehttps://www.postgresql.org/docs/current/ddl-partitioning.htmlChia bảng theo thời gian / tenant

14.8 💼 Các công ty đang dùng Supabase

Công ty / Tổ chứcỨng dụngGhi chú
Phoenix EnergyChuyển đổi hạ tầng trọng yếuHoàn tất migration sang Supabase chỉ trong 6 tháng
RallyPan-European fleet payments platformVận hành toàn bộ quy trình thanh toán trên Supabase stack
SoshiAI social media managerTừ dự án hackathon thành startup nhờ Supabase
Kayhan SpaceSpace-ops telemetry toolingTăng 8× tốc độ phát triển sau khi chuyển sang Supabase
UdioMusic creation platformXây dựng trải nghiệm âm nhạc cộng tác trên Supabase

Tham khảo: Supabase Customer Stories

14.9 🔬 Hướng tự học nâng cao

Chủ đềMục tiêu
PostgreSQL internalsHiểu sâu optimizer, planner, locking
Edge compute & Deno runtimeViết Edge Function tối ưu
Supabase self-hosted stackTriển khai on-prem hoặc hybrid
AI / pgvectorXây search engine, semantic filter
OTEL & ObservabilityXây tracing toàn hệ thống
Multi-tenant RLS patternIsolation cho SaaS enterprise
Terraform + Supabase ProviderIaC cho Supabase project

14.10 📘 Đề xuất lộ trình học nâng cao

Giai đoạnTrọng tâmKết quả mong đợi
Tuần 1-2Ôn tập RLS, Auth, Policy nâng caoTự viết policy phức tạp
Tuần 3-4Edge Functions & CI/CDDeploy pipeline hoàn chỉnh
Tháng 2OTEL + Sentry + LoggingCó dashboard trace/log
Tháng 3pgvector + AI integrationSearch & LLM demo
Tháng 4+Self-host Supabase & IaCSetup Supabase riêng cho team

14.11 🧾 Kết luận

Phần "Tài liệu tham khảo" không chỉ là danh sách link, mà là bản đồ học tập mở rộng để bạn và team có thể tiếp tục nghiên cứu, thử nghiệm và chia sẻ kiến thức.

Sau khi hoàn thành toàn bộ 14 phần:

  • Bạn đã nắm vững nền tảng Supabase + Next.js,
  • Có thể triển khai, vận hành, bảo mật, tối ưu,
  • Và tiếp tục mở rộng lên cấp độ senior / architect với khả năng tích hợp AI, observability, multi-tenant, và self-hosted infrastructure.

Released under the MIT License.