Cloudist is a simple, highly scalable job queue for Ruby applications
Cloudist is a simple, highly scalable job queue for Ruby applications
This was an experiment, it's no longer maintained. Go learn Elixir/Phoenix :)
Cloudist is a simple, highly scalable job queue for Ruby applications, it can run within Rails, DaemonKit or your own custom application. Cloudist uses AMQP (RabbitMQ mainly) for transport and provides a simple DSL for queuing jobs and receiving responses including logs, exceptions and job progress.
Cloudist can be used to distribute long running tasks such as encoding a video, generating PDFs, scraping site data or even just sending emails. Unlike other job queues (DelayedJob etc) Cloudist does not load your entire Rails stack into memory for every worker, and it is not designed to, instead it expects all the data your worker requires to complete a job to be sent in the initial job request. This means your workers stay slim and can scale very quickly and even run on EC2 micros outside your applications environment without any further configuration.
gem install cloudistOr if your app has a Gemfile:
gem 'cloudist', '~> 0.4.4'Refer to examples.
The only configuration required to get going are the AMQP settings, these can be set in two ways:
Using the AMQP_URL environment variable with value of amqp://username:password@localhost:5672/vhost
Updating the settings hash manually:
Cloudist.settings = {:user => 'guest', :pass => 'password', :vhost => '/', :host => 'localhost', :port => 5672}Cloudist was developed to provide the messaging layer used within TestPilot Continuous Integration service.
TestPilot still uses Cloudist heavily and a number of features will be merged in soon.
Portions of this gem are based on code from the following projects:
Copyright (c) 2011 Ivan Vanderbyl.
Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so, subject to the following conditions:
The above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software.
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
No open issues yet, or sync has not completed.