Skip to content

Databases

RabbitMQ Message Broker Management in VS Code

RabbitMQ is a widely deployed open-source message broker that provides reliable messaging for distributed systems. Key characteristics include:

  • Flexible routing: Direct, fanout, topic, and header exchange types for complex message flows
  • Reliability: Message acknowledgment, persistence, and publisher confirms
  • Multiple protocols: AMQP 0-9-1, MQTT, and STOMP support
  • Clustering and high availability: Mirrored queues and quorum queues for fault tolerance
  • Management interface: Built-in HTTP API for monitoring and administration

RabbitMQ is ideal for microservices communication, task queues, event distribution, and asynchronous processing.

To connect to RabbitMQ in DBCode:

  1. Open the DBCode Extension: Launch Visual Studio Code and open the DBCode extension.
  2. Add a New Connection: Click on the “Add Connection” icon.
  3. Complete connection form: Select RabbitMQ as the database type and enter:
    • Host and AMQP port (default: 5672), plus the management API port (default: 15672)
    • Username and password (default: guest/guest)
    • Virtual host if not using the default
    • TLS configuration if required: enable SSL, choose full, CA-only, or no certificate verification, and optionally supply a CA certificate and a client certificate and key for mutual TLS
  4. Connect: Click save to connect to your RabbitMQ broker.
  5. Start Browsing: Navigate exchanges, queues, and bindings.

For detailed instructions, refer to the Connect article.

DBCode uses both the AMQP protocol and the management HTTP API, so the management port must be reachable. When connecting through an SSH tunnel, the management port is forwarded alongside the AMQP port automatically. With TLS enabled, both the AMQP connection and the management API use the certificate settings above.

DBCode enhances your RabbitMQ management experience with:

  • Queue browsing: View queues with message counts and consumer information
  • Message peeking: Inspect message content and properties without consuming
  • Exchange topology: Expand exchanges to see bound queues and routing keys
  • Message publishing: Publish messages via the standard DBCode grid interface
  • Queue management: Create and drop queues directly from the explorer
  • Live Streaming: Subscribe to a queue to consume messages in real time. Right-click a queue and select Subscribe to open a streaming data grid that displays new messages as they arrive
  • Server monitoring: Open the monitoring panel for a broker overview (message rates and totals), client connections, channels, queue depths, per-node memory, disk, and file-descriptor usage with alarm status, and cluster information

Opening a queue from the explorer shows a snapshot of its recent messages, peeked without consuming them. Streaming new messages live is a Pro feature: click Go Live to start it (with a Pro subscription the queue starts streaming as soon as you open it).

RabbitMQ messages are immutable, so you can publish new messages but cannot update or delete individual messages already in a queue. Use Purge to clear a queue’s contents.

For more information about RabbitMQ, visit rabbitmq.com.