Skip to content

Conversation

@lahabana
Copy link

Motivation

We're testing a Kafka gateway so it is useful for us to vary and control the payloads sent with openMessaging benchmark.

We also needed the ability to send headers.

Implementation

  • Replace the existing FilePayloadReader with PayloadReader which will behave the same with a single file as input but will load all files with extension .payload.yaml in the folder passed.
  • Change the payload serializer to either take raw bytes or a yaml object
  • Instead of just passing []byte to the generator pass a Payload object so we can send headers as well.
  • Add bin/generate_payloads.sh a sample script to generate a folder with data with some entropy

All this still respect the requirement to preload everything to minimize perf impact.

Signed-off-by: Charly Molter [email protected]

We can now pass an entire folder as input data
This will also read headers along with the actual data.

This also includes a simple script to generator a set of payloads with some variability in content

Signed-off-by: Charly Molter <[email protected]>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant