This is a simple code size comparison between Dubbo-Web and gRPC-web.
We are generating code for the module buf.build/bufbuild/eliza once with protoc-gen-grpc-web
, once with protoc-gen-apache-dubbo-es
. Then we bundle a client for the service buf.connect.demo.eliza.v1.ElizaService
with esbuild, minify the bundle, and compress it like a web server would usually do.
code generator | bundle size | minified | compressed |
---|---|---|---|
dubbo | 112,976 b | 49,590 b | 13,282 b |
grpc-web | 414,906 b | 301,127 b | 53,279 b |