napchart-website
napchart-website copied to clipboard
Using protobufs instead of JSON?
Can we use protobufs instead of JSON as the data format for a user's schedule data?
Protobufs are strongly typed so that will help avoid mistakes with parsing. They also take up significantly less data than JSON, and they have backwards-compatibility features.
When do we need json? When saving to DB? Thought firebase would eliminate the need for serializing/deserializing?
You have a good point - I was looking at Firebase Storage, which basically just stores files for you and you would need to serialize/deserialize. With Firebase Cloudstore, it does handle the serialization/deserialization as well, so we don't need to worry about the format.