@@ -71,7 +71,7 @@ Publishers send messages to SQS queues. They handle:
7171- Message validation against Zod schemas
7272- Automatic serialization
7373- Optional deduplication (preventing duplicate sends)
74- - Optional payload offloading (for messages > 256KB )
74+ - Optional payload offloading (for messages > 1 MiB )
7575- FIFO-specific concerns (MessageGroupId, MessageDeduplicationId)
7676
7777### Consumers
@@ -380,7 +380,7 @@ When using `creationConfig`, the queue will be created automatically if it doesn
380380
381381 // Other attributes
382382 DelaySeconds : ' 0' , // Default delay for all messages
383- MaximumMessageSize : ' 262144 ' , // 256 KB (default maximum)
383+ MaximumMessageSize : ' 1048576 ' , // 1 MiB (default maximum)
384384 },
385385 tags : {
386386 Environment : ' production' ,
@@ -457,7 +457,7 @@ When using `locatorConfig`, you connect to an existing queue without creating it
457457 // Optional - Payload Offloading
458458 payloadStoreConfig : {
459459 payloadStore : s3Store , // S3-based payload store
460- maxPayloadSize : 256 * 1024 , // 256 KB
460+ maxPayloadSize : 1024 * 1024 , // 1 MiB
461461 },
462462
463463 // Optional - Deletion
@@ -755,7 +755,7 @@ Prevents processing the same message multiple times:
755755
756756### Payload Offloading
757757
758- For messages larger than 256 KB , store the payload externally (e.g., S3):
758+ For messages larger than 1 MiB , store the payload externally (e.g., S3):
759759
760760``` typescript
761761import { S3PayloadStore } from ' @message-queue-toolkit/s3-payload-store'
@@ -769,15 +769,15 @@ const payloadStore = new S3PayloadStore({
769769{
770770 payloadStoreConfig : {
771771 payloadStore ,
772- maxPayloadSize : 256 * 1024 , // 256 KB threshold
772+ maxPayloadSize : 1024 * 1024 , // 1 MiB threshold
773773 },
774774}
775775
776776// Large message is automatically offloaded
777777await publisher .publish ({
778778 id: ' 123' ,
779779 messageType: ' document.processed' ,
780- largeData: hugeArrayOfData , // If total size > 256 KB , stored in S3
780+ largeData: hugeArrayOfData , // If total size > 1 MiB , stored in S3
781781})
782782```
783783
0 commit comments