Pick the fix
The home screen makes 6 sequential API calls on 3G and takes 4 s. Best backend change?
Hint 1 of 1
What costs most on a slow network?
Choose an answer, then open Show answer below to check it.
Show answer
Answer: A A BFF endpoint that fetches the 6 sources in parallel and returns one screen payload
Correct. One round trip from the phone.
On mobile networks every round trip costs hundreds of milliseconds. A BFF makes the six calls from the data centre in parallel, where latency is low, and returns one payload made for the screen.
Why not the others?
- B Make each of the 6 endpoints return more data. Still 6 round trips.
- C Add a CDN for the JSON. Personalised data rarely caches.
- D Ask users to use Wi-Fi. Not a fix.