Whats the difference between a frame and an envelope in rabbitmq-c?

240 views Asked by At

What is the difference between a frame and an envelope in the context of rabbitmq-c. The examples seem to use them interchangeably, and its not clear what the difference is.

1

There are 1 answers

2
alanxz On BEST ANSWER

A frame (or amqp_frame_t) is an AMQP protocol level construct. It represents a unit of transmission over the network can contain a number of different payloads.

An envelope (amqp_envelope_t) is a complete received message. An envelope is usually constructed from 3 or more frames. (One method, one header, and one or more body frames).