
Product
Socket Now Protects the Chrome Extension Ecosystem
Socket is launching experimental protection for Chrome extensions, scanning for malware and risky permissions to prevent silent supply chain attacks.
A reusable .NET library for seamless integration with AWS SQS, enabling both message production and consumption. Supports single and batch processing for efficient message handling. Ideal for building scalable, robust services that interact with SQS queues, with support for both FIFO and standard queues.
This library provides an easy and efficient way to produce and consume messages from AWS SQS using C#. It supports both Standard and FIFO queues, allows batch publishing and batch consuming, and enables seamless consumer integration using method decorators.
AWSSDK.SQS
(Amazon SQS SDK for .NET)Microsoft.Extensions.Hosting
(Background service support)Microsoft.Extensions.DependencyInjection
(DI for consumer handling)dotnet add package SQSX --version 1.0.0
Program.cs
var builder = Host.CreateDefaultBuilder(args);
builder.ConfigureServices((hostContext, services) =>
{
services.AddAWSService<IAmazonSQS>();
services.AddSingleton<ISQSProducer, SQSProducer>();
services.AddHostedService<SQSConsumerService>();
});
var app = builder.Build();
await app.RunAsync();
public class OrderService
{
private readonly ISQSProducer _sqsProducer;
public OrderService(ISQSProducer sqsProducer)
{
_sqsProducer = sqsProducer;
}
public async Task PublishOrderAsync()
{
await _sqsProducer.PublishMessageAsync("https://sqs.us-east-1.amazonaws.com/123456789012/MyQueue", new { OrderId = 123, Status = "Created" });
}
}
public class OrderProcessor
{
[SQSConsumer("https://sqs.us-east-1.amazonaws.com/123456789012/MyQueue", 5)]
public async Task<bool> ProcessOrderAsync(Message message)
{
Console.WriteLine($"Received: {message.Body}");
return true;
}
}
✅ Effortless Consumer Registration using decorators. ✅ Optimized for Performance with batch processing. ✅ Extensible & Scalable due to SOLID principles. ✅ Reduces Boilerplate Code for SQS integration.
Pull requests are welcome! Ensure your changes adhere to best practices and include tests.
MIT License
FAQs
A reusable .NET library for seamless integration with AWS SQS, enabling both message production and consumption. Supports single and batch processing for efficient message handling. Ideal for building scalable, robust services that interact with SQS queues, with support for both FIFO and standard queues.
We found that sqsx demonstrated a healthy version release cadence and project activity because the last version was released less than a year ago. It has 1 open source maintainer collaborating on the project.
Did you know?
Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.
Product
Socket is launching experimental protection for Chrome extensions, scanning for malware and risky permissions to prevent silent supply chain attacks.
Product
Add secure dependency scanning to Claude Desktop with Socket MCP, a one-click extension that keeps your coding conversations safe from malicious packages.
Product
Socket now supports Scala and Kotlin, bringing AI-powered threat detection to JVM projects with easy manifest generation and fast, accurate scans.