Daily iOS
Networking

Network metrics and request priority

A report says the app is slow only for users in one region, but the server metrics look normal. What would you measure in the app's network layer to split the cause into DNS, connect, TLS, server wait, and transfer?

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

Collect DNS, connect, TLS, TTFB, and transfer time per request from URLSessionTaskMetrics and aggregate by region and network type, and the app can tell which phase is slow.

Share a question