Let's quickly go over what we covered in the previous tutorials.
The core idea in the messaging model in RabbitMQ is that the producer never sends any messages directly to a queue. Actually, quite often the producer doesn't even know if a message will be delivered to any queue at all.
But what if we need to run a function on a remote computer and wait for the result?
As mentioned above, you read data from a channel into a buffer, and write data from a buffer into a channel.
A Buffer
has three properties you need to be familiar with.
The MappedByteBuffer
is a bit special, and will be covered in its own text.
Aside from its content, the essential properties of a buffer are its capacity, limit, and position