Uploaded image for project: 'CDAP'
  1. CDAP
  2. CDAP-11054

Add Caching of Plugin Instantiator to improve performance of plugin endpoint invoke

    XMLWordPrintableJSON

    Details

    • Type: Improvement
    • Status: Resolved
    • Priority: Major
    • Resolution: Fixed
    • Affects Version/s: 3.4.0
    • Fix Version/s: 3.4.0
    • Component/s: Pipelines
    • Labels:
      None
    • Rank:
      1|hzz8t3:

      Description

      Currently when we invoke a plugin endpoint given plugin artifact, name, type, method-name and body.

      we find the plugin artifact, then pick parent artifact of the plugin.
      create a classloader with the parent artifact classes and plugin classes
      instantiate plugin and invoke plugin method and return response.
      delete the tmp directory used by classloader and plugin instantiator.

      this step is expensive and we should look to reuse plugin instantiator using a cache.

        Attachments

          Activity

            People

            • Assignee:
              shankar Shankar Selvam
              Reporter:
              shankar Shankar Selvam
            • Votes:
              0 Vote for this issue
              Watchers:
              1 Start watching this issue

              Dates

              • Created:
                Updated:
                Resolved: