Đ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 must (1) persist a new order row in its PostgreSQL database and (2) publish an OrderCreated event so downstream inventory and notification services react. The team notices that after DB commit, the process sometimes crashes before the broker ack, so events are silently lost. They consider replacing the direct publish with the Transactional Outbox pattern (write the event into an outbox table in the same DB transaction, then a relay polls the table and publishes to Kafka). What is the most accurate trade-off of adopting this pattern here?