AWS Community Day Perú 2026

Speaker · Technical talk

AWS Community Day Perú 2026

When an external API fails: designing resilient integrations on AWS with ECS Fargate

Original title: Cuando una API externa falla: diseñando integraciones resilientes en AWS con ECS Fargate

I shared how to design integrations that recover from partial failures: record the state, distinguish temporary errors from business errors, and resume a process without repeating completed operations.

Leer en español
Diego Matienzo with the attendees of his AWS Community Day Perú 2026 talk
With the attendees after the talk at UTEC.
Date
Venue
UTEC · Barranco, Lima

Inside the talk

Design for the moment something fails.

Resilience starts with knowing what happened, what is pending, and how to continue.

Recover from a partial failure

What happens when an external operation completes but the flow fails before finishing? Resuming from the pending step requires knowing what already happened.

Persist useful state

Recording the current step, attempt count, and external identifier makes it possible to reconstruct the process and determine the next action with traceability.

Retry with intent

Distinguish transient errors from business errors and consider idempotency to avoid repeating effects that have already occurred.

Separate application and infrastructure

ECS, Fargate, and CloudWatch support execution and observability. The application remains responsible for process state and recovery.

From concepts to code

A lab for exploring failures.

The companion repository includes a local integration demo and an architecture prepared for ECS Fargate. It supports exploration of operation state, errors, and recovery.

NestJSTypeScriptPostgreSQLAmazon ECSAWS FargateAmazon CloudWatch

The presentation uses ephemeral PostgreSQL as part of the lab. It is a teaching resource for exploring design decisions.

Architecture diagram for the resilient integration lab
04 / Lab architecture

Resources

Explore the talk at your own pace.

The slides, the lab, and the event publications, together in one place.

A look inside the slides

Five moments from the presentation. Open each image for a closer look.

Download presentationPDF · Spanish
Title slide of the talk on resilient integrations with ECS Fargate
01 / The talk
Slide about the state model needed to recover an integration
02 / State and recovery
Slide separating application and infrastructure responsibilities
03 / Each layer's responsibilities
Architecture diagram for the resilient integration lab
04 / Lab architecture
Slide with the talk's key takeaways
05 / Takeaways