0chain / blobber

A storage provider (blobber) interface to the blockchain and consumers of storage.
Other
19 stars 23 forks source link

grpc-gateway: throw away http_handlers & make sure gRPC handlers take care of all the logic #254

Closed kushthedude closed 2 years ago

kushthedude commented 3 years ago

Problem

If we want to have gRPC performance then we shouldn’t use http communication through the grpc services. Rn, we are just using grpc as an extra abstract layer over our http handlers, our performance load is much with this gRPC Request->HTTP Request->HTTP Response->gRPC Response this is our current flow in the blobber.

Consequences

Proposed Solution

cnlangzi commented 2 years ago

grpc protocol doesn't work on wasm. I think we don't need this feature yet. we can raise new issue if it is necessary in future.