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

Resolve Backpressure Issues about the Task Channel in Node #515

Open
1 task done
FrankLi123 opened this issue Sep 2, 2024 · 0 comments
Open
1 task done

Resolve Backpressure Issues about the Task Channel in Node #515

FrankLi123 opened this issue Sep 2, 2024 · 0 comments
Assignees
Labels

Comments

@FrankLi123
Copy link
Contributor

FrankLi123 commented Sep 2, 2024

What feature is it?

Implement an adaptive "Task Buffer" with a go slice that efficiently manages task flow between the producer(data-source) and the consumer(worker). The producer adds tasks to the buffer and pauses when the buffer is full. The consumer then takes and processes tasks from the buffer.

What problem does this feature solve?

This mechanism ensures that all collected data is processed successfully and efficiently under backpressure conditions. Currently, the task channel is unbuffered, which can cause delays and blocking latency when too many tasks are sent to the channel in a short period. Implementing a sliding window buffer makes data processing more efficient.

Additional description

No response

This is not a duplicated feature request or new worker proposal

@FrankLi123 FrankLi123 self-assigned this Sep 2, 2024
@FrankLi123 FrankLi123 changed the title Resolving Backpressure Issues about the Task Channel in Node Resolve Backpressure Issues about the Task Channel in Node Sep 2, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
1 participant