Amazon SQS-client (TsgcHTTPAWS_SQS_Client) — sgcWebSockets | eSeGeCe

Amazon SQS

Verstuur en ontvang Amazon SQS-berichten vanuit Delphi/C++Builder. AWS Signature V4-ondertekening, queue-beheer en FIFO-ondersteuning in één getypeerd component.

TsgcHTTPAWS_SQS_Client

AWS SQS-clientcomponent — SendMessage, ReceiveMessage, DeleteMessage, ChangeMessageVisibility, queue-CRUD, allemaal SigV4-ondertekend met je access-key/secret-paar.

Componentklasse

TsgcHTTPAWS_SQS_Client

Protocol

Amazon SQS API

Platforms

Windows, macOS, Linux, iOS, Android

Editie

Standard / Professional / Enterprise

Stel gegevens in, verstuur en ontvang

Stel AccessKey / SecretKey / Region in, roep daarna SendMessage aan om in de wachtrij te plaatsen, ReceiveMessage om te consumeren en DeleteMessage om te bevestigen.

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

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

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

Wat zit erin

Richt zich op het moderne sqs.<region>.amazonaws.com JSON+SigV4-endpoint-oppervlak.

Queue-levenscyclus

CreateQueue, DeleteQueue, GetQueueUrl, ListQueues, GetQueueAttributes en SetQueueAttributes verzorgen het queue-control-plane.

Send / Receive / Delete

SendMessage, SendMessageBatch, ReceiveMessage, DeleteMessage, DeleteMessageBatch en ChangeMessageVisibility dekken het data-plane.

FIFO-ondersteuning

Voor FIFO-queues neemt het component MessageGroupId en MessageDeduplicationId; SequenceNumber wordt teruggegeven in het antwoord. De visibility-timeout is per groep.

AWS Signature V4

Elke aanvraag wordt ondertekend volgens de SigV4-specificatie van AWS — canonieke aanvraag, hash, signing key, header-injectie. Langetermijnsleutels worden ondersteund; STS session-tokens worden gehonoreerd via AWSOptions.SessionToken.

Long polling

Geef een niet-nul WaitTimeSeconds mee aan ReceiveMessage voor SQS long polling — tot 20 seconden wachten, minder lege ontvangsten, minder aanvragen.

Encryptie tijdens transport

Gebruikt altijd HTTPS naar het regionale SQS-endpoint — SSE-SQS / SSE-KMS-encryptie at-rest wordt aan serverzijde geconfigureerd via SetQueueAttributes.

Specificaties & referenties

Gezaghebbende bronnen voor de API die dit component implementeert.

Documentatie & demo's

Deep-link naar de componentreferentie, pak het direct uitvoerbare demoproject en download de proefversie.

Online help — AWS SQS-client Volledige property-, methode- en event-referentie voor dit component.
Demoproject — Demos\20.HTTP_Protocol\04.AWS Direct uitvoerbaar voorbeeldproject. Zit in het sgcWebSockets-package — download de proefversie hieronder.
Technisch document (PDF) Functies, snelstart, codevoorbeelden voor Delphi & C++ Builder en primaire bronreferenties — alleen dit component.
Gebruikershandleiding (PDF) Uitgebreide handleiding die elk component in de bibliotheek behandelt.
De beste deal: All-AccessElk eSeGeCe-product, inclusief Premium-ondersteuning, vanaf €1,059 per jaar.
Bekijk de All-Access-prijzen

Klaar om SQS vanuit Delphi aan te sturen?

Download de gratis proefversie en integreer Amazon SQS in je Delphi-toepassingen.