# Kafka Codec Avro Plugin Polling Frequency

**URL:** <https://discuss.elastic.co/t/kafka-codec-avro-plugin-polling-frequency/337121>\
**Category:** Logstash\
**Created:** [June 28, 2023, 6:25pm UTC](https://discuss.elastic.co/t/kafka-codec-avro-plugin-polling-frequency/337121 "2023-06-28T18:25:13Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![fine\_porcupine](https://avatars.discourse-cdn.com/v4/letter/f/8dc957/32.png) [@fine\_porcupine](https://discuss.elastic.co/u/fine_porcupine)\
**Post date:** [June 28, 2023, 6:25pm UTC](https://discuss.elastic.co/t/kafka-codec-avro-plugin-polling-frequency/337121/1 "2023-06-28T18:25:14Z")

</div>

I'm planning on using the [Codec Avro Plugin](https://www.elastic.co/guide/en/logstash/current/plugins-codecs-avro.html) to deserialize incoming events from SQS. However, requests to the Kafka schema registry are rate-limited to 25 queries/second when using an HTTP URI.

How frequently does this plugin call the Kafka schema registry? Is it once per pipeline event or is there some caching behind the scenes that can reduce the number of requests?

---

<div class="post-metadata">

**Author:** ![Badger](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/badger/32/25190_2.png) [@Badger](https://discuss.elastic.co/u/Badger)\
**Post date:** [June 28, 2023, 10:52pm UTC](https://discuss.elastic.co/t/kafka-codec-avro-plugin-polling-frequency/337121/2 "2023-06-28T22:52:25Z")

</div>

> [@fine\_porcupine](#):
>
> How frequently does this plugin call the Kafka schema registry?

Whatever the schema\_uri option points to is [read once](https://github.com/logstash-plugins/logstash-codec-avro/blob/225e63d70f40475a0e462dcc203df87fd7a5c0f3/lib/logstash/codecs/avro.rb#L97) when the pipeline is loaded and re-used until the pipeline is restarted.

---

<div class="post-metadata">

**Author:** ![system](https://us1.discourse-cdn.com/elastic/original/3X/1/a/1ac57faf039f6b580b3f104ef42a2a89e41014de.png) [@system](https://discuss.elastic.co/u/system)\
**Post date:** [July 26, 2023, 10:53pm UTC](https://discuss.elastic.co/t/kafka-codec-avro-plugin-polling-frequency/337121/3 "2023-07-26T22:53:15Z")

</div>

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