Reputation: 45943
Apparently Unicorn has been deprecated on Heroku, so we are going to try Puma. Is it possible to run multiple threads for a Rails app?
I read about concurrency in Rails, and it doesn't seem that it is possible to guarantee that all code and gems are thread safe.
So, is it possible to run Rails apps on Heroku using Puma threads?
Rails 4.1.7.
Upvotes: 2
Views: 402
Reputation: 22721
Absolutely. With Rails 4.1.7 and Puma in their default configuration, Puma will use between 0-16 threads. This is a fine place to start.
Heroku has a guide for using Puma: https://devcenter.heroku.com/articles/deploying-rails-applications-with-the-puma-web-server
Upvotes: 1