Skip to content

Commit aa2344d

Browse files
authored
Mention Rails 7.1 isolation_level config (#218)
1 parent 8bc974c commit aa2344d

File tree

1 file changed

+11
-0
lines changed

1 file changed

+11
-0
lines changed

guides/rails-integration/README.md

Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -9,6 +9,17 @@ Because `rails` apps are built on top of `rack`, they are compatible with `falco
99
1. Add `gem 'falcon'` to your `Gemfile` and perhaps remove `gem 'puma'` once you are satisfied with the change.
1010
2. Run `falcon serve` to start a local development server.
1111

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+
1223
## Thread Safety
1324

1425
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

Comments
 (0)