# Using Schema Registry

**URL:** <https://community.hivemq.com/t/using-schema-registry/2778>\
**Category:** HiveMQ Extensions\
**Created:** [March 15, 2024, 6:41pm UTC](https://community.hivemq.com/t/using-schema-registry/2778 "2024-03-15T18:41:27Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![dan](https://avatars.discourse-cdn.com/v4/letter/d/eada6e/32.png) [@dan](https://community.hivemq.com/u/dan)\
**Post date:** [March 15, 2024, 6:41pm UTC](https://community.hivemq.com/t/using-schema-registry/2778/1 "2024-03-15T18:41:27Z")

</div>

Hi,

I’ve been testing with sending data to a confluent cluster and I’m curious about specifying a schema - for sparkplugB\protobufs - for my topic

I believe i can add this to the config file with the use-schema-registry flag.  
Is there an example showing this modification?

Sorry if this has already been answered.

Thanks,  
Dan

---

<div class="post-metadata">

**Author:** ![Daria\_H](https://avatars.discourse-cdn.com/v4/letter/d/dfb087/32.png) [@Daria\_H](https://community.hivemq.com/u/Daria_H)\
**Post date:** [March 19, 2024, 12:35pm UTC](https://community.hivemq.com/t/using-schema-registry/2778/2 "2024-03-19T12:35:58Z")

</div>

Hi Dan,

Welcome aboard to the HiveMQ Community! It’s fantastic that you’re interested in MQTT and the HiveMQ broker. We’re thrilled to have you as part of our community.

Regarding your question – it seems there might be a slight confusion. The `<use-schema-registry>` parameter is associated with `<kafka-to-mqtt-mapping>` rather than `<mqtt-to-kafka-mapping>`. This means it pertains to the data the broker can receive from Kafka, rather than the data it sends to Kafka. Let me know if you need further clarification on this.

Best regards,  
Dasha from HiveMQ Team
