Blob or row
Difficulty 3 of 5
Users load 200 images/s of 1 MB each. The images need no row joins, and their metadata stays in the application database. Choose where to keep and serve the image bytes. Keep p99 below 300 ms and the cost at or below 10,000 USD/month.
Options
- Keep each image as a database row value
- Serve image bytes from object storage
- Object storage behind edge caches
Goals and limits
- p99 latency
- under 300 ms
- Monthly cost
- under 10,000 USD/mo
- Traffic
- 200 req/s
Concepts
How players did
Player results load from the server.