Search code examples
mqbeanstalkd

Unique job data in beanstalkd


I've been testing beanstalkd today and I am wondering is there anyway possible to make job data unique on beanstald tube? In other words, is it possible to make the tube have only unique values? If no, maybe someone could suggest me similar MQ system which have this feature.

Thank you in advance for your answers!


Solution

  • Well what you are looking for is a SET and not a QUEUE.

    • Sets doesn not allow duplicate members.
    • Redis has Sorted Sets if you want to keep an order as in the queue

    You can achieve what you want with Redis, read about Data types here:
    http://redis.io/topics/data-types