Chapter 4. Transports

This chapter covers

  • OIO—blocking transport
  • NIO—asynchronous transport
  • Local transport—asynchronous communications within a JVM
  • Embedded transport—testing your ChannelHandlers

The data that flows through a network always has the same type: bytes. How these bytes are moved around depends mostly on what we refer to as the network transport, a concept that helps us to abstract away the underlying mechanics of data transfer. Users don’t care about the details; they just want to be certain that their bytes are reliably sent and received.

If you have experience with network programming in Java, you may have discovered at some point that you needed to support a great many more concurrent connections than expected. If you ...

Get Netty in Action now with O’Reilly online learning.

O’Reilly members experience live online training, plus books, videos, and digital content from 200+ publishers.