QualiIT.AWSSQS.ExtendedClient

Fork of extension to Amazon SQS that adds support for sending and receiving messages greater than 256K


Keywords
AWS, Amazon, SQS, cloud, bucket, s3
License
Apache-2.0
Install
Install-Package QualiIT.AWSSQS.ExtendedClient -Version 1.3.2

Documentation

Amazon SQS Extended Client Library for .NET

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")