Skip to content

Sample: api-degradation-scenarios - Simulate partial API failures #26

@waldekmastykarz

Description

@waldekmastykarz

Summary

Create a sample that simulates various API degradation scenarios (partial failures, intermittent errors).

Plugins to use

  • GenericRandomErrorPlugin - random errors at configurable rate
  • LatencyPlugin - intermittent slowdowns
  • RateLimitingPlugin - simulate hitting rate limits

What to build

  • Multiple degradation scenarios:
    • Intermittent 503 errors (30% of requests)
    • Periodic 429 rate limits
    • Slow responses (3-5s) mixed with fast ones
  • Sample app with monitoring dashboard showing:
    • Success rate
    • Response times
    • Error types
  • Demonstrate graceful degradation patterns

Why this is compelling

Build apps that gracefully degrade under stress. Prove your error handling and retry logic works before production.

Reference docs

  • GenericRandomErrorPlugin technical reference
  • RateLimitingPlugin technical reference
  • LatencyPlugin technical reference
  • Test my app with random errors how-to guide

Metadata

Metadata

Labels

No labels
No labels

Type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions