Reactive Hardcore: How to Build Your Own Publisher
summary
Covers why the Reactive-Streams specification exists and the difficulties of implementing it; walks through building a naive Publisher/Subscriber implementation, finding bugs, and testing correctness. Progressively develops proper operator implementation techniques and best practices used in RxJava 2 and Reactor 3, including handling concurrency and how to create and test your own reactive operator.
AI-written summary · about
chapters (19)
- 0:00Introduction
- 3:11Reactive Streams spec
- 8:31Basic Publisher
- 10:40Backpressure support
- 12:47Null safety & errors
- 14:13Preventing recursion
- 17:23Cancellation & cleanup
- 19:09Testing with TCK
- 21:16Thread safety
- 24:09Multi-threaded tests
- 28:04Race conditions
- 31:32Thread safety loop
- 33:23Atomic counter overflow
- 36:58Optimizing impl
- 40:09Reducing atomics
- 45:09Benchmarking
- 49:50Reactor ArrayPublisher
- 56:12Summary & patterns
- 59:04Q&A
