Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Enable threads #242

Open
5 tasks
jirikivaari opened this issue Nov 29, 2020 · 0 comments
Open
5 tasks

Enable threads #242

jirikivaari opened this issue Nov 29, 2020 · 0 comments

Comments

@jirikivaari
Copy link
Contributor

jirikivaari commented Nov 29, 2020

Enable threads. Rails is thread-safe by design but that won't mean the app is. Rack.lock could be used for semi-threads before rest of the app is checked but Rack middleware needs to checked and frozen first.

https://devcenter.heroku.com/articles/deploying-rails-applications-with-the-puma-web-server#thread-safety-tips
https://bearmetal.eu/theden/how-do-i-know-whether-my-rails-app-is-thread-safe-or-not/

  • 1. Rack middleware safety
  • 2. Use Rack.lock for pseudo-thread-safety. Can be removed after the
  • 3. Rails safety?
  • 4. Gem safety?
  • 5. Something else?

Currently using puma workers to get more concurrency.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

1 participant