Start to apply the beep Protocol

Source: Internet
Author: User
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.

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.