Problem
The time it takes for downloads and uploads to start transferring bytes in /storage_service is very slow. This results in a high time to first byte (TTFB) for both uploads and downloads.
Desired Outcome
- Optimize the system so that the time to first byte (TTFB) for both uploads and downloads is no more than 100ms.
Reference
- Please refer to the expert report:
Storage_Report.md
Files to Update
storage_service/app/core/optimized_storage.py
storage_service/app/main.py
storage_service/app/apis/endpoints/files.py
Acceptance Criteria
- TTFB for uploads is ≤ 100ms
- TTFB for downloads is ≤ 100ms
- All changes are referenced to Storage_Report.md
Please investigate and implement the necessary optimizations.