- Consider ways to process SSE connections in Ruby On Rails application
- Show how using Rack Hijacking API allows to avoid blocking web server threads
For more information read this article
- ActionController::Live
- Rack Hijacking API (Full hijacking)
- Rack Hijacking API (Partial hijacking)
Change default value in 'config/puma.rb' file
threads_count = ENV.fetch("RAILS_MAX_THREADS") { 5 }
Or set RAILS_MAX_THREADS env variable when starting Rails server
RAILS_MAX_THREADS=5 rails s