Daily iOS
CS fundamentals and algorithms

First request latency

On a cold start, your app's first API response takes 800ms and every one after that takes 120ms. Can you walk me through what happens in the network stack in between, step by step?

How would an interviewer hear this answer? You'll see whether they'd move on, dig in, or say no, and which sentences would trip you up. Your score doesn't change.
See the short answer

The first request pays DNS lookup, the TCP 3-way handshake, the TLS handshake, server processing, and the download. After that, connection reuse drops the handshakes.

Share a question