Uploaded image for project: 'Infinispan'
  1. Infinispan
  2. ISPN-8865

Move AdvancedCacheLoader over to using Publisher instead of process

    XMLWordPrintable

Details

    Description

      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

      Attachments

        Issue Links

          Activity

            People

              wburns@redhat.com Will Burns
              wburns@redhat.com Will Burns
              Votes:
              0 Vote for this issue
              Watchers:
              1 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved: