# Kafka Producer (Avro) Performance Testing

**URL:** <https://forum.confluent.io/t/kafka-producer-avro-performance-testing/3194>\
**Category:** Kafka Connect\
**Created:** [25 October 2021 21:42 UTC](https://forum.confluent.io/t/kafka-producer-avro-performance-testing/3194 "2021-10-25T21:42:52Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![stcook](https://avatars.discourse-cdn.com/v4/letter/s/a9a28c/32.png) [@stcook](https://forum.confluent.io/u/stcook)\
**Post date:** [25 October 2021 21:42 UTC](https://forum.confluent.io/t/kafka-producer-avro-performance-testing/3194/1 "2021-10-25T21:42:52Z")

</div>

Looking for advice on best practice.

I have a Kafka Connect worker sinking “avroized” data to a MySQL database. I would like to conduct performance testing. I’ve used “kafka-producer-perf-test” before on String data. However, that doesn’t appear to be the solution for my new “avroized” use case.

I’m looking to mock the fields in the database table, along with setting the number of records per minute.

Is there a Kafka “out-of-the-box” solution for testing Avro serialized data? Is building a custom class necessary?

Your advice?

Thank you for your help.

---

<div class="post-metadata">

**Author:** ![riferrei](https://sea1.discourse-cdn.com/flex019/user_avatar/forum.confluent.io/riferrei/32/1848_2.png) [@riferrei](https://forum.confluent.io/u/riferrei)\
**Post date:** [25 October 2021 22:49 UTC](https://forum.confluent.io/t/kafka-producer-avro-performance-testing/3194/2 "2021-10-25T22:49:50Z")

</div>

Since you’re using Kafka Connect already, you can install the DataGen source connector to generate sample data based on your Avro schemas into the topic that should contain the “avroized” records.

> **[GitHub - confluentinc/kafka-connect-datagen: Connector that generates data...](https://github.com/confluentinc/kafka-connect-datagen)**
>
> Connector that generates data for demos. Contribute to confluentinc/kafka-connect-datagen development by creating an account on GitHub.

— @riferrei

---

<div class="post-metadata">

**Author:** ![system](https://us1.discourse-cdn.com/flex019/uploads/confluentcommunity/original/1X/c49438c90c9df282e9996fdf6971be890c71b65a.svg) [@system](https://forum.confluent.io/u/system)\
**Post date:** [24 November 2021 22:50 UTC](https://forum.confluent.io/t/kafka-producer-avro-performance-testing/3194/3 "2021-11-24T22:50:20Z")

</div>

Closed on 24 November 2021 22:50 UTC

This topic was automatically closed 30 days after the last reply. New replies are no longer allowed.
