thepointman.dev_

Courses / Java

Java NIO

advanced8 lessons

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

  1. 01

    Why NIO? — The Scalability Problem with Blocking I/O

    soon
  2. 02

    ByteBuffer — capacity, limit, position, mark and the State Machine

    soon
  3. 03

    The Flip Protocol — Writing Then Reading from the Same Buffer

    soon
  4. 04

    FileChannel — Efficient File I/O with Channels

    soon
  5. 05

    SocketChannel in Non-Blocking Mode

    soon
  6. 06

    Selector — Multiplexing Many Channels on One Thread

    soon
  7. 07

    The Reactor Pattern — Event Loop Architecture in Java

    soon
  8. 08

    Direct ByteBuffer vs Heap ByteBuffer — Off-Heap Trade-offs

    soon