From 10250f0a55e54dbcf37a317c9a948d092bc9b500 Mon Sep 17 00:00:00 2001 From: StormRunner06106 Date: Mon, 12 Oct 2026 11:36:36 -0700 Subject: [PATCH] Add application answer on scaling media delivery --- answers.txt | 21 +++++++++++++++++++++ 1 file changed, 21 insertions(+) diff --git a/answers.txt b/answers.txt index 49f0fdf..acbcb1d 100644 --- a/answers.txt +++ b/answers.txt @@ -814,3 +814,24 @@ My responsibility was deciding what safe recovery meant: article changes must stay blocked if cleanup intent cannot be confirmed, and files still in use must remain protected. AI helps produce and examine the implementation; I own the requirements, review the evidence, and remain accountable for what ships. + + +General questions + +1. In 5-6 sentences, describe a time you had to scale a software application +that wasn't built to scale. What broke first, and how did you fix it? + +Answer: + +I ran into this while adapting my React/FastAPI publishing application, +originally built around local storage and backend-proxied downloads, for +deployment on Vercel. The first hard limit was media delivery: routing larger +attachments through the backend exceeded the serverless function's response-size +limit. I changed downloads for existing files over 4 MB to redirect to short- +lived Dropbox URLs, taking the file transfer out of the application process. I +also moved persistent content and upload metadata to Supabase, kept files in +Dropbox, and enforced upload limits in both the interface and API. A regression +test verifies that a 5 MB attachment returns a redirect without the backend +fetching its contents. That removed the oversized-download bottleneck and +reinforced my approach to scaling: identify the constrained resource, move work +to the right layer, and verify the behavior before adding capacity.