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.

Komponentenklasse

TsgcHTTPAWS_SQS_Client

Protokoll

Amazon SQS API

Plattformen

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';

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

  // verbrauchen
  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);

Was steckt drin

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.

Spezifikationen & Referenzen

Maßgebliche Quellen für die API, die diese Komponente implementiert.

Dokumentation & Demos

Springe direkt zur Komponentenreferenz, lade das einsatzbereite Demo-Projekt herunter und teste die Testversion.

Online Help — AWS SQS Client Vollständige Eigenschaften-, Methoden- und Ereignisreferenz für diese Komponente.
Demo Project — Demos\20.HTTP_Protocol\04.AWS Einsatzbereites Beispielprojekt. Im sgcWebSockets-Paket enthalten — lade unten die Testversion herunter.
Technisches Dokument (PDF) Funktionen, Schnellstart, Codebeispiele für Delphi & C++ Builder und Primärquellenreferenzen — nur für diese Komponente.
Benutzerhandbuch (PDF) Umfassendes Handbuch zu jeder Komponente der Bibliothek.

Ready to Drive SQS from Delphi?

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