https://kotlinlang.org logo
#ktor
Title
y

Yuri

08/10/2018, 9:05 PM
@orangy yes, thanks. Any plans to add such
ContentConverter
as maven artifact similar to jackson one in the future?
o

orangy

08/10/2018, 9:08 PM
Is there any evidence that protobuf is frequently used like this?
y

Yuri

08/10/2018, 9:24 PM
like serialization format for client-server communication without using grpc?
o

orangy

08/10/2018, 9:44 PM
Nope, as a content type format for direct web requests. As far as I understand, it’s mostly used for some longer running connections, like Web Sockets or direct TCP connection, but I may be missing some important use case.
y

Yuri

08/10/2018, 10:18 PM
It is quite common usecase to migrate from Json to Proto in mobile projects in case of large amount of small objects passing to requests/responses. The reasons are simple - improved parsing performance, lower CPU usage than gson/jackson, fixed protocol, api versioning etc.
For example Retrofit (popular Android networking library) supported Proto3 converter more than a year ago
So it would be nice to be able to use (kotlin + retrofit + protobuf) on client side and (ktor + protobuf) on server side out of the box
2 Views