All jobs / Backend developer / Architecture
Backend developer interview question · 0–1 years
What is the difference between latency and throughput?
The strongest answer
Latency is how long one request takes; throughput is how many the system handles per second — you can have high throughput with bad latency, and adding servers raises throughput without shortening one request
Why it works
Right. One request's time versus requests per second.
What a good answer covers
- Latency: time per request.
- Throughput: requests per second.
- They move independently.
- Scaling out helps throughput.
Answers that fall short
- Close, but not the strongest: They are two names for speed
Different quantities that move independently. - Weak: Latency is for networks, throughput for databases
Both apply everywhere. - Red flag: Throughput is latency multiplied by users
No such formula.
Who gets asked this
- Backend developer
- Full-stack developer
- DevOps / SRE / cloud
- Data engineer
- Data science / ML / AI
- Engineering manager / tech lead
- Solutions / cloud architect
- AI engineer
More Architecture questions
- An interviewer asks for p99 latency. What does that mean and why ask for it?
- How do you estimate storage for 100 million short URLs?
- What does a CDN do for a web application?
- Why would a class take its database client as a constructor parameter instead of creating one inside itself?
- The interviewer asks: “Should this service be CQRS?” Strongest answer?
- The interviewer asks: “Event-driven or request/response for “order placed → email + warehouse”?” Strongest…
- The interviewer asks: “How do you change an event payload that old consumers still read?” Strongest answer?
- The interviewer asks: “Billing keeps importing Order's entity. What's the design problem?” Strongest answer?