Chapter 9
- 2 and 3
You do not know when the peak hours for this application are, so setting backups to midnight might make things worse.
Setting reserved-memory-percent
stops backups from taking all the memory and is correct.
Running a backup from the read replica will also reduce the load on the primary instance and is correct.
Additional read replicas will not help as the load is on the primary instance.
Increasing the number of shards will not help as the load will remain the same.
- 1
Write-through applies the changes to the cache first before writing to the database so the data is always current, and this is the correct answer.
Lazy-loading is where the cache only loads data after it is requested and it doesn't maintain current data.
Cache-aside is where the application can directly access both the database and the cache.
Read-through is where the application can only access the cache directly.
- 1
Redis (cluster mode...