getsentry/rust_arroyo

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

Open

#14 geöffnet am 20. Mai 2022

Auf GitHub ansehen
 (0 Kommentare) (0 Reaktionen) (0 zugewiesene Personen)Rust (0 Forks)auto 404
good first issue

Repository-Metriken

Stars
 (2 Stars)
PR-Merge-Metriken
 (PR-Metriken ausstehend)

Beschreibung

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.

Contributor Guide