. NET open source Protobuf-net component Practice Manual

Source: Internet
Author: User

First, preface

Protocol Buffer (abbreviated as PROTOBUF or PB) is a cross-platform message interaction protocol, such as XML, JSON, and so on; don't just use JSON and XML, take a look at Google's Protocol buffer! Because it is Google's production, I believe protocol buffer is already attractive enough. If you share the ". NET open source Protobuf-net Component Practice Handbook Course interested, then please follow the stupid study together.

Needless to say, directly on dry goods, we do not produce dry goods, we are just dry goods porter.

Ii. meaning and interpretation of concept names

2.1. What is Protobuffer?

Protocol Buffer (abbreviated as PROTOBUF or PB) is a data interchange format introduced by Google, unlike traditional XML and JSON, which is a binary format that eliminates the hassle of text format conversion, and the conversion efficiency is also very fast due to its cross-platform , cross-programming language features, make it more and more popular, especially the network data exchange is becoming a mainstream.

PROTOBUF Official website: https://github.com/google/protobuf/tree/master/csharp

2.2, Protobuffer Application Scenario Introduction

2.3, why protocol buffer performance so good?

2.4. What is Protobuf-net?

Iii. Introduction and use of Protogen tools

3.1. What is the. proto file?

3.2,. proto file generates CS code

3.3. Reverse the. proto file from the CS file

iv.protobuf-net Online source learning and demonstration

1, Protobufhelperunittest (Singleobject, ListObject, Complexmulitobject)

2, Protobufplusunittest (Singleobject, Listobjecttofile, Singleobjectwithlengthprefixtofile, Listobjectwithlengthprefixtofile, Inheritobjecttofile)

3, Protobufserializerhelperunittest (Singleobject, ListObject)


Online source Demo

Five, Protobuf thinking and summary

5.1. Protobuf Advantages and disadvantages

1), Advantages:

2), Disadvantages:

5.2. Summary

I hope that you will finish the study of this time. NET open source Protobuf-net Component Practice Handbook, you have a deep understanding and understanding of protobuf. The next course, PROTOBUF will bring you a high-level refresher course. NET Open Source Protobuf-net Components Sunflower Handbook, in the Advanced course, a stupid will lead you to learn protobuf in the HTTP general handler, WCF, ASP. MVC/WEBAPI application. If you are interested, then learn with the stupid!


. NET open source Protobuf-net component Practice Manual

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.