Skip to content

impl lease & cache for buf schema registry#870

Open
jem-davies wants to merge 1 commit into
warpstreamlabs:mainfrom
jem-davies:lease_protobuf_bsr_pollingleaser
Open

impl lease & cache for buf schema registry#870
jem-davies wants to merge 1 commit into
warpstreamlabs:mainfrom
jem-davies:lease_protobuf_bsr_pollingleaser

Conversation

@jem-davies

@jem-davies jem-davies commented May 27, 2026

Copy link
Copy Markdown
Collaborator

Fixes #861

The protobuf processor allows the setting of a protobuf.bsr field which can configure multiple clients to retrieve schemas. As reported on this slack message - there is the potential that a high volume of requests could be sent from Bento and was advised to implement caching such that only one instance will make calls to the registry whilst others will retrieve from the cache.

This PR adds two new config fields:

  • protobuf.bsr.cache -> If set schemas retrieved from the BSR will be saved in a cache resource
  • protobuf.bsr.polling_period -> The period in which to poll the Buf Schema Registry.

@jem-davies
jem-davies requested a review from gregfurman as a code owner May 27, 2026 15:11
@jem-davies
jem-davies force-pushed the lease_protobuf_bsr_pollingleaser branch from dacdaba to 94a5623 Compare May 27, 2026 16:30
@jem-davies
jem-davies marked this pull request as draft May 28, 2026 11:05
@jem-davies
jem-davies force-pushed the lease_protobuf_bsr_pollingleaser branch 4 times, most recently from a7e2538 to 79a1fe1 Compare May 29, 2026 11:00
@jem-davies
jem-davies marked this pull request as ready for review May 29, 2026 13:23
Signed-off-by: Jem Davies <jemsot@gmail.com>
@jem-davies
jem-davies force-pushed the lease_protobuf_bsr_pollingleaser branch from 1784f7c to 5acd17a Compare May 29, 2026 13:35
@jem-davies

Copy link
Copy Markdown
Collaborator Author

I think that the issue could be being caused by long lived protobuf processors' schemaWatchers not being cancelled / cleaned up ...

@jem-davies

Copy link
Copy Markdown
Collaborator Author

I think that the issue could be being caused by long lived protobuf processors' schemaWatchers not being cancelled / cleaned up ...

#873

@jem-davies jem-davies mentioned this pull request Jun 1, 2026
@gregfurman

Copy link
Copy Markdown
Collaborator

@jem-davies Do we still need this following #873 being merged?

@jem-davies

Copy link
Copy Markdown
Collaborator Author

@jem-davies Do we still need this following #873 being merged?

I think it still has value - although perhaps less of a priority after #873

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

protobuf processor: buf schema registry (bsr) should allow the use of a cache

2 participants