top | item 43376519

(no title)

jupp0r | 11 months ago

Rails is a hot ball of global mutable state. Good luck with threads.

discuss

order

andrewmutz|11 months ago

The default rails application server is puma and it uses threads

jupp0r|11 months ago

Yes, it does. Ruby has a global interpreter lock (GIL) that prevents multiple threads to be executed by the interpreter at the same time, so Puma does have threads, they just can’t run Ruby code at the same time. They can hide IO though.