spring - Which type conversion to use for mixed types (json and large data object) -


i want broker mixed content messages between frontend web application , data processing pipeline.

in particular, need send data triple comprising:

  • metadata: few bytes kb json string
  • configuration: few bytes (or empty) few kb json string
  • data: pretty large data object, somewhere between 1mb 100mb

i checking spring xd documentation @ [1] possible input / output conversions. however, want avoid encoding such large data json. not see option splitting message triple 2 messages, once application/json 2 json strings , binary large data piece.

which type conversion should use mixed content message?

[1] http://docs.spring.io/spring-xd/docs/current-snapshot/reference/html/#type-conversion

one thing may want consider using header enricher carry json content in message headers , data in payload. don't know if addresses type conversion needs. @ point need bind json pojo?


Comments