Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

fix: consume only one record at a time after startup #877

Conversation

jjaakola-aiven
Copy link
Contributor

About this change - What it does

If Karapace would expect to consume multiple records after startup, there is extra latency of the consumption timeout as consumer does not return control back to schema reader until it happens. This would cause extra latency when storing schema.
On normal operating mode after startup there expectation is to process single record at a time and return control immediately to schema reader when record is available.

@jjaakola-aiven jjaakola-aiven requested review from a team as code owners May 14, 2024 07:20
Copy link
Contributor

@eliax1996 eliax1996 left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

almost perfect! If you can fix the Final I'm ready to merge

karapace/schema_reader.py Outdated Show resolved Hide resolved
If Karapace would expect to consume multiple records after startup,
there is extra latency of the consumption timeout as consumer does
not return control back to schema reader until it happens. This would
cause extra latency when storing schema.
On normal operating mode after startup there expectation is to
process single record at a time and return control immediately to
schema reader when record is available.
@jjaakola-aiven jjaakola-aiven force-pushed the jjaakola-aiven-optimize-after-startup-schema-reader-performance branch from a8e3e4a to 85ef357 Compare May 14, 2024 09:21
@eliax1996 eliax1996 enabled auto-merge May 14, 2024 09:21
@eliax1996 eliax1996 merged commit ef3a486 into main May 14, 2024
8 checks passed
@eliax1996 eliax1996 deleted the jjaakola-aiven-optimize-after-startup-schema-reader-performance branch May 14, 2024 09:40
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.

2 participants