Skip to content

Scalability and Performance

Scalability and Performance

Overview

Design for reasonable performance; optimize hotspots with data.

Concepts

  • Caching (HTTP, Redis)
  • Database indexing and query optimization
  • Async jobs and queues
  • Horizontal vs vertical scaling

Example

  • Cache GET /api/projects in memory for 60s to reduce DB load

Checklist

  • Measure first (profiling, APM)
  • Add indexes for slow queries
  • Avoid N+1 queries

Resources

  • High Scalability blog
  • Redis docs