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

William Burns (JIRA) issues at jboss.org
Wed Feb 21 17:01:00 EST 2018


William Burns created ISPN-8865:
-----------------------------------

             Summary: 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.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