Design a File Upload Service
Your API servers spend 80 % of their time streaming bytes they never look at. How should uploads flow?
Este desafio ainda não foi traduzido para Português (Brasil). Você está lendo a versão em inglês.
Missão:Build an architecture where clients upload directly to object storage with short-lived permission, processing happens asynchronously, and downloads are cached — within the budget.
Hollow Basket lets sellers upload product photos and videos up to 2 GB. Today the API receives every upload, scans it synchronously and writes it to storage. Uploads time out, API pods run out of memory, and downloads come from a public bucket.
Missão: Build an architecture where clients upload directly to object storage with short-lived permission, processing happens asynchronously, and downloads are cached — within the budget.
Objetivos de aprendizagem
- Use presigned URLs so the API authorises but does not proxy bytes.
- Process uploads asynchronously from storage events.
- Serve downloads through a CDN, never from a public bucket.
SimulaçãoSimulado