Skip to content

rpc calls with compressed payload

Fanda Vacek edited this page Apr 18, 2022 · 2 revisions

RPC calls with compressed payload (DRAFT)

zlib compression

http://tools.ietf.org/html/rfc1950 (zlib format), rfc1951 (deflate format) and rfc1952 (gzip format).

ShvBroker support

  1. Who will make compression if client will ask for compressed payload, but device will not support the payload compression? Broker?
  2. What if device compress payload without client request?
  3. Should the client advertise, if it can received compressed data or not?
  4. It might be better to keep the result compression on application side, like 'getFileContent(copressed=zlib)'. In other case, the ShvBroker must be able to convert compressed payload between CPON and CHAINPACK, possibly JSON