napchart-website icon indicating copy to clipboard operation
napchart-website copied to clipboard

Using protobufs instead of JSON?

Open juanitotaveras opened this issue 5 years ago • 2 comments

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.

juanitotaveras avatar Jun 06 '20 18:06 juanitotaveras

When do we need json? When saving to DB? Thought firebase would eliminate the need for serializing/deserializing?

larskarbo avatar Jun 07 '20 08:06 larskarbo

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.

juanitotaveras avatar Jun 09 '20 05:06 juanitotaveras