52 points · by knrt · 6y ago · 28 comments
What are "keys and values" with regard to protobuf? Surely you don't mean maps as bytes can't be "keys" anyways. And why shouldn't you use string as a field type?
My google-fu only turns up references to invalid utf-8 data, but that didn’t sound like what you were referring to.
Only use string when you really mean utf8.
Neither Spanner nor Bigtable has this feature. If you store a protobuf in a Bigtable column, that's your own business. Bigtable itself won't notice.
Later this allows one to change things independently.
I would also not use Any as a request or reply type, but Any, in general, is fairly common in practical use.
The tooling around pulling in protobuf at compile time is a huge pain in the ass. I've been spending an hour or so every night over past few weeks searching issues to figure out why things aren't working. This is a great reference point for me, thanks!