0
我正在嘗試使用「異步導軌」,以幫助緩解使用慢速第三方服務的痛苦。我可以在Heroku上使用多少個Ruby Fibers?
的Gemfile
gem 'eventmachine'
gem 'rack-fiber_pool', :require => 'rack/fiber_pool'
gem 'em-synchrony', :require => ['em-synchrony',
'em-synchrony/em-http',
'em-synchrony/activerecord']
config.ru
require ::File.expand_path('../config/environment', __FILE__)
use Rack::FiberPool, :size => 6
run MyApp::Application
有誰知道多少紅寶石纖維可以在Heroku的雪松被用來堆棧?或者如何去決定這樣的事情?
我確定這個數字實際上並不是無限的,但這是一個偉大的觀點,我可能很快就會在內存不足之前就看不到額外光纖的好處。謝謝! – colllin 2013-04-11 05:38:33