Add application answer on scaling media delivery
This commit is contained in:
+21
@@ -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
|
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
|
remain protected. AI helps produce and examine the implementation; I own the
|
||||||
requirements, review the evidence, and remain accountable for what ships.
|
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.
|
||||||
|
|||||||
Reference in New Issue
Block a user