Hussein Nasser [ https://github.com/hnasr ]
Protocol Buffers (Protobuf) is a method of serializing structured data,
- useful for storing it on disk or sending over the wire.
Have to have structured data (barrier to entry)
More involved processed for small applications.
Have to make sure to update compiled boilerplate code (bugs, security vulnerability, etc.)
hard to use with JSON based application (Javascript/browser)
To test protocol buffer implementation:
npm install google-protobuf
ProtoC compiler download [select the latest compiler for your operating system]
vscode-proto3 (Protobuf 3 support if your running in Visual Studio Code)
Pre-fix following terminal command with location of your protoc download:
/protoc-3.19.1-osx-x86_64/bin/protoc --js_out=import_style=commonjs,binary:. employees.proto
To run protocol buffer implementation:
will create a binary file
run ls -lh in your directory - compare file sizes
protocol buffer javascript doc
https://github.com/protocolbuffers/pr ...
https://github.com/hnasr/javascript_p ...