As of NATS 2.2 message headers have been supported (NATS is currently 2.8.2 for reference).
This issue is to propose change the protocol binding to put all fields into the header and have the data map to the message payload exclusively. This would remove the need of the JSON-encoded representation for all of the event attributes.
If this is a welcome change, I am happy to open a PR to change the document. Note these are not mutually exclusive, so for NATS servers that pre-date v2.2.x, the JSON encoded representation could still be maintained.
As of NATS 2.2 message headers have been supported (NATS is currently 2.8.2 for reference).
This issue is to propose change the protocol binding to put all fields into the header and have the
datamap to the message payload exclusively. This would remove the need of the JSON-encoded representation for all of the event attributes.If this is a welcome change, I am happy to open a PR to change the document. Note these are not mutually exclusive, so for NATS servers that pre-date v2.2.x, the JSON encoded representation could still be maintained.