Java codec technology, JSON serialization and binary serialization

Source: Internet
Author: User

1. What is JSON serialization and binary serialization

Usually we use JSON as a transmission in the program, and JSON is serialized as JSON. and binary serialization is usually when we convert the data to binary for transmission, and then we do all kinds of conversion operations

2. Applicable scenarios

Small series think that when the data using JSON transmission, the application and the Web and control layer conversion, front-end JS to the JSON support is good, and the program internal system and the system using binary serialized encoding format for data transmission, so as to improve the data transmission efficiency

3. Pros and cons

JSON serialization is a bit easier to understand, often, easy to interact with the front end, the disadvantage is that there is no binary serialization after the high efficiency of data transmission.

Binary serialization is a bit of data transfer efficiency is high, the serialization of small stream

Personally feel that in fact for the transmission of data this problem, different projects due to the uneven technical personnel, so there must be a unified internal use standards. Of course, the unification of binary data transmission is certainly faster, can make data transfer faster ....

Java codec technology, JSON serialization and binary serialization

Related Article

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.