Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

openapi.tswjs.org相关请求调整为非关键路径 #540

Open
zkd8907 opened this issue Dec 12, 2022 · 0 comments
Open

openapi.tswjs.org相关请求调整为非关键路径 #540

zkd8907 opened this issue Dec 12, 2022 · 0 comments
Assignees
Labels
bug Something isn't working discussion Need to discuss

Comments

@zkd8907
Copy link
Collaborator

zkd8907 commented Dec 12, 2022

目前tsw及相关插件在服务启动后,以及后续的服务过程中会定时地请求openapi.tswjs.org。如果出现该域名无法访问或者访问变慢,例如DNS查询异常、网络波动、服务故障等,将会导致tsw服务出现阻塞。 需要优化对openapi.tswjs.org的相关逻辑,确保访问openapi.tswjs.org`不是tsw提供驱动的核心路径:

  1. 将访问openapi.tswjs.org调整为非关键路径,例如在请求服务的过程中,不必awaitopenapi.tswjs.org的访问结果。相关结果可以异步地处理。
  2. 如果请求openapi.tswjs.org失败或超时,使用上一次的请求结果。
  3. 调高openapi.tswjs.org访问时容忍的超时时间。
@zkd8907 zkd8907 changed the title api.tswjs.org相关请求调整为非关键路径 openapi.tswjs.org相关请求调整为非关键路径 Dec 12, 2022
@zkd8907 zkd8907 added bug Something isn't working discussion Need to discuss labels Dec 12, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working discussion Need to discuss
Projects
None yet
Development

No branches or pull requests

2 participants