Ctrl K
Python · Junior · System design

How would you build a simple FastAPI service where a user uploads a file and processing takes a couple of minutes? The user needs to find out the result afterward.

~10 min by voice

How to approach it

The interviewer checks whether the candidate understands that long-running work can't be done inside an HTTP request, and can put together a basic asynchronous setup: accept the file → task id → background worker via a queue → status in the database → a way to get the result.

Have you seen this question in a real interview?
Answers0
Avg. score—
Strong—
Practiced0
Topics
Similar questionsDesign an aggregator service in FastAPI: for every incoming request it has to call five external services and build a single response from their replies. How do you keep latency low and stay resilient to failures in those services? Mid-levelYou have a FastAPI service, and under load the p99 latency climbs to seconds even though the CPU isn't busy. You suspect the event loop is being blocked. How would you find the cause and fix it? SeniorYou have a large Django monolith, and the team wants to rewrite it in FastAPI for async and performance. How would you make this decision, and how would you carry out the change? SeniorDesign a background job system for a Python backend: sending emails, webhooks to partners, nightly recalculations. What would you choose, why, and how would you make it reliable? SeniorHow is Django different from FastAPI? What kinds of projects would you choose each one for? Junior

Answer by voice

The interviewer will ask this question and listen. Think out loud and ask for a hint if you need one. When you're done, pause or tap “That's my answer”. In about a minute, your score and the points you covered show up here.

Sign in to answer

Best with headphones · ~10 min