Skip to content

feat: Redesign the architecture of the plugin system #6580

@nfrankel

Description

@nfrankel

Issue description

Current situation

At the moment, you add a plugin in the request flow by referencing with its name and setting the configuration. The plugin is effectively a singleton.

This approach has some downsides:

Proposal

In Object-Oriented speak, make Plugin a class and introduce PluginInstance "objects" (or something similarly named):

  • Plugin defines the code
  • PluginInstance references the Plugin and associates it with a priority and a configuration

Decoupling the code from the configuration/priority would bring much more freedom for users.

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions