Skip to content

Instantly share code, notes, and snippets.

View phanngoctuan1990's full-sized avatar
🎯
Focusing

Tuan Phan Ngoc phanngoctuan1990

🎯
Focusing
View GitHub Profile
@phanngoctuan1990
phanngoctuan1990 / Q&A.md
Created December 14, 2025 07:18
[Design System] CAP Theorem & Consistency Patterns

Phỏng vấn Giả lập: CAP & Consistency Patterns (Mock Interview)

Đây là 3 câu hỏi phỏng vấn được thiết kế để đánh giá tư duy hệ thống và khả năng ra quyết định kiến trúc của bạn về chủ đề CAP & Consistency Patterns, theo tiêu chuẩn của một Senior Software Engineer tại Google.

Bối cảnh: Xin chào, tôi là Lead Architect. Hôm nay chúng ta sẽ tập trung vào các trade-off trong hệ thống phân tán, cụ thể là CAP Theorem và các Consistency Patterns. Tôi kỳ vọng bạn không chỉ nhắc lại định nghĩa mà còn phân tích được ý nghĩa kinh doanh và chi phí vận hành của mỗi lựa chọn.


1. Level Junior (Kiến thức Cơ bản & Ứng dụng)

@phanngoctuan1990
phanngoctuan1990 / README.md
Created February 16, 2020 05:43 — forked from pbojinov/README.md
Two way iframe communication- Check out working example here: http://pbojinov.github.io/iframe-communication/

Two way iframe communication

The main difference between the two pages is the method of sending messages. Recieving messages is the same in both.

Parent

Send messages to iframe using iframeEl.contentWindow.postMessage Recieve messages using window.addEventListener('message')

iframe