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

Add config to emit empty chunks when fetch returns nothing #899

Draft
wants to merge 1 commit into
base: series/2.x
Choose a base branch
from

Conversation

bplommer
Copy link
Member

No description provided.

@rodrigo-molina
Copy link
Contributor

Today, we have some Kafka consumers buffering data and flushing it based on either a buffer max size or a max lag latency.
In our legacy applications we have done what's actually done in this PR: just propagate empty polls so the consumer has always a tick interval (poll interval) to check the latency. We have achieved the same result with fs2 by merging the consumer stream with an infinite time ticks stream. Therefore, our final stream has either Kafka messages or a time ticks.

As final a thought, having the time ticks separated from the poll interval let us tweak them independently. I'm trying to think a scenario when we would prefer to bind them.

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

Successfully merging this pull request may close these issues.

2 participants