[infinispan-issues] [JBoss JIRA] (ISPN-8865) Move AdvancedCacheLoader over to using Publisher instead of process

Dan Berindei (JIRA) issues at jboss.org
Fri May 11 09:30:04 EDT 2018


     [ https://issues.jboss.org/browse/ISPN-8865?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

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/org/infinispan/persistence/util/PersistenceManagerCloseableSupplier.java#L110



--
This message was sent by Atlassian JIRA
(v7.5.0#75005)


More information about the infinispan-issues mailing list