Skip to content

Extension to Amazon SQS that adds support for sending and receiving messages greater than 256K

License

Notifications You must be signed in to change notification settings

gantner-nv/amazon-sqs-net-extended-client-lib

 
 

Repository files navigation

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

About

Extension to Amazon SQS that adds support for sending and receiving messages greater than 256K

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages

  • C# 99.8%
  • Shell 0.2%