-
Notifications
You must be signed in to change notification settings - Fork 7
Adjust SQS limits #403
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Adjust SQS limits #403
Changes from all commits
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
| Original file line number | Diff line number | Diff line change |
|---|---|---|
|
|
@@ -9,7 +9,7 @@ import type { SQSMessage } from '../types/MessageTypes.ts' | |
| import { deleteSqs, initSqs } from '../utils/sqsInitter.ts' | ||
|
|
||
| // https://docs.aws.amazon.com/AWSSimpleQueueService/latest/SQSDeveloperGuide/quotas-messages.html | ||
| export const SQS_MESSAGE_MAX_SIZE = 256 * 1024 // 256KB | ||
| export const SQS_MESSAGE_MAX_SIZE = 1024 * 1024 // 1 MiB | ||
|
Comment on lines
11
to
+12
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more.
Amazon SQS increased the maximum message payload size from 256 KiB to 1 MiB for standard and FIFO queues, so the constant value itself is correct. 🤖 Prompt for AI Agents🧩 Analysis chain🏁 Script executed: #!/bin/bash
# Description: Verify the `@aws-sdk/client-sqs` version in use and check for large-message tests.
# 1. Show declared version across all package.json files (excluding node_modules)
echo "=== Declared `@aws-sdk/client-sqs` version ==="
fd 'package.json' --type f | xargs grep '"@aws-sdk/client-sqs"' 2>/dev/null
# 2. Check if any test or source files exercise message sizes near/above 262144 bytes
echo -e "\n=== Large-message test/usage references ==="
rg -n --type ts -C 3 'SQS_MESSAGE_MAX_SIZE|262144|1048576|maxPayloadSize'Repository: kibertoad/message-queue-toolkit Length of output: 6192 🏁 Script executed: #!/bin/bash
# Check how payload offloading handles large messages and look for validator constraints
# 1. Look at payload offloading implementation
echo "=== Payload offloading implementation ==="
fd 'payloadOffloa' --type ts | head -5 | xargs -I {} bash -c 'echo "File: {}"; head -50 {}'
# 2. Search for test message creation to see if large messages are actually sent
echo -e "\n=== Test message creation in payload offloading tests ==="
rg -A 10 'describe.*payload offloading' packages/sqs/test/consumers/SqsPermissionConsumer.payloadOffloading.spec.ts | head -30Repository: kibertoad/message-queue-toolkit Length of output: 1332 🌐 Web query:
💡 Result: Amazon SQS raised the maximum message payload size to 1,048,576 bytes (1 MiB) on August 4, 2025 (from 256 KiB). [1] The SQS quotas/docs now state “Message size … maximum is 1,048,576 bytes (1 MiB)”, and the FAQ likewise says So if When will the SDK update? I couldn’t find any AWS-published date/commit guaranteeing when Practical implication: SQS can accept up to 1 MiB (subject to the queue’s Sources 🏁 Script executed: #!/bin/bash
# Look at the actual test to see message sizes being tested
echo "=== Test file content (first 150 lines) ==="
cat -n packages/sqs/test/consumers/SqsPermissionConsumer.payloadOffloading.spec.ts | head -150Repository: kibertoad/message-queue-toolkit Length of output: 6846 Upgrade The project pins If any code attempts to send a 🤖 Prompt for AI Agents |
||
| export const SQS_RESOURCE_ANY = Symbol('any') | ||
| export const SQS_RESOURCE_CURRENT_QUEUE = Symbol('current_queue') | ||
|
|
||
|
|
||
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
// 1 MiB (default maximum)is ambiguous — clarify whether this is the new per-queue default or just the new maximum allowed value.The
MaximumMessageSizequeue attribute previously defaulted to 262,144 bytes (256 KiB). If you've explicitly set theMaximumMessageSizeattribute, you might need to adjust it to a new desired value. This wording implies the default was not automatically raised to 1 MiB — only the maximum ceiling was. If that's the case, settingMaximumMessageSize: '1048576'here doesn't represent the default but rather explicitly opts into the new maximum.📝 Suggested comment clarification
📝 Committable suggestion
🤖 Prompt for AI Agents