The Ruby Compute Cloud
One of the main uses of SimpleWorker is as a worker queue for running background jobs within a web application. A second use — and one that marks a big shift in the cloud — is that of a Ruby Compute Cloud.
Read MoreAutoload Rails Models for Super Easy Rails Integration
SimpleWorker will now include all the models in your Rails app automatically so you don’t have to merge them manually. Just use them almost as if they were to be run locally and you’re good to go. eg; class MyWorker < SimpleWorker::Base attr_accessor :user_id def run # User model will automatically be available, so just…
Read MoreSimpleWorker Usage Pattern Graph
SimpleWorker is a job queuing and scheduling system so while a lot of work comes in at random times usually based on some event in their system (ie: a user clicks a button), there are a lot of scheduled jobs too and those scheduled jobs have a huge affect on the capacity requirements for SimpleWorker.…
Read MoreParallelizing Ruby on the Cloud
So I’m sure we’ve all had the need to want to run multiple threads at once to optimize a part of our applications. There are several options like spinning up new Ruby threads (example from):
Read MoreIncluding other files in your Worker with “merge”
Previously, your worker file/class had to be self contained (ie: single file including all code for the worker). Now you can use the new “merge” class method for instance: class TestWorker2 < SimpleWorker::Base merge “models/model_1.rb”
Read MorePushed 0.3.0 Gem: Much More User Friendly
After using SimpleWorkr for a long time now, I always think to myself, “there’s gotta be some way to make this more intuitive”. I want it to feel more like it’s just like running your normal code without even really realizing that the work is actually offloaded to the cloud. So with that in mind,…
Read More