The scalability problem with blocking I/O, ByteBuffer's capacity/limit/position state machine and the flip() protocol, FileChannel, SocketChannel in non-blocking mode, Selector multiplexing many channels on one thread, the Reactor pattern implemented from scratch, and direct vs heap ByteBuffer trade-offs.
// Lessons
- 01soon
Why NIO? — The Scalability Problem with Blocking I/O
- 02soon
ByteBuffer — capacity, limit, position, mark and the State Machine
- 03soon
The Flip Protocol — Writing Then Reading from the Same Buffer
- 04soon
FileChannel — Efficient File I/O with Channels
- 05soon
SocketChannel in Non-Blocking Mode
- 06soon
Selector — Multiplexing Many Channels on One Thread
- 07soon
The Reactor Pattern — Event Loop Architecture in Java
- 08soon
Direct ByteBuffer vs Heap ByteBuffer — Off-Heap Trade-offs