Halia is a component-based network application framework for rapid development of maintainable high-performance servers and clients.
Reference netty to implementation. Netty
- Component-Based
- Extensible
- High-Performance
-------------------------------------------
-> handler1 -> ... handlerN ->
head tail
<- handler1 <- ... handlerN <-
--------------------------------------------
- DebugEncoder/DebugDecoder: Print the data to stderr for easy debugging.
- FixedLengthFrameDecoder
- LengthFieldBasedFrameDecoder
- LineBasedFrameDecoder
- HTTP Protocol
- Echo Application,Implementation based on
LineBasedFrameDecoder
- Time Application,Implementation based on
FixedLengthFrameDecoder
, The packet is fixed to an 8-byte length timestamp - Chat Application
Implementation based on
LengthFieldBasedFrameDecoder
, low coupling/high scalability, To add custom package only needs to be registered in PacketFactory and ProcessorFactory.