nmandery / rout3serv

H3-grid based Routing server with GRPC-API and dataframe integration
0 stars 0 forks source link

Enable compression for tonic #11

Closed nmandery closed 3 years ago

nmandery commented 3 years ago

This should reduce data-transfer times over slow networks

https://github.com/nmandery/route3/blob/14cc1a8d0ec4188f07051c92d47f0c1d2fa6f0b5/route3_road/Cargo.toml#L18

compression: Enables compressing requests, responses, and streams. Note that you must enable the compression feature on both tonic and tonic-build to use it. Depends on flate2. Not enabled by default.

https://docs.rs/tonic/0.6.1/tonic/index.html