Ctrl K
Java · Mid-level · System design

A Spring Boot service mostly calls other services and the database. Load is growing to tens of thousands of requests per second, and Tomcat runs out of threads. Which concurrency model would you choose: increase the pool, move to virtual threads, or go with a reactive stack, and why?

~10 min by voice

How to approach it

The interviewer wants to see whether you understand why the thread-per-request model runs out of resources under IO-heavy load, and whether you can weigh three options (a bigger pool, virtual threads, a reactive stack), taking into account their cost, the real bottlenecks (connection pools) and the team's specifics.

Have you seen this question in a real interview?
Answers0
Avg. score—
Strong—
Practiced0
Topics
Similar questionsA service running on G1 periodically has pauses of one to two seconds, and it's hurting latency. What would you do, and when is it worth looking at a different garbage collector? Mid-levelHow is reflow different from repaint, and why does frequent reflow hurt performance? JuniorA load test showed that at 500 requests per second, response time grew from 200 milliseconds to three seconds. How would you track down the cause, and what would you put in the report? Mid-levelHow do you track down a performance bottleneck in Python code? What's the most telling case from your own experience? SeniorWhat happens in the browser between a change to the DOM or styles and pixels appearing on screen? How do you use that to keep animations and scrolling from janking? 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