Exchange Types
Pick the exchange type that matches your routing pattern: direct, topic, fanout, or headers.
The exchange type determines how a message is routed from the exchange to queues. There are four. A direct exchange routes to queues whose binding key exactly matches the message's routing key — ideal for point-to-point or simple level-based routing. A topic exchange matches routing keys against patterns with wildcards (* for one word, # for zero or more), giving flexible publish/subscribe by category.
Direct is addressing a letter to one named department. Topic is a magazine subscription by category ("all sports.football news"). Fanout is the building-wide PA system — everyone hears it. Headers is routing mail by a checklist of attributes (urgent + international) rather than the address line.