Home icon

Testing application resilience with Amazon SQS and AWS Fault Injection Service

Architecture Blog



This article demonstrates how to use AWS Fault Injection Service (FIS) and Systems Manager Automation to test application resilience by simulating SQS access failures with progressively longer disruption phases.

  • Structure resilience experiments with clear hypotheses and measurable success criteria before testing
  • Use scoped IAM deny policies to block SQS data-plane operations while preserving queue management capabilities
  • Execute four escalating impairment phases (2, 5, 7, and 15 minutes) separated by recovery periods to surface different failure modes
  • Monitor producer-side behavior (circuit breakers, buffering, fail-fast) and consumer-side behavior (backlog accumulation, recovery rates)
  • Interpret CloudWatch metrics like NumberOfMessagesSent, ApproximateNumberOfMessagesVisible, and ApproximateAgeOfOldestMessage to assess resilience mechanisms
  • Set stop conditions on customer-impact metrics rather than queue metrics to prevent premature experiment termination
  • Implement retry logic with exponential backoff, circuit breakers, and dead-letter queues as resilience patterns

By testing application behavior under SQS access loss, teams can identify gaps in failure handling, validate recovery mechanisms, and improve observability before production incidents occur.



Go to article

The AWS News Feed is currently looking for gold sponsors. If you want to support the AWS community and reach a large audience of AWS professionals, consider sponsoring the AWS News Feed.

Related articles

Feb 23
2026
Resilience testing on Amazon ElastiCache with AWS Fault Injection Service
Oct 28
2025
Test and build application resilience using Amazon EBS latency injection
Oct 1
2025
Testing AWS Managed Microsoft AD Resilience using AWS Fault Injection Service
Jul 31
2025
Testing network resilience of AWS Fargate workloads on Amazon ECS using AWS Fault Injection Service

The AWS News Feed is currently looking for silver sponsors. If you want to support the AWS community and reach a large audience of AWS professionals, consider sponsoring the AWS News Feed.