Which solution will meet these requirements with the FEWEST changes to the code?
Use the Amazon SQS Extended Client Library for Java to host messages that are larger than 256 KB in Amazon S3.
Use Amazon EventBridge to post large messages from the application instead of Amazon SQS.
Change the limit in Amazon SQS to handle messages that are larger than 256 KB.
Store messages that are larger than 256 KB in Amazon Elastic File System (Amazon EFS). Configure Amazon SQS to reference this location in the messages.
Explanations:
The Amazon SQS Extended Client Library for Java allows you to store large messages (over 256 KB) in Amazon S3 and send a reference to the S3 location in the SQS message. This approach requires minimal code changes as the library handles the integration with S3 and SQS.
Amazon EventBridge is designed for event-driven architectures and does not directly solve the issue of sending large messages. It also introduces a different paradigm that would require significant changes to the application.
Amazon SQS has a fixed message size limit of 256 KB. This cannot be increased by changing any settings within SQS itself.
Amazon Elastic File System (EFS) is not integrated with SQS for large message handling. This would require significant changes and is not an optimal solution as it adds unnecessary complexity.