I wish the core message sending interaction between client and servers was more symmetric. If your a client send server messages or a server sending client messages, the protocol should look the same IMHO.
For example I wish clients sent messages with:
MESSAGE
destination:/queue/a
ack-id: 123
hello queue a
^@
and the sever responds with a
ACK
id: 123
^@
When the client receives a message he would get get a very symmetric exchange looking like:
MESSAGE
destination:/queue/a
ack-id: 456
hello queue a
^@
and the client responds with a
ACK
id: 456
^@
So to get there what would we need to change? Clients would need to use a MESSAGE frame instead of SEND
frame. Rename the RECEIPT/receipt-id/receipt frames/headers to be ACK/id/ack-id.
This should simplify the protocol as you consolidate 2 commands (RECEIPT and ACK) into 1.
What do you guys think?
--
Regards,
Hiram
Blog:
http://hiramchirino.comOpen Source SOA
http://fusesource.com/