Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Nimbul is a Cloud Manager developed by The New York Times's Infrastructure and Automation Group
Ruby JavaScript
branch: master

This branch is 739 commits ahead, 5 commits behind vadimj:master

Fetching latest commit…

Cannot retrieve the latest commit at this time

Failed to load latest commit information.
.bundle Cherry picking some fixes from the daemons rewrite branch for rvm/bun…
app Fixing relationship dependency action
bin Added bin files
config Fixing issues running the poller
db Fixed issue on password reset page causing recaptcha not to be
doc Removing cloudmaster from Nimbul
features/support Adding cucumber features dir
lib Fixing bug
log ignore log/pid files
protocol adding aman's amqp code
public Merge remote-tracking branch 'github/hotfix/daemons_local_fixes' into…
script Fixing issues running the poller
spec cleaning up bad unit tests and specs so we can get some real code cov…
stories rename console2 to nimbul
test Merge branch 'release/2.5.0'
vendor Fixed issue on password reset page causing recaptcha not to be
.gitignore Added some files to gitignore
.rvmrc Updating Gemfile to include god. Updating rvmrc to use local gems
AUTHORS fix a bug where security_groups are cleared if ssh access is granted/…
COPYING
CREDITS added README, AUTHORS, INSTALL, etc
Gemfile Pull activemessaging from our repo
Gemfile.lock Updating activemessaging code
INSTALL updated INSTALL and README, added bundle exec command, added .gitigno…
LICENSE
README updated INSTALL and README, added bundle exec command, added .gitigno…
README.markdown more README changes
README.restful_authentication added README, AUTHORS, INSTALL, etc
Rakefile Moving to using resque for background job processing
TODO rename console2 to nimbul
VERSION Added VERSION file
VERSION.yml Merge branch 'master' of http://github.com/famoseagle/carrot
carrot.gemspec Merge branch 'master' of http://github.com/famoseagle/carrot
emissary-update.erb commiting local changes on daemons machine (older HEAD)
gediturl rename console2 to nimbul
restart restart mysql only if /var/lib/mysql/mysql.sock exists
start removed readlink to avoid issues with traversing the symlinks
stop make sure that we force mongrel_rails to go down - killall ruby doesn…
tags Finished getting TransientKeyStore class working

README.markdown

Carrot

A synchronous amqp client. Based on Aman's amqp client:

http://github.com/tmm1/amqp/tree/master

Motivation

This client does not use eventmachine so no background thread necessary. As a result, it is much easier to use from script/console and Passenger. It also solves the problem of buffering messages and ack responses. For more details see this thread.

There is currently no way to prevent buffering using eventmachine. Support for prefetch is still unreliable.

Example

require 'carrot'

q = Carrot.queue('name')
10.times do |num|
  q.publish(num.to_s)
end

puts "Queued #{q.message_count} messages"
puts

while msg = q.pop(:ack => true)
  puts "Popping: #{msg}"
  q.ack
end
Carrot.stop

LICENSE

Copyright (c) 2009 Amos Elliston, Geni.com; Published under The MIT License, see License

Something went wrong with that request. Please try again.