4. 이러한 구현 방식은?
• Blocking IO 방식
• "Blocking" means that the caller waits until
the callee finishes its processing. For
instance, a "blocking read" from a socket
waits until there is data to return; a "non-
blocking" read does not, it just returns an
indication (usually a count) of whether
there was something read
29. Event-loop
• Reactor pattern이라고 함
• single thread 에 event를 등록하고 발생하는 이벤트를 디스
패치 하는 패턴
• 이런 패턴을 적용한 애플리케이션
• IOS
• GNOME
• Winmain
30. Event-loop in Netty
• One-to-Many relation between EventLoop and Channel
• Process "events" and hand over work to the
ChannelPipeline
• All tasks executed in Eventloop
• Eventloop로 업무나 추가처리를 할 수 있음
• synchronization 처리 필요없음
• blocking 안됨
33. ByteBuf
• Separate index for reader/writer
• CompositeByteBuf
• Direct and Heap implementations
• Resizable with max capacity
• Support for reference-counting
• Method-Chaining