SidekiqRails 3 应用程序提供一个高效的消息队列系统。

使用方法:

1. 首先将 worker 类放到 app/workers:

# app/workers/hard_worker.rbclass HardWorker
  include Sidekiq::Worker

  def perform(name, count)puts 'Doing hard work'
  endend

2. 在控制器 action 或者 model 中调用 HardWorker.perform_async:

HardWorker.perform_async('bob', 5)

Sidekiq Pro

Sidekiq 4.0.0 & 4.0.1 发布,Rails3 消息队列系统
Sidekiq 4.0.0 & 4.0.1 发布。4.0.0 版本更新信息如下:Sidekiq\'s internals have been completely overhauled for performance and to remove dependencies.  This has resulted in major speedups, asdetailed on my blog.See the 4.0 upgrade notes for more detail4.0.1 版本更新信息如下:Yank new queue-bas

发布于 2015-11-18 06:31:58 | 221 次阅读


Copyright © 2007-2017 PHPERZ.COM All Rights Reserved   冀ICP备14009818号  版权声明  广告服务