Senior engineers không chỉ nói solution. Họ nói trade-off: được gì, mất gì, rủi ro gì.
Mục tiêu
- Dùng cấu trúc compare/contrast
- Nói benefit và cost rõ
- Đưa recommendation có lý do
Pattern
textOption A is simpler, but it may... Option B requires more work, but it provides... I recommend Option B because...
Ví dụ:
textCaching at the API layer is simpler, but it may serve stale data. Caching at the domain layer requires more work, but it gives us better control over invalidation. I recommend the domain-layer approach because data freshness is important for checkout.
Useful language
textThe main benefit is... The downside is... This approach reduces... This may increase... The risk can be mitigated by...
Bài tập nhanh
Giải thích trade-off giữa monolith và microservices trong 5 câu.