什么是 Excon[api.heroku.com]: GET?

What is Excon[api.heroku.com]: GET?

我现在正在寻找我在 New Relic 上最耗时的交易。我看到 "Excon[api.heroku.com]: GET" 占用了所需的大部分时间。它是什么?我怎样才能减少它?

Category | Segment % | Time | Avg calls(per txn) | Avg time (ms)

External Excon[api.heroku.com]: GET | 34.3 | 0.653 | 133

View | projects/show.html.erb Template | 9.9 | 0.997 | 38.5

Controller | ProjectsController#show | 9.3 | 1.0 | 36.3

这是对 api.heroku.com 的外部 HTTP 请求。由于 IO,外部 HTTP 调用通常会引入额外的执行时间。

如果你想减少它,你需要确定你的操作连接到 Heroku 的原因,以及你是否可以缓存或替换请求。