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

bulk-chan #4

Merged
merged 8 commits into from
Jan 12, 2017
Merged

bulk-chan #4

merged 8 commits into from
Jan 12, 2017

Conversation

mpenet
Copy link
Owner

@mpenet mpenet commented Jan 11, 2017

The idea is to enable bulk operations via a core async channel and have throttling built in. Throttling would be either by max number of chunks to be sent or timeout ("send bulk request if payload has at least X chunks or if 1min passed since last bulk request") . The internals should take advantage of the fact that the underlying java client allows us to do this stuff asynchronously, but we must still allow the user to control parallelism, flow and handle back-pressure. We must also allow the user to plug reporting/retries of bulk operations.

This is just a draft, the implementation is open to discussion/changes.
The docstring should be quite self-explanatory.

One caveat currently is that if the jvm crashes you can lose pending jobs. In theory it's possible for the end user to plug a durable store based solution to handle restarts by inspecting :input :ouput chans (only purging job from hard storage if it passed the output chan), but this might (or not) be something we could implement.

@mpenet mpenet merged commit 246ee09 into master Jan 12, 2017
@mpenet mpenet deleted the feature/bulk-chan branch January 13, 2017 08:03
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.

1 participant