Trung BìnhRabbitMQ iconRabbitMQ

Persistent message và transient message khác nhau như thế nào?

Persistent message có delivery mode 2, được ghi xuống disk, survive broker crash/restart — an toàn nhưng chậm hơn do disk I/O. Transient message có delivery mode 1, chỉ sống trong RAM, mất khi broker crash — nhanh nhưng rủi ro. Dùng persistent cho dữ liệu critical (thanh toán, đơn hàng, user account), transient cho dữ liệu có thể thay thế (notification, analytics, cache invalidation).

Lưu ý: queue durable KHÔNG đủ — cần cả queue durable VÀ message persistent mới đảm bảo survive hoàn toàn.

Xem toàn bộ RabbitMQ cùng filter theo level & chủ đề con.

Mở danh sách RabbitMQ