All Questions
Networking Essentials medium

When should you use WebSockets instead of REST/HTTP polling?

  1. A When you are primarily sending exceptionally large binary files that require the highest possible level of sequential disk I/O and data verification.
  2. B When you need to ensure that every individual data packet is encrypted with a unique, session-specific cryptographic key to prevent deep-packet inspection.
  3. C When you require real-time, bidirectional, and persistent communication between the client and server with minimal overhead for headers and handshakes.
  4. D When your application architecture relies on a highly-available, distributed pool of load balancers that must frequently rotate and refresh their internal routing tables.

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

Get the app

Related questions