On 03/31/2014 07:31 PM, Michael Rose wrote:
> It's much more efficient to deserialize it once then pass around POJOs.
> JSON serialization is slow compared to Kryo. Our topologies tend to take
> in JSON, then emit JSON to external systems at later phases, but all
> intermediate stages are POJOs.

+1 to what Michael (Rose) said.  Don't forget to register the required
Kryo serializers for your pojos though.

Also, consider the use of Avro.  You can turn Avro into JSON once you
actually do need JSON.  Tools like Twitter Bijection and Twitter Chill
make this as simple as it can get (Avro also ships with JSON support,
but IMHO Bijection/Chill are preferable).

Michael



Reply via email to