feat(sqs): retain MessageGroupId on standard queue messages (#1891)

* feat(sqs): retain MessageGroupId on standard queue messages

Standard queues dropped MessageGroupId on SendMessage, so
ReceiveMessage never returned it. Since the July 2025 fair-queues
launch, standard queues accept MessageGroupId and return it as a
message system attribute.

Store the value in the standard-queue branch of sendMessage; both
protocol handlers already parse it on send and return it on receive,
covering single and batch sends. Delivery is unchanged: group locking
only applies in the FIFO claim path, so same-group standard messages
still deliver in parallel, matching AWS.

Closes #1496

* test(sqs): give the new test a unique @Order

* chore: retrigger ci
This commit is contained in:
soreavis authored and GitHub committed 2026-08-01 16:19:27 -05:00
1 parent fcb22be76b
commit a01b707bdc
2 files changed
+33 -1

No files matched your search

@@ -479,8 +479,10 @@ public class SqsService implements Resettable {
return message;
}
// Standard queue
// Standard queue. MessageGroupId is retained for ReceiveMessage to
// return (fair queues); it has no effect on standard-queue delivery.
Message message = new Message(body);
message.setMessageGroupId(messageGroupId);
message.setAwsTraceHeader(awsTraceHeader);
if (effectiveDelaySeconds > 0) {
message.setVisibleAt(Instant.now().plusSeconds(effectiveDelaySeconds));