Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
我的应用程序向第三方服务器发送多个 API 请求并在后台作业中获取响应。现在每个作业都会打开新的 Http 连接并在收到响应后关闭它。如果可以在我的所有应用程序的工作之间共享这种联系?如何在工作池正在进行时保持它的活力?最后怎么关闭?谢谢。
这就是连接池的设计目的。
https://github.com/mperham/sidekiq/wiki/Advanced-Options#connection-pooling