PracHub
QuestionsPremiumLearningGuidesInterview PrepCoaches
|Home/Software Engineering Fundamentals/Snapchat

Compare WebSocket, SSE, and long polling

Last updated: Mar 29, 2026

Quick Overview

This question evaluates understanding of real-time web communication protocols, OSI and TCP/IP networking models, and transport-layer trade-offs among WebSocket, Server-Sent Events, TCP and QUIC.

  • hard
  • Snapchat
  • Software Engineering Fundamentals
  • Software Engineer

Compare WebSocket, SSE, and long polling

Company: Snapchat

Role: Software Engineer

Category: Software Engineering Fundamentals

Difficulty: hard

Interview Round: Onsite

In the context of building real-time features for a web application, answer the following networking fundamentals questions: 1) **WebSocket vs. Server-Sent Events (SSE):** Compare them in terms of communication direction (uni/bidirectional), transport/protocol, browser/client support, reconnection behavior, scalability/load balancers, and typical use cases. 2) **OSI model:** Briefly describe the purpose of each OSI layer and give common examples of protocols/technologies that map to each layer. Also explain how the OSI model relates to the practical TCP/IP model. 3) **TCP vs. QUIC:** Compare TCP and QUIC in terms of where they run (kernel/user space), handshake latency, TLS integration, multiplexing and head-of-line blocking, connection migration, and when QUIC is typically preferred (e.g., HTTP/3).

Quick Answer: This question evaluates understanding of real-time web communication protocols, OSI and TCP/IP networking models, and transport-layer trade-offs among WebSocket, Server-Sent Events, TCP and QUIC.

Related Interview Questions

  • Implement an iOS scrollable grid with navigation - Snapchat (hard)
  • Explain Swift memory, value semantics, and GCD - Snapchat (hard)
Snapchat logo
Snapchat
Jan 4, 2026, 12:00 AM
Software Engineer
Onsite
Software Engineering Fundamentals
1
0

In the context of building real-time features for a web application, answer the following networking fundamentals questions:

  1. WebSocket vs. Server-Sent Events (SSE): Compare them in terms of communication direction (uni/bidirectional), transport/protocol, browser/client support, reconnection behavior, scalability/load balancers, and typical use cases.
  2. OSI model: Briefly describe the purpose of each OSI layer and give common examples of protocols/technologies that map to each layer. Also explain how the OSI model relates to the practical TCP/IP model.
  3. TCP vs. QUIC: Compare TCP and QUIC in terms of where they run (kernel/user space), handshake latency, TLS integration, multiplexing and head-of-line blocking, connection migration, and when QUIC is typically preferred (e.g., HTTP/3).

Solution

Show

Comments (0)

Sign in to leave a comment

Loading comments...

Browse More Questions

More Software Engineering Fundamentals•More Snapchat•More Software Engineer•Snapchat Software Engineer•Snapchat Software Engineering Fundamentals•Software Engineer Software Engineering Fundamentals
PracHub

Master your tech interviews with 7,500+ real questions from top companies.

Product

  • Questions
  • Learning Tracks
  • Interview Guides
  • Resources
  • Premium
  • For Universities
  • Student Access

Browse

  • By Company
  • By Role
  • By Category
  • Topic Hubs
  • SQL Questions
  • Compare Platforms
  • Discord Community

Support

  • support@prachub.com
  • (916) 541-4762

Legal

  • Privacy Policy
  • Terms of Service
  • About Us

© 2026 PracHub. All rights reserved.