Goa.Clients.Sqs
0.9.1-preview
This is a prerelease version of Goa.Clients.Sqs.
dotnet add package Goa.Clients.Sqs --version 0.9.1-preview
NuGet\Install-Package Goa.Clients.Sqs -Version 0.9.1-preview
This command is intended to be used within the Package Manager Console in Visual Studio, as it uses the NuGet module's version of Install-Package.
<PackageReference Include="Goa.Clients.Sqs" Version="0.9.1-preview" />
For projects that support PackageReference, copy this XML node into the project file to reference the package.
<PackageVersion Include="Goa.Clients.Sqs" Version="0.9.1-preview" />
<PackageReference Include="Goa.Clients.Sqs" />
For projects that support Central Package Management (CPM), copy this XML node into the solution Directory.Packages.props file to version the package.
paket add Goa.Clients.Sqs --version 0.9.1-preview
The NuGet Team does not provide support for this client. Please contact its maintainers for support.
#r "nuget: Goa.Clients.Sqs, 0.9.1-preview"
#r directive can be used in F# Interactive and Polyglot Notebooks. Copy this into the interactive tool or source code of the script to reference the package.
#:package Goa.Clients.Sqs@0.9.1-preview
#:package directive can be used in C# file-based apps starting in .NET 10 preview 4. Copy this into a .cs file before any lines of code to reference the package.
#addin nuget:?package=Goa.Clients.Sqs&version=0.9.1-preview&prerelease
#tool nuget:?package=Goa.Clients.Sqs&version=0.9.1-preview&prerelease
The NuGet Team does not provide support for this client. Please contact its maintainers for support.
Goa.Clients.Sqs
SQS client for queue operations in high-performance AWS Lambda functions. This package provides a lightweight, AOT-ready SQS client optimized for minimal cold start times.
Installation
dotnet add package Goa.Clients.Sqs
Features
- Native AOT support for faster Lambda cold starts
- Minimal dependencies and memory allocations
- Built-in error handling with ErrorOr pattern
- Support for standard and FIFO queues
- Batch operations for improved performance
- Dead letter queue support
Usage
Basic Setup
using Goa.Clients.Sqs;
using Microsoft.Extensions.DependencyInjection;
// Register SQS client
services.AddSqs();
Sending Messages
using Goa.Clients.Sqs.Operations.SendMessage;
using System.Text.Json;
public class QueueService
{
private readonly ISqsClient _sqs;
public QueueService(ISqsClient sqs)
{
_sqs = sqs;
}
public async Task<bool> SendMessageAsync(string queueUrl, object message)
{
var request = new SendMessageRequest
{
QueueUrl = queueUrl,
MessageBody = JsonSerializer.Serialize(message)
};
var result = await _sqs.SendMessageAsync(request);
return !result.IsError;
}
}
Receiving Messages
using Goa.Clients.Sqs.Operations.ReceiveMessage;
using Goa.Clients.Sqs.Models;
public async Task<List<SqsMessage>> ReceiveMessagesAsync(string queueUrl)
{
var request = new ReceiveMessageRequest
{
QueueUrl = queueUrl,
MaxNumberOfMessages = 10,
WaitTimeSeconds = 20
};
var result = await _sqs.ReceiveMessageAsync(request);
return result.IsError ? new List<SqsMessage>() : result.Value.Messages ?? new List<SqsMessage>();
}
Multiple Messages
public async Task SendMultipleMessagesAsync(string queueUrl, List<OrderEvent> orders)
{
foreach (var order in orders)
{
var request = new SendMessageRequest
{
QueueUrl = queueUrl,
MessageBody = JsonSerializer.Serialize(order)
};
var result = await _sqs.SendMessageAsync(request);
if (result.IsError)
{
Console.WriteLine($"Send failed: {result.FirstError}");
}
}
}
FIFO Queue Support
public async Task SendFifoMessageAsync(string queueUrl, object message, string groupId)
{
var request = new SendMessageRequest
{
QueueUrl = queueUrl,
MessageBody = JsonSerializer.Serialize(message),
MessageGroupId = groupId,
MessageDeduplicationId = Guid.NewGuid().ToString()
};
var result = await _sqs.SendMessageAsync(request);
if (result.IsError)
{
Console.WriteLine($"Send failed: {result.FirstError}");
}
}
Documentation
For more information and examples, visit the main Goa documentation.
| Product | Versions Compatible and additional computed target framework versions. |
|---|---|
| .NET | net10.0 is compatible. net10.0-android was computed. net10.0-browser was computed. net10.0-ios was computed. net10.0-maccatalyst was computed. net10.0-macos was computed. net10.0-tvos was computed. net10.0-windows was computed. |
Compatible target framework(s)
Included target framework(s) (in package)
Learn more about Target Frameworks and .NET Standard.
-
net10.0
- ErrorOr (>= 2.1.1)
- Goa.Clients.Core (>= 0.9.1-preview)
NuGet packages
This package is not used by any NuGet packages.
GitHub repositories
This package is not used by any popular GitHub repositories.
| Version | Downloads | Last Updated |
|---|---|---|
| 0.9.1-preview | 71 | 8/24/2026 |
| 0.9.0-preview | 433 | 6/18/2026 |
| 0.8.0-preview | 414 | 3/17/2026 |
| 0.7.8-preview | 117 | 3/3/2026 |
| 0.7.7-preview | 74 | 3/3/2026 |
| 0.7.6-preview | 77 | 3/3/2026 |
| 0.7.5-preview | 89 | 3/2/2026 |
| 0.7.4-preview | 88 | 3/1/2026 |
| 0.7.3-preview | 88 | 2/28/2026 |
| 0.7.2-preview | 109 | 2/23/2026 |
| 0.7.1-preview | 185 | 1/26/2026 |
| 0.7.0-preview | 94 | 1/26/2026 |
| 0.2.1-preview | 131 | 1/20/2026 |
| 0.2.0-preview | 143 | 1/14/2026 |
| 0.1.9-preview | 142 | 1/1/2026 |
| 0.1.8-preview | 309 | 12/15/2025 |
| 0.1.7-preview | 236 | 12/15/2025 |
| 0.1.6-preview | 236 | 12/15/2025 |
| 0.1.5-preview | 247 | 12/15/2025 |
| 0.1.4-preview | 235 | 12/15/2025 |
Loading failed