Skip to content

OSGi whiteboard: Implement delay before schema update for performance #120

@tomq42

Description

@tomq42

Having tried to use the OSGi whiteboard servlet, I'm experiencing very poor performance of the schema construction. Each time a GraphGLProvider is registered with the whiteboard it rebuilds the complete schema. The way our app is constructed this happens many times.
We had the same problem with the JAX-RS whiteboard implementation originally, and a sensible solution was to implement a delay before the application was republished. This has the effect of batching up all of the updates that happen during application initialisation, whilst still allowing new providers to be registered later if necessary.

I will make a change, and if it works provide a PR.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions