Uploaded image for project: 'Sling'
  1. Sling
  2. SLING-10107

Refactoring of creation of ResourceResolvers

    XMLWordPrintableJSON

Details

    • Improvement
    • Status: Open
    • Major
    • Resolution: Unresolved
    • Content Distribution Journal Core 0.1.16
    • None
    • Content Distribution
    • None

    Description

      In the 2 classes Bookkepper and the Localstore the creation of ResourceResolvers is spread over multiple places, and also the number of methods, where ResourceResolvers are opened for obviously tiny operations is quite high.

      Therefor I refactored the creation of ResourceResolvers for the subservice bookkeeper (which is the majority of cases) and centralized the creation of it into a central supplier within the Bookkeeper. I also added a new Gauge metric to observe how often a new ResourceResolver is actually created.

      My gut feeling is, that the number of creations is (too) high; but before I start combining operations and reduce the number of ResourceResolver creations, I would like to understand if it's a problem at all.

      See https://github.com/apache/sling-org-apache-sling-distribution-journal/pull/63 for the PR

      Attachments

        Issue Links

          Activity

            People

              Unassigned Unassigned
              joerghoh Joerg Hoh
              Votes:
              0 Vote for this issue
              Watchers:
              2 Start watching this issue

              Dates

                Created:
                Updated: