ctx.requestContext.getAsync(hsfModule) 耗时不稳定 #4398
Answered
by
czy88840616
chenhui5416
asked this question in
Q&A
-
Describe the problem(描述问题)在使用 @ali/midway-hsf-server 过程中发现, r部分请求 rt 会存在超长情况。 通过 本地和线上 debug 发现主要是 midway-hsf-server / framework.js 中,进行 instance 创建时 耗时会随机存在超过100ms 的情况。
有什么排查思路或者优化思路嘛? Midway Versions(Midway 版本)@ali/[email protected] |
Beta Was this translation helpful? Give feedback.
Answered by
czy88840616
Sep 25, 2025
Replies: 1 comment
-
|
应该是要创建的对象比较多,不用请求作用域的就用单例 |
Beta Was this translation helpful? Give feedback.
0 replies
Answer selected by
chenhui5416
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
应该是要创建的对象比较多,不用请求作用域的就用单例