Re:Show HN: I made a very simple ruby gem to make objects an...
by rco8786 on Thursday February 25, 2016 @02:25AM
(#11172899)
Is thread safety a concern with Ruby? Or are you thinking of multiple ruby processes using the same Durable?
[ Parent
| on HN ]
Re:Show HN: I made a very simple ruby gem to make objects an...
by gonyea on Thursday February 25, 2016 @03:00AM
(#11173023)
Yes. I actually mean both. Thread safety does and doesn't matter. MRI has a GIL so appending to an array across threads will "just work." JRuby doesn't and it won't end well if you're not giving it thought.
But yeah, multi-process web servers absolutely trample over each other. File access would need to be coordinated / synchronized.