I'm running rake tasks each minute that are instantiating the Rails environment about every minute presently as workers with Foreman
and a cron gem. I'm concerned as just firing up Rails alone consumes about 90% of one of the processors for roughly 20 seconds each time. What would be the most efficient way of handling something like this that needs the Rails environment for db access and some libraries, but should not be having to fire up the entire system so constantly?
There are also, on top of this, a few other workers that need to start so it compounds the situation.