You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@dolphinscheduler.apache.org by GitBox <gi...@apache.org> on 2021/11/22 10:14:32 UTC

[GitHub] [dolphinscheduler] kezhenxu94 commented on issue #6963: [Feature][MasterServer] Add cache manager for basic data

kezhenxu94 commented on issue #6963:
URL: https://github.com/apache/dolphinscheduler/issues/6963#issuecomment-975364337


   > Now when Master run a workflow, it will do many db select operation, such as processDefinition, taskDefinition, processTaskRelation, tenant, user, workGroup, project......
   
   If the cache is only for DB operations, maybe we can investigate whether the ORM framework supports cache itself, I remember MyBatis supports some basic cache mechanism.
   
   > function design:
   > 
   > * [ ]  add the cache switch, it can be controlled by user freely. If false, the cache will not effect
   > * [ ]  cache expire config, it will decide how long the cache will last
   > * [ ]  cache annotation, which can be use easily, and it's helpful to manage the unified cache logic
   > * [ ]  cache hit rate statistics
   > * [ ]  cache update notify, now is from api-server
   
   All the functionalities above can be easily achieved by introducing 
   
   ```xml
   <dependency>
       <groupId>org.springframework.boot</groupId>
       <artifactId>spring-boot-starter-cache</artifactId>
   </dependency>
   ```
   
   @caishunfeng which cache system do we want to use? 


-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: commits-unsubscribe@dolphinscheduler.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org