Some modifications have been made on beep4j, and a server framework based on the beep protocol is implemented.
Beep provides session, channel, greeting, profile, frame, and other concepts. Based on these basic concepts, it is easy to design more advanced application layer protocols.
Features and capabilities of the beep Protocol
Persistent connection
Peer communication
Request/response interaction
Create multiple independent channels in a session)
Multiple asynchronous requests (Sliding Window) in one channel)
You can use different message encoding methods, including binary, text, XML, and other mime-like SMTP, so that you can choose between efficient binary and easy-to-understand texts.
This is a protocol between the transport layer and the application layer. It is widely used and RFC is standardized. The official website is http://www.beepcore.org /. Many companies have corresponding support, including IBM. Various implementations are implemented in different languages, including C, Java, Python, Ruby, and JavaScript beep client.
About contenttype and Codec
In JavaProgramCommunication between them. In the early stage, you may not want to perform more protocol encoding and decoding. Using spring bean XML format for transmission is a method.
In some scenarios where efficiency is not particularly high and machine-friendly XML is not preferred, JSON encoding can be used.
In some scenarios that require high efficiency, ASN.1 or custom binary encoding format.
Even the local serialization encoding method is used.