Web | C++
summary
Compares three C++ WebSocket stacks by building a working straw‑poll service that uses FlatBuffers for zero‑copy messages and a static HTML/JS client; measures code size (uWebSockets ~1.6 KB, IncludeOS ~3 KB, Beast ~9 KB; uWebSockets <100 LOC, Beast >400 LOC), compile/iteration times, and memory under load. Shows uWebSockets handling 10,000 concurrent connections with only ~2 MB extra RAM, IncludeOS as a bootable ~1 MB unikernel option, and Beast as a low‑level, multi‑threaded but template‑heavy solution. Gives concrete APIs, lifetime and async write strategies, and microbenchmark numbers.
AI-written summary · about
chapters (15)
- 0:00Intro
- 1:17ROADMAP
- 2:57ADVANTAGES
- 3:41CHALLENGES
- 6:33EXAMPLE SERVICE
- 11:16VALIDATION
- 11:49SCHEMA
- 13:52CLIENT
- 17:02IMPLICIT CONVERSIONS
- 22:12CYCLIC CALL GRAPH
- 30:45EXAMPLE CODE SIZE
- 31:25EXAMPLE COMPILE TIME
- 35:01MEMORY USAGE USER SPACE
- 36:01KEY STRENGTH
- 37:43FUTURE
related talks
01h 01mGet rich quick! Using Boost.Beast WebSockets and Networking TS
01h 16mApplied C++20 Coroutines
13mIntroducing Beast...
58mSSE vs WebSockets vs Long Polling
30mWebSockets: The Real-Time Avengers
29mWebSockets Bring Light at the End of the Tunnel
01h 14mWebSocket: How, When and What It Costs
01h 00mThe Future of Rust Web Applications
