Interview Question

Back-end Java Engineer Interview

-Sunnyvale, CA

Fanatics

"Suppose you have two different kinds of server requests - requests that MUST be responded to in 2 seconds and cannot be resent, and requests that can be responded to in 10 seconds, but can be resent. How would you handle the priority of responding to these requests?"

AnswerAdd Tags

Interview Answers

2 Answers

0

Take prior constantly

Brittany howard on

1

I got it wrong a couple times, but with guidance from the interviewer, eventually came to the conclusion that priority for the short-time requests should start out higher than long-time requests, but that a long-time request nearing its timeout window should rise in priority to the point that it can be handled before a new (and unlikely to time-out) short-time request.

Anonymous on

Add Answers or Comments

To comment on this, Sign In or Sign Up.