Learning Mobile Development

Learning Protobuf for iOS Locally

Writing and Reading Protobuf for iOS locally without Server

Photo by Brett Jordan on Unsplash

Protocol Buffer is a means of Data Format Payload that Google introduced for a stronger contract between the Server and the Client. Unlike JSON, it is unlikely the format received from the Server would mismatch what the Client expected. Besides, it is compressed into binary bytes form, hence could result in a faster transfer than JSON.

However, to learn Protobuf Model, we would think we will need to have a Server Setup to test it out.

Here, I’m making it all local to the iOS App for easier learning, whereby I will write and read the Protobuf Model in the local drive as an example. This would simplify the learning of Protobuf in the iOS environment vastly.

High-level view

In the below section, I’ll share a simple design sample for easier learning.

--

--