All Questions
Api Gateway hard

Your Gateway communicates with backends via HTTP/1.1 connections. A slow backend service causes 'Head-of-Line Blocking'. How does switching to HTTP/2 as the Gateway-to-Backend transport mitigate this?

  1. A HTTP/2 uses a faster compression algorithm (HPACK) that makes the server respond 10x quicker.
  2. B Through Multiplexing: HTTP/2 allows multiple concurrent request/response streams on a single TCP connection, so a slow request doesn't block the line for others.
  3. C HTTP/2 automatically mirrors all slow requests to a faster backup server.
  4. D It uses UDP instead of TCP, which doesn't require waiting for acknowledgments.

One system design question a day, with spaced repetition so the ones you miss come back.

Get the app

Related questions