8/13/25, 7:02 PM DataTransfer-Evolution - Overview
DataTransfer-Evolution
Last updated by | Sathappa Subramaniam | Aug 13, 2025 at 7:01 PM GMT+4
Data Transfer – Format Evolution
1. Formats Overview
Over time, data transfer formats have evolved to balance readability, structure, and efficiency.
a. Text Format
List Item 1:
"ProductName": "Phone", "Price": 5000, "CategoryId": 1
List Item 2:
"ProductName": "Watch", "Price": 6000, "CategoryId": 1
b. XML
<root>
<Products>
<Product_1>
<ProductName type="Text">Phone</ProductName>
<Price type="integer">5000</Price>
<CategoryId>1</CategoryId>
</Product_1>
<Product_2>
<ProductName type="Text">Watch</ProductName>
<Price type="integer">6000</Price>
<CategoryId>1</CategoryId>
</Product_2>
</Products>
</root>
c. JSON
[
{ "ProductName": "Phone", "Price": 5000, "CategoryId": 1 },
{ "ProductName": "Watch", "Price": 6000, "CategoryId": 1 }
]
d. Protobuf (Conceptual Mapping)
[
{ "A": "Phone", "B": 5000, "C": 1 },
{ "A": "Watch", "B": 6000, "C": 1 }
]
Note: Protobuf is stored/transmitted as binary bytes ( AA BB CC DD EE ), not human-readable text.
2. Transmission Flow
[ Original Data (~1 KB) ]
↓
Compression
↓
[ Smaller Size ]
↓
Transfer (HTTP/TCP)
↓
Decompression
↓
[ Original Data (~1 KB) ]
Sender Receiver
Transfer
Original Data ~1 KB Compression Smaller Size Decompression Original Data ~1 KB
HTTP/TCP/UDP/CoAP
Compression reduces size for faster transfer.
Decompression restores original data after receipt.
Common HTTP compression: gzip , br .
With TCP, compression is handled at the application layer.
3. Key Takeaways
Text/XML → Human-readable, verbose.
JSON → Lighter, widely used in APIs.
Protobuf → Compact binary, faster to serialize/deserialize.
Compression can be applied to any format before sending.
[Link] 1/1