# Throughput of a Queue/Set like data structure

**URL:** <https://forums.foundationdb.org/t/throughput-of-a-queue-set-like-data-structure/205>\
**Category:** Using FoundationDB\
**Created:** [April 22, 2018, 5:16pm UTC](https://forums.foundationdb.org/t/throughput-of-a-queue-set-like-data-structure/205 "2018-04-22T17:16:09Z")\
**Posts on this page:** 1\
**Showing post:** 6

<div class="post-metadata">

**Author:** ![Evan](https://sea1.discourse-cdn.com/foundationdb/user_avatar/forums.foundationdb.org/evan/32/104_2.png) [@Evan](https://forums.foundationdb.org/u/Evan)\
**Post date:** [April 22, 2018, 7:31pm UTC](https://forums.foundationdb.org/t/throughput-of-a-queue-set-like-data-structure/205/6 "2018-04-22T19:31:10Z")

</div>

Our backup and DR are implemented as clients of the database. We wrote a task bucket abstraction on top of the database to prevent different workers from doing the same work. You might be interested in looking at how we implemented that to give you some ideas for what you are planning.

> <https://github.com/apple/foundationdb/blob/master/fdbclient/TaskBucket.h>

---

_[View the full topic](https://forums.foundationdb.org/t/throughput-of-a-queue-set-like-data-structure/205)._
