Date and time type for use with Protobuf

There is Timestamp message type since protobuf 3.0, that’s how to create it in model: syntax = “proto3”; import “google/protobuf/timestamp.proto”; message MyMessage { google.protobuf.Timestamp my_field = 1; } timestamp.proto file contains examples of Timestamp using, including related to Linux and Windows programs. Example 1: Compute Timestamp from POSIX time(). Timestamp timestamp; timestamp.set_seconds(time(NULL)); timestamp.set_nanos(0); Example 2: … Read more

What are the key differences between Apache Thrift, Google Protocol Buffers, MessagePack, ASN.1 and Apache Avro?

ASN.1 is an ISO/ISE standard. It has a very readable source language and a variety of back-ends, both binary and human-readable. Being an international standard (and an old one at that!) the source language is a bit kitchen-sinkish (in about the same way that the Atlantic Ocean is a bit wet) but it is extremely … Read more

What’s the difference between Protocol Buffers and Flatbuffers?

I wrote a detailed comparison of a few serialization systems, including Protobufs and FlatBuffers, here: https://kentonv.github.io/capnproto/news/2014-06-17-capnproto-flatbuffers-sbe.html However, the comparison focuses more on comparing the three new “zero-copy” serialization systems, and includes Protobufs mostly as a reference point. Also, I’m the author of Cap’n Proto, and also the author of Protobufs v2 (I was responsible for … Read more

protobuf vs gRPC

Protocol buffers is (are?) an Interface Definition Language and serialization library: You define your data structures in its IDL i.e. describe the data objects you want to use It provides routines to translate your data objects to and from binary, e.g. for writing/reading data from disk gRPC uses the same IDL but adds syntax “rpc” … Read more

Hata!: SQLSTATE[HY000] [1045] Access denied for user 'divattrend_liink'@'localhost' (using password: YES)