Đây là câu hỏi kinh nghiệm — người phỏng vấn muốn biết bạn đã làm thật hay chỉ đọc lý thuyết, nên trả lời theo trải nghiệm thật và có cấu trúc.
Nếu công ty bạn có dùng: kể theo mạch —
- bối cảnh: vì sao chọn (nhiều team, monolith deploy nghẽn, cần nâng cấp dần khỏi legacy)
- cách tích hợp: build-time hay run-time, dùng gì (Module Federation / single-spa / iframe / Web Components)
- cách các mảnh giao tiếp và chia sẻ dependency
- ưu/nhược THỰC TẾ team gặp (vd duplicate deps, giữ UI nhất quán) và cách xử lý
- kết quả (deploy nhanh hơn, team bớt xung đột khi làm chung)
Nếu chưa từng dùng: nói thẳng "chưa", rồi thể hiện hiểu biết — khi nào nên dùng, bạn sẽ tiếp cận thế nào, và tham chiếu cách các công ty lớn làm (Zalando tích hợp ở server bằng ESI, DAZN tích hợp phía client) để cho thấy bạn nắm pattern.
Lưu ý: đừng bịa kinh nghiệm — người phỏng vấn sẽ hỏi sâu vào chi tiết (versioning, fault isolation, shared state...); thà nói "chưa làm nhưng hiểu pattern" còn hơn bị phát hiện.
This is an experience question — the interviewer wants to know whether you've actually done it or only read theory, so answer from real experience and with structure.
If your company uses it: walk through —
- context: why you chose it (many teams, monolith deployment bottleneck, need to migrate off legacy incrementally)
- composition: build-time or run-time, and with what (Module Federation / single-spa / iframe / Web Components)
- how pieces communicate and share dependencies
- the REAL pros/cons your team hit (e.g., duplicate deps, keeping the UI consistent) and how you handled them
- results (faster deploys, teams conflicting with each other less)
If you haven't used it: say so plainly, then show understanding — when it's worth it, how you'd approach it, and reference how large companies do it (Zalando composes on the server via ESI, DAZN composes on the client) to show you grasp the patterns.
Note: don't fabricate experience — the interviewer will dig into details (versioning, fault isolation, shared state...); "I haven't done it but I understand the pattern" beats being caught out.