Overloaded database
Level 1 of 41Take load off the database.
- Traffic
- 2,000 req/s · 95% reads
- Limit
- Postgres answers about 1,000 reads/s
- Bill
- VPS 2 vCPU · 8 GB16 USD/mo
16 of 20 USD/mo
Goals
Not tested yet
Users send 2,000 requests/s. The database answers about 1,000 reads/s, so requests wait and fail. Most requests read the same data. Put a cache between the API and the database.
Parts you can add: Redis cache. At most 1 part. Budget: 20 USD/mo.
Tap a part to add it, or drag it onto a trace.Click a part to add it, or drag it onto a trace.