Applied C++20 Coroutines
summary
Builds a small web server and a mobile mesh prototype with CMake, Boost.Beast (on top of Asio), Lua bindings and ApacheBench-driven benchmarks (code on GitHub), and shows C++20 coroutines outperform stackful coroutines and callback-based async as concurrent connections rise — Boost.Beast with Asio and ApacheBench requests/sec reveal better scaling for C++20; the mesh control logic uses about 40 actions (scan/connect/timer/etc.) and generators land in C++23.
AI-written summary · about
chapters (28)
- 0:00Introduction
- 2:33Outline
- 5:10Example Code
- 7:14Back to Basics
- 7:47Concurrency vs Parallelism
- 10:33Coroutine granularity
- 11:33Coroutine vs Fibers
- 12:52OS Multitasking
- 16:45Coroutines as fibers
- 18:18Example
- 22:29Mobile Connection Management
- 24:35Architecture
- 27:08Architecture Example
- 32:42Dispatcher
- 34:08Connect to Action
- 35:00TCP Connections
- 36:14CPP
- 39:38Coroutines
- 44:15Waitable
- 46:49Return Type
- 48:22Promise Type
- 49:15Handles
- 53:11Promise
- 55:30Loop
- 56:16Applications
- 56:26Observations
- 57:05BoostBeast
- 57:45Apache Bench








