-
-
Notifications
You must be signed in to change notification settings - Fork 690
Closed
Labels
featureNew feature or requestNew feature or request
Description
目前看上去函数服务尚无任何缓存策略,每次请求都要访问数据库。
在可见的未来有无增加缓存机制的打算?以减少对数据库的负担
laf/packages/app-service/src/handler/invoke-func.ts
Lines 24 to 36 in 11b5801
| // load function data from db | |
| let funcData = await CloudFunction.getFunctionByName(func_name) | |
| if (!funcData) { | |
| if (func_name === 'healthz') { | |
| return res.status(200).send('ok') | |
| } | |
| // load default function from db | |
| funcData = await CloudFunction.getFunctionByName(DEFAULT_FUNCTION_NAME) | |
| if (!funcData) { | |
| return res.status(404).send('Not Found') | |
| } | |
| } |
Metadata
Metadata
Assignees
Labels
featureNew feature or requestNew feature or request