Gremlin and AWS ElastiCache

Test how your application handles an ElastiCache outage. Run Gremlin network experiments and reliability tests to validate cache-miss handling.

Why ElastiCache reliability is important

Amazon ElastiCache exists to keep load off your database, which means your database was never sized for the traffic the cache absorbs. That gap is the entire risk, and it is one of the most reliable ways to turn a minor incident into a major one.

A cache outage becomes a database outage in four steps:

  1. ElastiCache becomes unreachable, and every request that would have been served from memory falls through.
  2. Your database receives its normal traffic plus everything the cache was absorbing, arriving at once.
  3. Query times climb, so requests take longer, so concurrency rises, so query times climb further.
  4. The cache recovers in minutes. The database takes far longer, and the incident review blames the database.

Gremlin lets you measure that gap safely. Blackhole experiments remove the cache endpoint from your application's view while you watch what reaches the database. If the answer is uncomfortable, the mitigations are well understood: request coalescing, stale-while-revalidate, a circuit breaker in front of the database. All of them are easier to build on a Tuesday than during the outage that proves you needed them.

Building resilience on ElastiCache with Gremlin

ElastiCache is a dependency: a managed service that your service connects to. You can run tests by deploying the Gremlin agent or Failure Flags sidecar to a service that consumes ElastiCache*. Using the experiments shown to the right, you can prepare your service for ElastiCache failure modes, including:

  • Network outages making ElastiCache unavailable
  • Slow performance due to network latency
  • Expiring TLS certificates
You can also run these expert-built workflows designed to replicate real-world failure modes on ElastiCache:

* Testing a dependency doesn't require installing anything on it. Gremlin runs the experiment from the service that calls it, so compatibility depends on that host rather than on the dependency itself. Check our compatibility documentation for supported operating systems and platforms, or get in touch if you don't see yours.

resources

Learn more about Gremlin and ElastiCache

All product names, logos, and brands are property of their respective owners. AWS is a trademark of Amazon.com, Inc.; Azure is a trademark of Microsoft Corporation; Google Cloud is a trademark of Google LLC. Use of these names is for identification purposes only and does not imply endorsement or affiliation unless otherwise stated.

Avoid downtime. Use Gremlin to turn failure into resilience.

Gremlin empowers you to proactively root out failure before it causes downtime. See how you can harness chaos to build resilient systems by requesting a demo of Gremlin.

Product Hero ImageShape