# Read Replicas vs. Caching

> Your database is overloaded with reads. When would you add a read replica, and when would you put a cache like Redis in front of it instead?

Canonical: https://www.internhack.in/learn/interview/database-design/db-read-replicas-vs-caching
Last updated: 2026-11-28

Difficulty: Intermediate

## Question

Your database is overloaded with reads. When would you add a read replica, and when would you put a cache like Redis in front of it instead?

*The full answer is for InternHack members. Open the page link above to read it.*

## Concepts covered

Read Replicas, Redis Cache, Replication Lag, Cache Invalidation, Read Scaling

Previous: [Write-Ahead Logging (WAL)](https://www.internhack.in/learn/interview/database-design/db-write-ahead-logging-wal) · Next: [Full-Text Search](https://www.internhack.in/learn/interview/database-design/db-full-text-search-vs-like) · [All of Database Design](https://www.internhack.in/learn/interview/database-design)

## More Database Design questions

- [Checkpointing](https://www.internhack.in/learn/interview/database-design/db-checkpointing)
- [Star vs. Snowflake](https://www.internhack.in/learn/interview/database-design/db-star-vs-snowflake-schema)
- [Polymorphic Associations](https://www.internhack.in/learn/interview/database-design/db-polymorphic-associations)
- [Schema Migrations](https://www.internhack.in/learn/interview/database-design/db-database-migration-best-practices)
- [JSONB in SQL](https://www.internhack.in/learn/interview/database-design/db-json-b-data-type)
- [UPSERT](https://www.internhack.in/learn/interview/database-design/db-upsert-operation)

## Related

- [Learn](https://www.internhack.in/learn)
- [Interview Prep](https://www.internhack.in/learn/interview)
- [Database Design](https://www.internhack.in/learn/interview/database-design)
