Nimbul is a Cloud Manager developed by The New York Times's Infrastructure and Automation Group
Ruby JavaScript Shell
Pull request Compare This branch is 739 commits ahead, 5 commits behind vadimj:master.
Fetching latest commit…
Cannot retrieve the latest commit at this time.
Permalink
Failed to load latest commit information.
.bundle
app Fixing relationship dependency action Mar 25, 2013
bin Added bin files Apr 11, 2012
config Fixing issues running the poller Jan 17, 2013
db
doc
features/support
lib
log
protocol
public
script
spec
stories rename console2 to nimbul Jul 13, 2010
test
vendor Fixed issue on password reset page causing recaptcha not to be Sep 25, 2012
.gitignore
.rvmrc Updating Gemfile to include god. Updating rvmrc to use local gems Oct 22, 2012
AUTHORS
COPYING
CREDITS
Gemfile Pull activemessaging from our repo Mar 25, 2013
Gemfile.lock
INSTALL
LICENSE
README updated INSTALL and README, added bundle exec command, added .gitigno… Oct 30, 2011
README.markdown
README.restful_authentication added README, AUTHORS, INSTALL, etc Jul 19, 2010
Rakefile
TODO
VERSION
VERSION.yml
carrot.gemspec
emissary-update.erb
gediturl rename console2 to nimbul Jul 13, 2010
restart
start
stop make sure that we force mongrel_rails to go down - killall ruby doesn… Oct 19, 2010
tags Finished getting TransientKeyStore class working Jan 18, 2012

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