Amazon SQS

Send and receive Amazon SQS messages from Delphi/C++Builder. AWS Signature V4 signing, queue management and FIFO support in one typed component.

TsgcHTTPAWS_SQS_Client

AWS SQS client component — SendMessage, ReceiveMessage, DeleteMessage, ChangeMessageVisibility, queue CRUD, all SigV4-signed with your access-key/secret pair.

Component class

TsgcHTTPAWS_SQS_Client

Protocol

Amazon SQS API

Platforms

Windows, macOS, Linux, iOS, Android

Edition

Standard / Professional / Enterprise

Set credentials, send and receive

Set AccessKey / SecretKey / Region, then call SendMessage to enqueue, ReceiveMessage to consume and DeleteMessage to acknowledge.

uses
  sgcHTTP;

var
  SQS: TsgcHTTPAWS_SQS_Client;
begin
  SQS := TsgcHTTPAWS_SQS_Client.Create(nil);
  SQS.AWSOptions.AccessKey := 'AKIA...';
  SQS.AWSOptions.SecretKey := 'your-secret';
  SQS.AWSOptions.Region    := 'eu-west-1';

  // publish
  SQS.SendMessage(
    'https://sqs.eu-west-1.amazonaws.com/123456789012/orders',
    '{"orderId":42,"status":"new"}');

  // consume
  Memo1.Text := SQS.ReceiveMessage(
    'https://sqs.eu-west-1.amazonaws.com/123456789012/orders', 10);
end;
// uses: sgcHTTP
TsgcHTTPAWS_SQS_Client *SQS = new TsgcHTTPAWS_SQS_Client(this);
SQS->AWSOptions->AccessKey = "AKIA...";
SQS->AWSOptions->SecretKey = "your-secret";
SQS->AWSOptions->Region    = "eu-west-1";

SQS->SendMessage(queueUrl, payload);
Memo1->Text = SQS->ReceiveMessage(queueUrl, 10);

What's inside

Targets the modern sqs.<region>.amazonaws.com JSON+SigV4 endpoint surface.

Queue lifecycle

CreateQueue, DeleteQueue, GetQueueUrl, ListQueues, GetQueueAttributes, SetQueueAttributes handle the queue control plane.

Send / Receive / Delete

SendMessage, SendMessageBatch, ReceiveMessage, DeleteMessage, DeleteMessageBatch, ChangeMessageVisibility cover the data plane.

FIFO support

For FIFO queues the component takes MessageGroupId and MessageDeduplicationId; SequenceNumber is returned in the response. Visibility timeout is per group.

AWS Signature V4

Every request is signed per AWS's SigV4 spec — canonical request, hash, signing key, header injection. Long-term keys are supported; STS session tokens are honoured via AWSOptions.SessionToken.

Long polling

Pass a non-zero WaitTimeSeconds to ReceiveMessage for SQS long polling — up to 20 seconds wait, fewer empty receives, lower request count.

Encryption-in-transit

Always uses HTTPS to the regional SQS endpoint — SSE-SQS / SSE-KMS encryption-at-rest is configured server-side via SetQueueAttributes.

Specifications & references

Authoritative sources for the API this component implements.

Documentation & Demos

Deep-link to the component reference, grab the ready-to-run demo project, and download the trial.

Online Help — AWS SQS Client Full property, method and event reference for this component.
Demo Project — Demos\20.HTTP_Protocol\04.AWS Ready-to-run example project. Ships inside the sgcWebSockets package — download the trial below.
Technical Document (PDF) Features, quick start, code samples for Delphi & C++ Builder and primary-source references — this component only.
User Manual (PDF) Comprehensive manual covering every component in the library.

Ready to Drive SQS from Delphi?

Download the free trial and integrate Amazon SQS into your Delphi applications.