Hello! In my hypnotoad application i want to update cache (Cache::FastMmap) on some event, which fired by Redis subscription. But now i have to subscribe on Redis events and update local perl hash in every spawned process, which at the same time serve users requests. How to use only one process to support actualized cache state, so all workers can read information from that cache, but not update it?
I think, i need to subscribe on Redis events and maintain cache in the main process, but Mojolicious Cookbook tell me that is impossible (IOLoop not running in the main process). I think Minion is not suitable for me because we use only Redis+MariaDB in our production environments and i cant install PostgreSQL for Minion. So i m in doubt, how to operate cache in traditional way (one auxiliary updater process - many frontend processes-readers). Tell me please, whether is it possible in Mojolicious application running on Mojolicious::Server::Prefork/hypnotoad? Thank you! -- You received this message because you are subscribed to the Google Groups "Mojolicious" group. To unsubscribe from this group and stop receiving emails from it, send an email to [email protected]. To post to this group, send email to [email protected]. Visit this group at https://groups.google.com/group/mojolicious. For more options, visit https://groups.google.com/d/optout.
