shoryuken-later icon indicating copy to clipboard operation
shoryuken-later copied to clipboard

Make the storage adapter configurable

Open phstc opened this issue 9 years ago • 2 comments

Would be cool to make the storage adapter configurable to support other storages than DynamoDB such as: Redis, MongoDB, SQL etc.

Shoryuken::Later.storage_adapter = MyStorageAdapter

The storage adapter interface could respond to two methods fetch and create.

class MyStorageAdapter
  def fetch(limit = 1)
    # return an array 
  end

  def create(job)
    # persist job
  end
end

The fetch could accept a limit as SQS allows enqueuing up to 10 messages per send_message.

wdyt?

phstc avatar Apr 04 '15 12:04 phstc

@phstc - This is a pretty cool idea, for sure.

joekhoobyar avatar Apr 07 '15 01:04 joekhoobyar

@joekhoobyar Is this still on the cards?

oyeanuj avatar Sep 22 '16 23:09 oyeanuj