การปรับ RabbitMQ ให้เหมาะสมเกี่ยวข้องกับการสร้างสมดุลระหว่าง throughput กับ ฟีเจอร์ด้านความน่าเชื่อถือ การ tune consumer และ connection และการจัดการทรัพยากร การเข้าใจปัจจัยด้าน performance และ trade-off มีความสำคัญต่อ RabbitMQ ที่มี performance สูง
trade-off ระหว่าง throughput กับความน่าเชื่อถือ
Reliability features have a PERFORMANCE COST:
→ PERSISTENCE (durable/persistent) → disk writes → slower but durable
→ PUBLISHER CONFIRMS / ACKS → round-trips → slower but reliable
→ REPLICATION (quorum queues) → overhead but HA
→ TUNE based on needs: max reliability (slower) vs max throughput (fewer guarantees)
→ use persistence/confirms/acks where messages MUST NOT be lost; skip where loss is OK
