All Questions
Real Time Updates hard

Why might you deliberately *disable* WebSocket compression (permessage-deflate) when sending sensitive encrypted data like CSRF tokens?

  1. A Compression uses too much CPU.
  2. B It causes latency.
  3. C To prevent Side-Channel attacks (like CRIME/BREACH). If an attacker can inject text and observe the size of the compressed encrypted output, they can guess the secret.
  4. D Compression corrupts tokens.

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

Get the app

Related questions