A kiválasztott változat és az aktuális verzió közötti különbségek a következők.
Következő változat | Előző változat | ||
tanszek:oktatas:iss_t:modern_data_integration_based_on_protocol_buffer [2023/03/05 20:39] knehez létrehozva |
tanszek:oktatas:iss_t:modern_data_integration_based_on_protocol_buffer [2023/03/05 20:47] (aktuális) knehez |
||
---|---|---|---|
Sor 1: | Sor 1: | ||
- | ==== Protocol Buffer ==== | + | ==== Protocol Buffer (Protobuf) ==== |
- | A solution developed by Google for the serialization of structured data. The interface description is also displayed for this data integration method. | + | This is a solution for the serialization of structured data, developed by Google. The interface description is also displayed for this data integration method. |
- | The protocol buffer is a binary serialization method. However, its big advantage is that it supports many technologies, thereby increasing platform independence. | + | Protobuf are designed to be a compact and efficient binary format for transmitting data over a network or storing it on disk. They use a binary format that is smaller and faster to serialize and deserialize than text-based formats such as XML or JSON. |
More details can be found here: | More details can be found here: | ||
Sor 36: | Sor 36: | ||
After running, book_pb2.py is created, which is generated source code and contains the data interface. This can be used to manage (serialize and de-serialize) the data. | After running, book_pb2.py is created, which is generated source code and contains the data interface. This can be used to manage (serialize and de-serialize) the data. | ||
- | 4.) | + | 4.) Upgrade protobuf interface |
- | Run the pip install –upgrade protobuf command. | + | pip install –upgrade protobuf |
5.) Create the server.py file with the following content: | 5.) Create the server.py file with the following content: |