C · Concurrency & streams
Use case
Section titled “Use case”Relay fans webhooks out to many targets without overwhelming any of them, and streams large payloads without loading them into memory.
Lessons
Section titled “Lessons”| # | Lesson |
|---|---|
| 1 | The event loop, microtasks and macrotasks |
| 2 | Promise combinators |
| 3 | Concurrency limits: a semaphore and a worker pool |
| 4 | Backpressure with async iterators |
| 5 | Web Streams |
Some exercises run in the browser; others need real Bun or real files and run in your own project with bun test. Each lesson says which.