Is state-machine gem threadsafe! or can it be used in a multi-threaded rails app.

206 views
Skip to first unread message

bg

unread,
Dec 7, 2012, 5:55:54 AM12/7/12
to pluginaw...@googlegroups.com
I was wondering if the state-machine gem was threadsafe. Can I use it in a multi-threaded rails app. It seems rails-4 will have 'config.threadsafe!' as 'true' by default in production: http://tenderlovemaking.com/2012/06/18/removing-config-threadsafe.html

In my case, I want to know if it is safe to use the state-machine gem in either  normal ruby threads or with the celluloid gem that uses the actor approach to concurrency.

Many thanks.
Message has been deleted

bg

unread,
Dec 8, 2012, 2:09:26 PM12/8/12
to pluginaw...@googlegroups.com
It seems Pluginaweek state-machine is unsuitable for use in any multi-threaded rails app. That is my conclusion since no one responded suggesting it is unsuitable.

In the meantime I am reading around and might try this celluloid gem's -finite-state-machine implemenetation, since it comes inbuilt into the celluloid gem which uses the actor pattern for multi-threading:

bg

unread,
Dec 8, 2012, 9:53:07 PM12/8/12
to pluginaw...@googlegroups.com
It seems  Pluginaweek state-machine is threadsafe based on:
Reply all
Reply to author
Forward
0 new messages