Bỏ qua để đến nội dung
Ẩn mục lục
Knowledge Hub
Tìm kiếm
Ctrl
K
Hủy
Chọn giao diện
Tối
Sáng
Tự động
Chọn ngôn ngữ
English
Tiếng Việt
Menu
Playground
Tổng quan
Database
Flash sale
Chọn lock/isolation
Query chậm dần
Chọn loại index
Migration khoá bảng
Lộ dữ liệu giữa tenant
Tạo index online
Đổi tên cột
Scale Lab
Scale Lab
Đề: URL shortener
Đề: Bán vé
Đề: Notifications
Đề: Chat realtime
Scale Lab: Sandbox
System design
Dựng URL shortener
Checkout bất đồng bộ
Upload ảnh & video
Sao đăng bài
Bù trừ saga
Thanh toán timeout
HTTP status code
Cache-Control
Chọn design pattern
Messaging & cache
Kafka lag tăng
Tương thích schema
Cache stampede
Vận hành & sự cố
Sự cố 3 giờ sáng
Thứ tự ứng cứu
Retry storm
Rò rỉ bộ nhớ
CPU throttling
Probe restart dây chuyền
Graceful shutdown
Canary & feature flag
Bảo mật & quan sát
JWT bị lộ
Luồng OAuth PKCE
API lộ dữ liệu
Log, metric hay trace?
Nền tảng dữ liệu
PostgreSQL
Tổng quan
Lưu trữ & index
Page, heap, tuple, TOAST
B-tree index
Composite index
Partial, expression, covering
GIN, GiST, BRIN
Vì sao index không được dùng
Query & planner
Đọc EXPLAIN
Statistics và ANALYZE
Join algorithms
OFFSET và keyset
Partitioning
Transaction & MVCC
ACID
MVCC
Các anomaly
Isolation levels
Transaction trong code
VACUUM và bloat
XID wraparound
Locking
Row-level locks
Table-level locks
Lock queue
NOWAIT và SKIP LOCKED
Optimistic vs pessimistic
Advisory lock
Deadlock
Timeout và quan sát lock
Vận hành
Connection pooling & PgBouncer
Replication & read replica
Upsert: ON CONFLICT
Kiểu dữ liệu dễ dùng sai
UUID hay bigint làm khoá
Row-level security & multi-tenancy
Cache & Redis
Tổng quan
Cache-aside
Cache stampede
Expiration và eviction
Redis event loop
Redis data structures
Persistence: RDB và AOF
Pipelining, MULTI và Lua
Distributed lock
Cache penetration & avalanche
Giao tiếp & phân tán
Messaging
Tổng quan
Kafka: nền tảng
Distributed log
Key và thứ tự
Consumer group, rebalance
Commit offset
Kafka: độ bền
Replication, ISR, acks
Idempotent producer
Transaction, exactly-once
Retention, compaction
Kafka: vận hành
Consumer lag
Retry topic và DLQ
Share groups
RabbitMQ
Exchange và routing
Ack, prefetch, confirms
Dead-letter và TTL
Queue types
Pattern chung
Consumer idempotent
Transactional outbox
Tiến hoá schema event
Distributed systems
Tổng quan
Tám ngộ nhận
Retry, backoff, jitter
Logical clock
Circuit breaker & bulkhead
Saga pattern
API & networking
Tổng quan
Lỗi API (RFC 9457)
Timeout budget
Webhook
Rate limiting
Idempotency-Key
HTTP caching
Kiến trúc & mã nguồn
Architecture
Tổng quan
Monolith hay microservices
Bounded context
Hexagonal & clean architecture
CQRS & event sourcing
Design patterns
Tổng quan
Adapter
Strategy
Decorator
Observer & domain event
NestJS
Tổng quan
Module, provider, controller
Dependency injection
Provider scope
Request lifecycle
Custom decorator & Reflector
Dynamic module
Validation DTO
Exception filter & error response
Transaction xuyên service (CLS)
Node.js
Tổng quan
Event loop
Streams và backpressure
AsyncLocalStorage
Engineering practices
Tổng quan
Đặt tên
Tổng quan
Quy tắc cốt lõi
PostgreSQL
API, event, env
Lỗi hay gặp
Clean code
Tổng quan
Refactor an toàn
Hàm và side effect
Lỗi, comment, DRY
Lỗi hay gặp
Lỗi hay gặp khi code
Tổng quan
Async & lỗi
Số, ngày, chuỗi
Database & transaction
API & bảo mật
Hiệu năng & tài nguyên
Git
Tổng quan
Commit
Branch & merge
Cứu sự cố
Secret & PR
Lỗi hay gặp
Code review
Tổng quan
Ưu tiên review
Người viết PR
Người review
Viết comment
Anti-pattern, metric
Lỗi hay gặp
ADR & tài liệu
Tổng quan
ADR là gì
Viết ADR tốt
Docs ngoài ADR
Giữ docs sống
Lỗi hay gặp
Config & 12-factor
Tổng quan
12-factor & build
Parse & validate
Kubernetes & runtime
Lỗi hay gặp
Sự cố & postmortem
Tổng quan
Ứng cứu sự cố
Debug giả thuyết
Giao tiếp
Postmortem
Lỗi hay gặp
Vận hành & chất lượng
Observability
Tổng quan
Logs, metrics, traces
Correlation ID
SLI, SLO, error budget
Metric cardinality
Security
Tổng quan
BOLA / IDOR
CORS và CSRF
SSRF
Session hay JWT
Secure coding
Hash mật khẩu
OAuth 2.0, OIDC và PKCE
Testing
Tổng quan
Unit, integration, e2e
Flaky test
Load testing với k6
Testcontainers
DevOps
Tổng quan
Health probes
Graceful shutdown
Expand–contract
Docker multi-stage & non-root
Requests & limits
Chiến lược deploy
Tham khảo
Case studies
Tổng quan
URL shortener
News feed
Hệ thống thanh toán
Glossary
Tổng quan
Chọn giao diện
Tối
Sáng
Tự động
Chọn ngôn ngữ
English
Tiếng Việt
Tag: ci
Cơ bản
Nội dung này là bản nháp và sẽ không được đưa vào các phiên bản thật.
1 bài viết được gắn tag
ci
:
Dockerfile cho Node.js: multi-stage, layer cache và chạy non-root