Skip to content

Latest commit

 

History

History
48 lines (33 loc) · 1.29 KB

README.md

File metadata and controls

48 lines (33 loc) · 1.29 KB

Halia

Halia is a component-based network application framework for rapid development of maintainable high-performance servers and clients.

Reference netty to implementation. Netty

中文文档

Links

Features

  • Component-Based
  • Extensible
  • High-Performance

Data Stream

-------------------------------------------
        -> handler1 -> ... handlerN -> 
head                                    tail    
        <- handler1 <- ... handlerN <-       
--------------------------------------------

Built-in Decoder

  • DebugEncoder/DebugDecoder: Print the data to stderr for easy debugging.
  • FixedLengthFrameDecoder
  • LengthFieldBasedFrameDecoder
  • LineBasedFrameDecoder

Built-in Protocol Decoder

  • HTTP Protocol

Examples

  • 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.