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

Prevent Kafka sink from blocking #418

Merged
merged 1 commit into from
Mar 27, 2024
Merged

Conversation

peel
Copy link
Contributor

@peel peel commented Mar 26, 2024

Previously, we used native Kafka sink implementation through kafka-clients. This caused an issue when actual send operation becomes blocking as the record write buffer fills and an actual send operation is performed. We're currently successfully using fs2-kafka in enrich with Enrich without major issues. Rewriting the Sink to use a two-effect pattern makes no sense and therefore fs2-kafka is used to prevent blocking problems.

@peel peel mentioned this pull request Mar 26, 2024
Previously, we used native Kafka sink implementation through kafka-clients.
This caused an issue when actual `send` operation becomes blocking as the
record write buffer fills and an actual send operation is performed.
We're currently successfully using fs2-kafka in enrich with Enrich without
major issues. Rewriting the Sink to use a two-effect pattern makes no sense
and therefore fs2-kafka is used to prevent blocking problems.
@peel peel force-pushed the fix/kafka-sink-redo branch from 1fb2758 to 445d685 Compare March 26, 2024 14:06
@peel peel marked this pull request as ready for review March 26, 2024 14:18
Copy link
Contributor

@istreeter istreeter left a comment

Choose a reason for hiding this comment

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

Nice solution :)

@peel peel merged commit aa4b64e into fix/blocking-sink-calls Mar 27, 2024
3 checks passed
@peel peel mentioned this pull request Apr 4, 2024
@peel peel deleted the fix/kafka-sink-redo branch November 21, 2024 13:49
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