]
Dan Berindei updated ISPN-8865:
-------------------------------
Status: Resolved (was: Pull Request Sent)
Fix Version/s: 9.3.0.Beta1
Resolution: Done
Move AdvancedCacheLoader over to using Publisher instead of process
-------------------------------------------------------------------
Key: ISPN-8865
URL:
https://issues.jboss.org/browse/ISPN-8865
Project: Infinispan
Issue Type: Enhancement
Components: Loaders and Stores
Reporter: William Burns
Assignee: William Burns
Fix For: 9.3.0.Beta1, 9.3.0.Final
Currently our process method on AdvancedCacheLoader is very hard to write for proper
thread usage, see [1]. There is no way to utilize the main thread to help with processing
as well, except by always using a WithinThreadExecutor, which prevents any parallelism.
Instead we should have the loader expose a Producer which can be properly controlled and
have backpressure built in (thus not wasting threads or resources like it does currently.
[1]
https://github.com/infinispan/infinispan/blob/master/core/src/main/java/o...