Skip to content

Operations platform

An event-driven pipeline on EventBridge, SQS, and Lambda

A queue you can see, a dead letter from the start, consumers that can run twice.

Work today is a cron that polls. When it fails, nobody knows which record it stopped on.

Anonymised pattern of work by AlgoRythm Technologies. Not a named client, and not a measured result. The same shape is also on the portfolio page.

Situation

The product has to react to things: an object landed, a customer asked for an export, a third party sent a webhook. The cron has grown if-statements. A failure means reading a log and guessing how far it got. The proposed fix is “a few Lambdas”, without a picture of the events.

How we approach it

  1. 01 Draw the events before choosing the bus

    Who emits, who cares, and what “done” means. Not every webhook needs a new service. EventBridge routes and filters. SQS sits in front of Lambda where you want a buffer and a retry you can see.

  2. 02 Assume delivery at least once

    Consumers are idempotent, keyed by an event id you store. A poison message goes to a dead-letter queue. Partial batch failure is turned on so one bad record does not retry the whole batch. The visibility timeout is longer than the function timeout.

  3. 03 Alarm on the quiet failure

    A dead-letter queue with no alarm is a backlog you meet next month. The bus, the queues, the functions, and the alarms are Terraform. Payloads stay small: a key to the object in S3, not the object itself, when the object is large.

What the work usually covers

  • An event list and the consumers, written down before the first function
  • EventBridge rules, SQS buffers, and dead-letter queues
  • Idempotent Lambdas, with least-privilege roles per function
  • Alarms on the dead-letter queues and on iterator age or age of oldest message

Typical stack

  • Amazon EventBridge
  • Amazon SQS
  • AWS Lambda
  • Amazon S3
  • DynamoDB, where the state is small
  • CloudWatch alarms
  • Terraform

Typical outcome

  • A visible queue instead of a cron log, with a dead-letter path and an alarm.
  • A consumer that can be retried without applying the side effect twice.
  • The event design and the idempotency key take longer than the first function. We plan for that. We do not attach a throughput number from a system we are not naming.

Typical outcome is the range we plan for on work of this shape. It is not a measured result from a named client.

Related services

Talk through a situation like this

Email admin@algorythmtechnologies.com or use the contact page. A paragraph on what you have today is enough to start.