Skip to content

Enforce a size limit on journaled events #33

@samandmoore

Description

@samandmoore

Background
In some cases, we have messages being pulled off streams, augmented with additional data, and then plopped back onto another stream. If the message we initially put on the stream is too large (at or too close to the max message size) then we run the risk of breaking stream consumers ability to minimally augment our events and add them to their own streams.

Proposal
We should introduce a size limit for the events to ensure that we don't come within some reasonable threshold of the size limit of a validate message for AWS kinesis streams.

Questions

  1. what should the limit be? perhaps 90% of the max message size?
  2. how should we enforce this limit?
  • reject events that are too large? probably bad dev ex since the size of the message is a function of external factors
  • trim fields that are too large?

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions