i read the tutorials,RabbitMQ is a message broker,and the message is a string.
is there any idea that the message is defined as a class or a struct?so i can define my message struct.
i read the tutorials,RabbitMQ is a message broker,and the message is a string. is
Share
The message is sent as a byte stream, so you can convert any object that is serializable into a byte stream and send it, then deserialize it on the other side.
put this in the message object, and call it when the message is published:
put this in the message object and call it when the message is consumed: