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 bulk ingester helper #474

Merged
merged 1 commit into from
Jan 4, 2023
Merged

Add bulk ingester helper #474

merged 1 commit into from
Jan 4, 2023

Conversation

swallez
Copy link
Member

@swallez swallez commented Jan 4, 2023

Adds a helper for bulk ingestion that takes care of chunking bulk requests according to several criteria:

  • max size (in bytes)
  • max number of operations
  • periodic flush

Additionally a maximum number of ongoing requests can be set, that will cause addition of new operations to block. This provides a simple form of back pressure.

Additionally, adds the Endpoint.withBinaryResponse() method for use cases where we don't want/need to parse the Elasticsearch response.

Documentation will be added in a follow-up PR.

Fixes #108

@swallez swallez merged commit 02c6585 into main Jan 4, 2023
@swallez swallez deleted the bulk-ingester branch January 4, 2023 13:20
github-actions bot pushed a commit that referenced this pull request Jan 4, 2023
github-actions bot pushed a commit that referenced this pull request Jan 4, 2023
swallez added a commit that referenced this pull request Jan 4, 2023
Co-authored-by: Sylvain Wallez <sylvain@elastic.co>
swallez added a commit that referenced this pull request Jan 4, 2023
Co-authored-by: Sylvain Wallez <sylvain@elastic.co>
swallez added a commit that referenced this pull request Jan 12, 2023
This reverts commit dec1142.
Unfortunately the 8.6.0 release was cut before this commit. It will be part of 8.7.0
@swallez
Copy link
Member Author

swallez commented Jan 12, 2023

Note: unfortunately we missed the deadlines for the 8.6.0 release. This will be part of 8.7.0

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

Successfully merging this pull request may close these issues.

Is there a replacement for the BulkProcessor?
1 participant