What would be the most efficient way of doing the following(with `moshi`/`okio`):
Inside an abstract jvm server, stream json(gzipped , from another server) as a response to the client, while reading json values from predefined number of keys using, and after streaming is done using them elsewhere.
The goal is to minimize allocations and only load values that are needed.
Do upcoming
moshi
apis such as
valueSink
and
valueSource
are good choice for that?
@jw