After the RabbitMQ server and client are setup, I start to learn more about the RabbitMQ system. The core of RabbitMQ is based AMQP protocol. There are lots of information we can get on wiki.
The AMQP is basically start from bank industry and that's why some related terminology like broker are used in AMQP specification. Here is model of the AMQP.
If we want to make the application to be two way communication, we have to make the application with publisher and consumer characteristics.
There are definitions in the specifications and we can check directly on it.
Here is the packet sequence diagram that collect by the Wireshark.
The application plays two roles of clients in different thread.
We can define the private header and body in the content body for personal functions.
There is an important terminology name Routing Key. It's like the 'To:', 'cc:' and 'bcc:' in email. We have to synchronize the routing key name to let the message can send to the device we want. The definition in specification:
The first step of the application is basically done. Later we will implement more functions that we want on it.
沒有留言:
張貼留言