NIAEFEUP / tts-be

A platform where students can experiment with the possible combination of schedule options they can pick at the start of the semester
https://tts.niaefeup.pt
5 stars 1 forks source link

Add protocol buffers support for python #90

Open tomaspalma opened 1 month ago

tomaspalma commented 1 month ago

https://protobuf.dev/getting-started/pythontutorial/

Protocol Buffers are a more compact way to greatly reduce the traffic that is sent over the network to the open sockets.

The way it works it like this:

  1. We have to have a protobuf compiler
  2. The structure of the messages are defined in .proto files
  3. Then the compiler needs to convert what is inside the .proto files into an actual programming language code.

In order to install the compiler you can follow this guide or download them from the official repository packages