grpc / grpc-web

gRPC for Web Clients
https://grpc.io
Apache License 2.0
8.51k stars 766 forks source link

Any way to mitigate dist size growth #1237

Open StevieJayCee opened 2 years ago

StevieJayCee commented 2 years ago

Hey,

I've been playing about with grpc-web and there some threads around the dist size already, but their concern was around the base dist using the lightweight hello world example.

Is there a best approach to combating the dist size as the needs grow? E.g. You're defining 300 messages and beyond?

Based on the generated client code so far, I'm guessing all defined messages are linked to the generated code and are included in the dist regardless?