新手问题 http 请求效率过低,每次请求外部接口时,时间会很长,怎么优化?

ai542913513 · October 10, 2018 · Last by cxh116 replied at October 10, 2018 · 1258 hits

只要是 rails 发出的 post 请求,时间一般都在 2 秒以上,这是什么原因,如何去优化?

没理解错的话,考虑用 sidekiq 把接口异步化

外部服务太慢

先确认为什么慢?是网络原因,还是接口本身性能问题,还是调用方式的问题?

You need to Sign in before reply, if you don't have an account, please Sign up first.