Using the Amazon SQS message group ID - Amazon Simple Queue Service

Using the Amazon SQS message group ID

MessageGroupId is the tag that specifies that a message belongs to a specific message group. Messages that belong to the same message group are always processed one by one, in a strict order relative to the message group (however, messages that belong to different message groups might be processed out of order).