Categories: None [Edit]
ractor-rails-shim
ractor-rails-shim makes a Rails application Ractor-safe, so it can run in
Ractor mode — serving requests from worker Ractors that share one frozen
app graph, instead of forking N separate processes.
Rails keeps global state (Rails.application, Rails.cache, Rails.logger,
and every config value set via mattr_accessor / class_attribute) in
class-level instance variables, which Ruby forbids reading or writing from
a non-main Ractor. The shim reroutes those accessors through Ractor-safe
storage (ActiveSupport::IsolatedExecutionState, or Ractor.store_if_absent)
and patches the handful of raw class-ivar accessors Rails reads
per-request.
It is verified against a real Rails 8.1 app (Devise, Propshaft, Kaminari,
PostgreSQL) served by the kino web server in `kino -m ractor` mode.
This is a stopgap: once Rails supports Ractor mode upstream, this gem
becomes a no-op and can be removed.
Total
Ranking: 128,674 of 195,671
Downloads: 5,246
Daily
Ranking: 6,151 of 195,647
Downloads: 512
Downloads Trends
Ranking Trends
Num of Versions Trends
Popular Versions (Major)
Popular Versions (Major.Minor)
Depended by
| Rank | Downloads | Name |
|---|
Depends on
| Rank | Downloads | Name |
|---|---|---|
| 7 | 1,400,139,057 | activesupport |
Owners
| # | Gravatar | Handle |
|---|---|---|
| 1 | DDKatch |