Skip to content
This repository has been archived by the owner on Nov 8, 2023. It is now read-only.

Reduce object creations in in the poll method on the Kafka consumer #14

Open
fpacifici opened this issue May 20, 2022 · 0 comments
Open
Labels
good first issue Good for newcomers

Comments

@fpacifici
Copy link
Collaborator

This is what the Kafka consumer does
https://github.com/getsentry/rust_arroyo/blob/main/src/backends/kafka/mod.rs#L136-L154

It creates a topic and a partition object for every message. We should not need all this overhead.
Find a way to create only the message (even that could be questionable, but that is a bigger change) and use references to topic and partitions owned by something else.

@fpacifici fpacifici added the good first issue Good for newcomers label May 20, 2022
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
good first issue Good for newcomers
Projects
None yet
Development

No branches or pull requests

1 participant