Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Are there any databases that support protocol buffers? [closed]

Are there any databases, in either the SQL or NoSQL worlds, that support protocol buffers? (Support could mean various things, but hopefully would include being able to index on fields in protocol buffers.)

like image 878
Rob Lachlan Avatar asked May 09 '10 18:05

Rob Lachlan


People also ask

Are Protocol buffers still used?

In particular, it was designed to be smaller and faster than XML. Protocol Buffers are widely used at Google for storing and interchanging all kinds of structured information.

Is protobuf open source?

What is Protobuf? Protocol Buffers is an open source project under the BSD 3-Clause license, a popular one developed by Google, to provide a language-neutral, platform-neutral and extensible mechanism for serializing structured data. It supports many popular languages such as C++, C#, Dart, Go, Java and Python.

Does gRPC use Protocol buffers?

Working with Protocol BuffersBy default, gRPC uses Protocol Buffers, Google's mature open source mechanism for serializing structured data (although it can be used with other data formats such as JSON).


2 Answers

I am not aware of any (not that they don't exist, I just don't know about them), but perhaps it is worth discussing an alternate strategy and the pros and cons.

Typically you would want to store a serialized version of your protocol buffer, indexed by some particular key (a unique identifier, perhaps). You could then build secondary indexes for other interesting fields that point to that unique identifier. The idea is that you would want explicit indexes like this to scale beyond what a system that provides arbitrary indexes. This obviously opens up a world of new problems (such as stale arbitrary indexes).

like image 56
allenporter Avatar answered Sep 25 '22 23:09

allenporter


ProfaneDB: http://profanedb.gitlab.io

"ProfaneDB is a gRPC interface between Protocol Buffers and RocksDB"

P.S: Though the question was asked 10 years ago I still find it very relevant, specially with the ascension of gRPC. Hope that can be of help.

like image 45
Vitor Matos Avatar answered Sep 23 '22 23:09

Vitor Matos