Skip to content

Conversation

@h4rikris
Copy link
Member

@h4rikris h4rikris commented Dec 2, 2021

Different schema types uses different data type to represent schemas. Avro and JSON schema types represented in JSON. Protobuf schema type transferred as byte stream. We chose bytes data type in gRPC to make it type agnostic. grpc-gateway uses standard protobuf to JSON mapping. As per the mapping rules byte data type represented as base64 string in json. While constructing HTTP calls clients have to encode/decode base64 data everytime which increases complexity on clients using HTTP API. This PR addresses to remove this extra encoding/decoding use original schema data types in http response.

@h4rikris h4rikris force-pushed the content-type-response branch from 06ce1bb to 59051b1 Compare December 3, 2021 05:21
@h4rikris h4rikris merged commit 1fc405e into master Dec 6, 2021
@h4rikris h4rikris deleted the content-type-response branch December 6, 2021 08:43
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants