Skip to content

[Feature][MasterServer] Add cache manager for Master #6963

@caishunfeng

Description

@caishunfeng

Search before asking

  • I had searched in the issues and found no similar feature requirement.

Description

Now when Master run a workflow, it will do many db select operation, such as processDefinition, taskDefinition, processTaskRelation, tenant, user, workGroup, project......

I think these data will not be changed easily, so if we can use cache instead of selecting from db, it will speed up the processing of workflow and improve performance.

function design:

  • cache config for enable switch and other params like expire time, cache size.
  • cache annotation, which can be use easily, and it's helpful to manage the unified cache logic -> use spring cache + caffeine
  • cache hit rate statistics
  • cache update notify, now is from api-server

sub-issue:

Use case

No response

Related issues

No response

Are you willing to submit a PR?

  • Yes I am willing to submit a PR!

Code of Conduct

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions