WAF++ WAF++
Back to WAF++ Homepage

Best Practices – Performance Efficiency

This page provides an overview of all best practices for the Performance Efficiency pillar. Best practices supplement the controls with concrete implementation guidance, Terraform examples, and typical anti-patterns.

Overview

Best Practice Description Related Controls

Compute Sizing & Instance Selection

How to select instance types based on metrics and document sizing decisions.

WAF-PERF-010

Configure Auto-Scaling

How to configure, test and monitor auto-scaling for stateless workloads.

WAF-PERF-020, WAF-PERF-080

Implement Caching Strategy

How to build a multi-layer caching strategy with Redis, CDN and application cache.

WAF-PERF-030

Optimize Database Performance

Slow query analysis, index strategies and Performance Insights for relational databases.

WAF-PERF-040, WAF-PERF-090

Load Tests & Stress Tests

How to integrate load tests with k6 into the CI/CD pipeline and define acceptance criteria.

WAF-PERF-060

Performance Observability & SLOs

How to define SLOs, instrument SLIs and manage error budgets.

WAF-PERF-050, WAF-PERF-100

Optimize Network Performance

CDN configuration, VPC endpoints and network topology optimization.

WAF-PERF-070

For organizations just getting started with Performance Efficiency:

  1. Performance Observability & SLOs – Measure first. Without SLOs and metrics, all other best practices are blind.

  2. Optimize Database Performance – Database optimization typically has the highest impact per unit of time.

  3. Configure Auto-Scaling – Set up and validate elasticity for variable loads.

  4. Implement Caching Strategy – Eliminate redundant database accesses through caching.

  5. Load Tests & Stress Tests – Integrate performance validation into the deployment process.

  6. Compute Sizing & Instance Selection – Optimize instance types based on measured data.

  7. Optimize Network Performance – Reduce network latency and optimize routing.