Popularity
6.2
Growing
Activity
0.0
Stable
32
3
2
Programming language: Crystal
Tags:
Queue
dispatch alternatives and similar shards
Based on the "Queue" category.
Alternatively, view dispatch alternatives based on common mentions on social networks and blogs.
-
crystal-resque-client
:ambulance: Simple Resque queue client for Crystal
Less time debugging, more time building
Scout APM allows you to find and fix performance issues with no hassle. Now with error monitoring and external services monitoring, Scout is a developer's best friend when it comes to application development.
Promo
scoutapm.com
Do you think we are missing an alternative of dispatch or a related project?
Popular Comparisons
README
Dispatch 
In-memory job queuing
# example.cr
require "./src/dispatch"
Dispatch.configure do |config|
config.num_workers = 5
config.queue_size = 10
config.logger = Logger.new(IO::Memory.new)
end
class FakeJob
include Dispatchable
def perform(name)
p "#{Time.now}: Hello, #{name}"
end
end
class ErrorJob
include Dispatchable
def perform
raise "Hello!"
end
end
Dispatch.config # => <Dispatch::Configuration:0x1042dafb0 @num_workers=5, @queue_size=10>
FakeJob.dispatch("Bob")
FakeJob.dispatch("Emily")
FakeJob.dispatch_in(5.seconds, "Billy")
FakeJob.dispatch("Maddy")
ErrorJob.dispatch
Dispatch.successes # => 0
sleep 6
Dispatch.successes # => 4
Dispatch.failures # => 1
Output:
"2016-12-13 14:23:53 -0500: Hello, Bob"
"2016-12-13 14:23:53 -0500: Hello, Emily"
"2016-12-13 14:23:53 -0500: Hello, Maddy"
"2016-12-13 14:23:58 -0500: Hello, Billy"