Example script:
Payment processing and electronic product delivery transaction.
Requirements
Order of importance
Is Sidekiq suitable for such mission critical processes? Can sidekiq fully satisfy all these requirements? Or would you recommend other alternatives? Could you give me some recommendations on processing payments in rails?
Note: The question is not regarding whether to use stripe or ActiveMerchant for payment handling. It is more about the safest way to programmatically execute those processes in the background.
, Sidekiq .
, Sidekiq concurrency 1, . , .
, , Sidekiq Failures , .
, Sidekiq Pro . Sidekiq , , . , , , Sidekiq . , . (, , Sidekiq Redis, .)
Ruby , Sidekiq, , . Ruby, , Sidekiq .
, , .
class Worker include Sidekiq::Worker def perform(*params) # do work, raising exception if necessary NextWorker.perform_async(params, here) end end