Skip to main content
InterviewHubPRO
Section Overview
Q11

Question 11 of 50

Part 1: Basic & Foundational Concepts (Junior / Entry-Level)

22%
RabbitMQ & AMQP (50 Qs)•Part 1: Basic & Foundational Concepts (Junior / Entry-Level)

What are Connection and Channel abstractions in AMQP?

junior LevelState ManagementRabbitMQGolang

In Simple Words:

  • Connection: A real, heavy TCP/IP socket between your application process and the RabbitMQ broker. Involves TLS handshakes and authentication. Opening and closing connections frequently causes severe CPU overhead.
  • Channel: A lightweight virtual connection multiplexed inside a single TCP connection.
    • Rule of Thumb: An application should open one long-lived Connection per application process, and open one Channel per thread or concurrent worker.
    • Channels are cheap to create and destroy; connections are not.