通过 Application Insights、SQL Profiler 和分布式链路追踪,发现主要问题: 问题 1:同步调用库存服务。 原流程中订单 API 同步等待库存服务响应,库存服务响应慢时整个接口被拖慢。 优化后改为异步调用、增加超时控制和重试策略。 问题 2:订单查询缺少索引。
Some results have been hidden because they may be inaccessible to you
Show inaccessible resultsSome results have been hidden because they may be inaccessible to you
Show inaccessible results