Skip to main content
Version: 1.2.0

RabbitMQ

Advanced Message Queuing Protocol (AMQP) 0-9-1 frame structure:

Binary Layout

FieldInternal NameDescriptionType / FormatExample / Values
Typeframe_typeType of frameuint81 = Method, 2 = Header, 3 = Body, 8 = Heartbeat
Channelchannel_idChannel numberuint16e.g. 1, 0 for connection-level
Sizeframe_sizePayload size in bytesuint32e.g. 0x00000014
PayloadpayloadFrame-specific dataBinaryDepends on frame_type
Endframe_endFrame terminatoruint8Always 0xCE

Frame Types

TypeNamePurpose
1MethodAMQP method calls (open, close, publish, etc.)
2HeaderContent header with properties
3BodyMessage content data
8HeartbeatKeep-alive signal