Skip to content

Fully non-blocking distributed bucket #326

Discussion options

You must be logged in to vote

@muldrik hello,

A1:

This is what I want the workflow to be like:
A tryConsume() or tryConsumeAndReturnRemaining() request comes in.
It should be always served locally
If at least N milliseconds had passed since the last synchronization of this bucket, then make an async request to update the value (batching all local changes that have piled up). The request is still served instantly (locally), but when the async part completes, the bucket silently updates.

Currently there are no optimizations that allows to operate fully asynchronously. All currently implemented optimizations are trying to do remote requests lesser, but when conditions obey that sync need to be done, the sync always per…

Replies: 1 comment 6 replies

Comment options

You must be logged in to vote
6 replies
@vladimir-bukhtoyarov
Comment options

@muldrik
Comment options

@vladimir-bukhtoyarov
Comment options

@muldrik
Comment options

@vladimir-bukhtoyarov
Comment options

Answer selected by muldrik
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants