getsentry/rust_arroyo

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

Open

#14 创建于 2022年5月20日

在 GitHub 查看
 (0 评论) (0 反应) (0 负责人)Rust (0 fork)auto 404
good first issue

仓库指标

Star
 (2 star)
PR 合并指标
 (PR 指标待抓取)

描述

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.

贡献者指南