Virtual hosts (vhosts) in RabbitMQ provide logical isolation within a single broker — separate namespaces for queues, exchanges, and permissions. They let one RabbitMQ instance serve multiple isolated applications or environments.
What virtual hosts are
VIRTUAL HOST (vhost) → a logically isolated namespace within a RabbitMQ broker:
→ each vhost has its OWN queues, exchanges, bindings (isolated from other vhosts)
→ its own PERMISSIONS (users granted access per vhost)
→ like separate "virtual brokers" within one physical broker
→ partitions a single RabbitMQ instance into isolated environments
