sling-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Julian Sedding (Jira)" <>
Subject [jira] [Commented] (SLING-9365) Optimize servlet to resource provider servlet mounter
Date Thu, 16 Apr 2020 10:48:00 GMT


Julian Sedding commented on SLING-9365:

I've pushed some code I had to the whiteboard, maybe it's helpful: []


On second thought, I'm not sure if ResourceDecorator will work for you. I have a feeling that
they are only called during request processing. But that could be fixed, I guess.

> Optimize servlet to resource provider servlet mounter
> -----------------------------------------------------
>                 Key: SLING-9365
>                 URL:
>             Project: Sling
>          Issue Type: Improvement
>          Components: Scripting
>    Affects Versions: Servlets Resolver 2.6.4
>            Reporter: Karl Pauls
>            Assignee: Karl Pauls
>            Priority: Major
>             Fix For: Servlets Resolver 2.6.6
> The current ServletMounter creates a resource provider for each registered servlet. That
works fine for a given amount of servlets but can become problematic for a high number of
servlets as it means that on the one hand, the number of services is doubled and on the other
hand, a lot of notifications are send out as well as a lot of computation has to be done by
the resource resolver. 
> As an optional remedy for these kinds of scenarios, we should allow to configure the
mounter to instead provide a single resource provider that has manages the servlets internally.

This message was sent by Atlassian Jira

View raw message