3 番目のパリー API に対していくつかの要求を行うコントローラー メソッドを実装しましたが、これは非常に低速です。さらに、Thinの非同期機能の1 つを利用しました。
# This informs thin that the request will be handled asynchronously
self.response_body = ''
self.status = -1
Thread.new do
# This will be the response to the client
env['async.callback'].call('200', {}, "Response body")
end
ただし、Thin を使用せずにこれを実装できるかどうか、またはより正確に言うと、Apache/Phusionpassenger で実現できるかどうかに興味があります。
提案、ポインタ、リンク、コメント、または回答をお待ちしております。ありがとう