Skip to content

Latest commit

 

History

History
39 lines (26 loc) · 1.68 KB

File metadata and controls

39 lines (26 loc) · 1.68 KB

Amazon SQS Extended Client Library for .NET

Stand With Ukraine

Build status

This is port to .NET of existing Amazon Extended Client Library for Java It enables you to store message payloads in S3 and hence overcomes message size limitation of the SQS. With this library you can:

  • Specify whether message payloads should be always stored in S3 or when message size exceeds configurable threshold.

  • Send message and store its payload in S3 bucket.

  • Receive stored message from S3 bucket transparently

  • Delete stored payload from the S3 bucket.

Installation

Nuget

To install via nuget, run following command in the Package Manager Console

Install-Package Amazon.SQS.ExtendedClient

Usage

var s3Client = new AmazonS3Client(new BasicAWSCredentials("<key>", "<secret>"), "<region>");
var sqsClient = new AmazonSQSClient(new BasicAWSCredentials("<key>", "<secret>"), "<region>");
var extendedClient = new AmazonSQSExtendedClient(
    sqsClient, 
    new ExtendedClientConfiguration().WithLargePayloadSupportEnabled(s3Client, "<s3bucketname>"));
extendedClient.SendMessage(queueUrl, "MessageBody");