2.3. Message grouping and segmentation

Message grouping is a facility that allows the programmer to add some grouping logic to the messages that are being sent through a queue without having to introduce that logic in the messages themselves. This way the application processing those messages can concentrate on the actual data to be processed and leave the group management to MQSeries.

There are two main reason for using grouping:

  • The messages in the given group have to be processed in the correct order.

  • Each of the messages in a group need to be processed in a related way.

Logical order means that the messages belonging to a group are read in their correct order even if some other message or messages arrive onto the queue in the middle of the ...

Get MQSeries Programming Patterns now with the O’Reilly learning platform.

O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.