Tag:protobuf

  • Grpc (III) Python calls go language grpc client and server

    Time:2022-4-17

    catalogue Protobuf configuration and introduction for grpc Go language grpc server and client Python grpc server and client Protobuf for compiling Python When Python calls grpc, it also needs to compile the corresponding proto file. Before compiling, it needs to install the necessary modules #Installation module pip install grpcio #Install compiler tool pip install grpcio-tools […]

  • Installation, configuration and use of protobuf and grpc in golang environment

    Time:2022-4-11

    Installation, configuration and use of protobuf and grpc in golang environment Introduction to protobuf [protobuf3 syntax]( https://blog.csdn.net/Mr_XiMu/article/details/123106077 ) Protobuf download and installation You need to download the protocol actuator first Installation of go and grpc plug-ins under protobuf Use of protobuf in combination with grpc Project structure 1. Edit helloword proto 2. Set helloword Proto […]

  • Protobuf introduction and practice 27: how to define the method without return value and parameter in RPC? (grpc go protobuf empty has no return value and no parameter)

    Time:2022-4-7

    1   go grpc go related technical column general entrance 2   protobuf introduction and actual combat graphic column contents 1. When defining RPC method in proto file, how to realize no parameter setting and no return value setting? 1.1 step 1: import the specified file 1.2 step 2: the setting method is no parameter […]

  • Protocol Gen go unable to determine go import path when exporting protocol

    Time:2022-3-24

    In general, we put.protoFile inpbFolder.Under this folder, use the following command to.protoConvert file togoAn error occurred while the file was. command: protoc –go_out=. *.proto An error occurred: C:\Users\Bestzy\go\src\awesomeProject\pb>protoc –go_out=. myproto.proto protoc-gen-go: unable to determine Go import path for “myproto.proto” Please specify either: • a “go_package” option in the .proto source file, or • a “M” […]

  • Int int8 int16 int32 Int64 uint8 uint16 uint32 Uint64 occupied bytes and value range in golang

    Time:2022-3-24

    ================================ Go grpc go related technology column general entrance   Summary, arrangement and collection of go language basic knowledge ================================  The test environment is a MAC system with 64 bit CPU. be careful:The size of int in go language is related to the number of bits in the operating system; If it is a 32-bit […]

  • Go language basic knowledge summary, sorting and collection

    Time:2022-2-18

    Click ================================ General entry of grpc go related technology ================================  This article is a summary, arrangement and collection of the basic knowledge of go language.  It is convenient for you to query and record. Crtl + F search keywords to see if there is relevant content Golang language Click # article title 1   bytes […]

  • Explain in detail how C # protobuf achieves the serialization of 0 allocated memory

    Time:2021-1-10

    The topic is very simple, that is, how does IMessage object become byte [] Answer 1: msg.ToByteArray() It certainly doesn’t meet our requirements Answer 2: using var memoryStream = new MemoryStream(); using var codedOutputStream = new CodedOutputStream(memoryStream); msg.WriteTo(codedOutputStream); codedOutputStream.Flush(); memoryStream.ToArray(); In this, memorystream, codedoutputstream and toArray all generate an object, and an additional byte [] […]

  • Grpc and protobuf in golang microservices

    Time:2020-10-20

    What is RPC? The so-called RPC (remote procedure call) framework actually provides a set of mechanism to enable the communication between applications, and also follows the server / client model. When using, the client calls the interface provided by the server just like calling local functions. What is grpc? Like many RPC systems, grpc specifies […]

  • A brief introduction to Google protobuf

    Time:2020-7-30

    What is protobuf Protobuf is actually a data transmission format and specification similar to JSON or XML, which is used for communication between different applications or processes. The information transmitted during communication is packaged by message data structure defined by protobuf, and then compiled into binary code stream for transmission or storage. Benefits of protobuf […]

  • How does go implement the encoding and decoding of protobuf (1): Principle

    Time:2020-7-7

    Link to the original text: https://mp.weixin.qq.com/s/O8… This is a sister article, which analyzes how go implements protobuf encoding and decoding How does go implement the encoding and decoding of protobuf (1): Principle How does go implement the encoding and decoding of protobuf (2): source code This is the first one. Introduction to protocol buffers Protocol […]

  • How does go implement the encoding and decoding of protobuf (2): source code

    Time:2020-7-6

    Link to the original text: https://mp.weixin.qq.com/s/oY… This is a sister article, which analyzes how go implements protobuf encoding and decoding How does go implement the encoding and decoding of protobuf (1): Principle How does go implement the encoding and decoding of protobuf (2): source code This is the second part. preface How do go implement […]

  • Go memory allocation, that’s it!

    Time:2020-7-4

    Link to the original text: https://mp.weixin.qq.com/s/3g… Old and new friends haven’t seen each other for a long time. I’m Dabin. I’ve prepared this article for a long time. Instead of procrastinating, I’ve done some other things and delayed some of them. This articleThis paper mainly introduces go memory allocation and go memory management, will slightly […]