Combining Flutter with Protobuf to build a powerful mobile app
summary
Demonstrates using Protobuf with Flutter and native code via the Protobuf compiler and method channels, with a Rust test server sending 10k–1M records; claims modest CPU/time gains but large bandwidth and storage savings. Shows generated Dart/Java code parsing bytes into objects, local-file tests where parsing 100,000 items takes 76 ms with Protobuf versus 195 ms for JSON, and file sizes roughly 4 MB vs 6 MB; method-channel transfer of 100,000 items measures 37 ms versus 195 ms using Pigeon.
AI-written summary · about
chapters (13)
- 0:00Introduction and speaker background
- 3:39JSON limitations in mobile apps
- 8:38What is Protocol Buffers
- 10:45How Protobuf works
- 12:52Protobuf schema and data types
- 15:43Benefits of Protobuf
- 17:48Performance comparison with JSON
- 21:20Protobuf for server-client communication
- 21:42Protobuf for Flutter-native communication
- 23:53Protobuf for local data storage
- 26:44When to use Protobuf over JSON
- 27:47When not to use Protobuf
- 28:50Next steps and resources
related talks
16mDesigning API for Mobile Apps
33mConnect: gRPC that "works everywhere"
15mLightning Talk: Designing an Intent-based API
37mProtobuf and buf: glamour, misery, and import substitution
32mHow to successfully shift from app development to SDK development
23mEffective Protobuf: Everything You Wanted To Know, But Never Dared To Ask
28mBuilding and managing an extensive API for Robotics and IoT
32mBuilding Apps with an API-based Backend
