Urgent.News

What's breaking now, across thousands of outlets.

Tech

Large SQS and SNS messages in Kotlin: the extended client pattern without Java baggage

Every SQS queue and SNS topic has a message size limit. When a payload is larger, the usual answer is the claim check pattern: put the payload in S3, send a small pointer instead, and resolve the pointer on the receiving side. AWS ships this pattern as two Java libraries, amazon-sqs-java-extended-client-lib and amazon-sns-java-extended-client-lib , both built on…

SQS and SNS have limits on message size. When payloads exceed these limits, the claim check pattern is used. AWS provides this pattern as Java libraries, but these libraries do not work with Kotlin on AWS SDK for Kotlin. To address this, three libraries were created on Maven Central: s3overflow for storing payloads, sqsoverflow for offloading large messages in SQS, and snsoverflow for offloading large messages in SNS.

The post explains the limitations of the Java libraries, the process of porting them to Kotlin, and the benefits of using these ports.

Written by urgent.news from Dev.to's reporting — not their text. Machine-written — may contain errors; check the original before relying on it.

Read the original at dev.to →

More in Tech

Building a C++ File Encryptor: Practical Cryptography & File I/O for Beginners

Before my Computer Science engineering journey officially kicked off , I decided to bridge the gap between basic C++ theory and real-world application.

  • C++ File Encryptor project bridges theory and practical application
  • Implements byte-level substitution via ASCII shifting for encryption
  • Emphasizes proper file stream management to prevent data corruption

More from Saturday 26 September →