Skip to content

How to use the term correctly

Call payload what the recipient processes, envelope what the network routes, and never log one as if it were the other.

Using "payload" without confusion

  1. Name the layer

    "HTTP payload" and "TCP payload" are different objects. Say which one.

  2. Separate from metadata

    Metadata describes the payload; the payload contains the information. Keep them in different fields.

  3. Do not log payload

    Payloads contain user data. Logs contain metadata. Mixing them is a compliance incident.

  4. Validate the envelope, sanitize the payload

    The envelope must be validated for routing; the payload must be sanitized for the application.