You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: guides/rails-integration/README.md
+11Lines changed: 11 additions & 0 deletions
Original file line number
Diff line number
Diff line change
@@ -9,6 +9,17 @@ Because `rails` apps are built on top of `rack`, they are compatible with `falco
9
9
1. Add `gem 'falcon'` to your `Gemfile` and perhaps remove `gem 'puma'` once you are satisfied with the change.
10
10
2. Run `falcon serve` to start a local development server.
11
11
12
+
## Isolation Level
13
+
14
+
Rails 7.1 introduced the ability to change its internal isolation level from threads (default) to fibers.
15
+
16
+
Make sure to configure it to fibers:
17
+
```ruby
18
+
# config/application.rb
19
+
20
+
config.active_support.isolation_level =:fiber
21
+
```
22
+
12
23
## Thread Safety
13
24
14
25
With older versions of Rails, the `Rack::Lock` middleware can be inserted into your app by Rails. `Rack::Lock` will cause both poor performance and deadlocks due to the highly concurrent nature of `falcon`. Other web frameworks are generally unaffected.
0 commit comments