Đang mở hậu trường...
Chọn đáp án để xem tỉ lệ cộng đồng và giải thích. Câu hỏi được chọn tự động — mọi người cùng làm 1 câu mỗi ngày.
An Order service commits orders to its database and then publishes OrderCreated events to a message broker used by inventory, billing, and analytics teams. Production incidents show both missing events when the service crashes after the database commit and duplicate deliveries during broker retries. Without introducing distributed two-phase commit, which design best preserves business consistency at scale?