Ruby client for joining a tempest cluster.
With this gem, you can build a worker in plain old sequential ruby with a simple DSL, using your favorite gems.
Launch a redis server:
redis-server
Lauch the tests:
rspec
The foreman:
require 'tempest'
tempest do
worker :working do #The working queue
work :foo, nil, 'World' #nil is for 'no response needed'
end
end
The worker :
require 'tempest'
tempest do
worker :working do
on :foo do |context, name|
p "hello #{name}"
context.stop # stop the event loop
end
end.start_loop #start the event loop
end
The queue is handled by Redis, you can start many workers, after or before the foreman, it doesn't care.
Alpha.
The tempest gem already exists, not tempestas. Latin ruled the world.
MIT