Better HN
top
new
best
ask
show
jobs
Log in
Sign up
Better HN
Comment
by
andrewmutz
· 1y ago · 0 comments
Threads?
Comments
[–]
jupp0r
1y ago
Rails is a hot ball of global mutable state. Good luck with threads.
[–]
andrewmutz
OP
1y ago
The default rails application server is puma and it uses threads
[–]
jupp0r
1y 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.
[–]
andrewmutz
OP
1y ago
The GIL is released during common IO operations like the HTTP requests that power LLM communication