Ctrl K
Python · Senior · System design

You 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?

~10 min by voice

How to approach it

The interviewer is testing engineering maturity: whether you make an architectural decision based on measurements rather than trends, whether you understand the real limits of what async gains you, and whether you can carry out a large change without a big bang rewrite.

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-levelA Django monolith can no longer keep up with growing traffic. How would you design how it runs in production: the application server, the worker model, the number of workers, and working with the database? Mid-levelHow is Django different from FastAPI? What kinds of projects would you choose each one for? JuniorThe order list page in the Django admin takes ten seconds to load, and the logs show hundreds of SQL queries per page load. What's going on, and how do you fix it? Mid-levelIn a Django service, two concurrent requests are charging money from the same balance, and sometimes the balance goes negative or one of the charges gets lost. Why does this happen, and how would you fix it? Senior

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