Spring-framework: Add JSON support to Protobuf codecs

Created on 22 Jul 2020  路  4Comments  路  Source: spring-projects/spring-framework

Use case: Developers want to create PROTO implementation (more efficient), however, want to also expose as rest, to support non-proto clients -- perhaps we are in technology-transition time?

This does not work for netty, but works for tomcat, so likely some platform config issue?

Please make it easy to expose PROTO implementation as rest, without code duplication.

image

https://stackoverflow.com/questions/60289736/spring-webflux-netty-no-tomcat-how-to-expose-proto-as-json-endopints-without/63022169#63022169

web enhancement

Most helpful comment

Ok I understand now, so this is about providing similar capablities than ProtobufJsonFormatHttpMessageConverter bu on codecs/WebFlux side.

All 4 comments

+1

Protobuf support is provided in Spring WebFlux via ProtobufDecoder and ProtobufEncoder. Could you please check what prevents you to use that support?

Json serialization/deserialization doesn't work for protobufs when using webflux.

Ok I understand now, so this is about providing similar capablities than ProtobufJsonFormatHttpMessageConverter bu on codecs/WebFlux side.

Was this page helpful?
0 / 5 - 0 ratings