{
  "slug": "blobdb",
  "term": "BlobDB (RocksDB)",
  "aliases": [
    "Integrated BlobDB",
    "RocksDB BlobDB"
  ],
  "definition": "BlobDB is RocksDB's key-value separation facility for storing larger values in blob files while keeping references in the LSM-tree.",
  "note": "Integrated BlobDB uses rocksdb::DB rather than legacy StackableDB. Its background-extraction path creates key-sorted files during flush/compaction; compaction relocates blobs and references together. [blobdb-wiki]\n\nRocksDB v11.8.1 has experimental Blob Direct Write v1, disabled by default. Qualifying Put values are externalized before WAL/memtable insertion, which then carry BlobIndex references. PutCF leaves values below min_blob_size inline: equality qualifies. TimedPutCF passes through without direct-write separation. [blob-options] [blob-transform]\n\nActive files can serve reads before MANIFEST registration. Flush/SST creation must make them manifest-visible for the supported v1 recovery path; it is not WAL replay of active direct-write files. [blob-options] [blob-lifecycle]\n\nThe upstream close test reads four keys after close/reopen with avoid_flush_during_shutdown enabled. Close forces a flush; this is not an abrupt crash. Checkpoint, backup and live-file enumeration must flush pending direct-write state or may return NotSupported. [blob-tests] [blob-options]\n\nPartitions control file placement, not automatically writer parallelism or TTL expiry. Default placement is round-robin; a custom callback must be supplied again on reopen. [blob-options] [blob-direct-design]\n\nWiscKey instead checks record liveness against the LSM-tree before relocating survivors. Its recovery argument does not specify the later RocksDB implementation. [wisckey-paper]",
  "related": [
    "rocksdb",
    "key-value-separation"
  ],
  "citations": [
    {
      "id": "blobdb-wiki",
      "title": "RocksDB project: integrated BlobDB design and garbage collection.",
      "url": "https://github.com/facebook/rocksdb/wiki/BlobDB",
      "accessed": "2026-12-02"
    },
    {
      "id": "blob-options",
      "title": "RocksDB v11.8.1: advanced_options.h, experimental direct-write v1 contract.",
      "url": "https://github.com/facebook/rocksdb/blob/abeebd9630f11bd08c28b7bd43c7bdfc62050654/include/rocksdb/advanced_options.h#L1202-L1257",
      "accessed": "2026-12-02"
    },
    {
      "id": "blob-transform",
      "title": "RocksDB v11.8.1: BlobWriteBatchTransformer::PutCF, TimedPutCF and PutEntityCF.",
      "url": "https://github.com/facebook/rocksdb/blob/abeebd9630f11bd08c28b7bd43c7bdfc62050654/db/blob/blob_write_batch_transformer.cc#L153-L245",
      "accessed": "2026-12-02"
    },
    {
      "id": "blob-lifecycle",
      "title": "RocksDB v11.8.1: blob generation rotation, flush registration and active-file reads.",
      "url": "https://github.com/facebook/rocksdb/blob/abeebd9630f11bd08c28b7bd43c7bdfc62050654/db/blob/blob_file_partition_manager.cc#L534-L620",
      "accessed": "2026-12-02"
    },
    {
      "id": "blob-tests",
      "title": "RocksDB v11.8.1: direct-write close, option, threshold and snapshot tests (reviewed, not executed).",
      "url": "https://github.com/facebook/rocksdb/blob/abeebd9630f11bd08c28b7bd43c7bdfc62050654/db/blob/db_blob_direct_write_test.cc",
      "accessed": "2026-12-02"
    },
    {
      "id": "blob-direct-design",
      "title": "Xingbo Wang. Blob Direct Write With Partitioned Blob Files. RocksDB project, 20 June 2026.",
      "url": "https://rocksdb.org/blog/2026/06/20/blob-direct-write-partitioned-blob-files.html",
      "accessed": "2026-12-02"
    },
    {
      "id": "wisckey-paper",
      "title": "Lu, Pillai, Arpaci-Dusseau and Arpaci-Dusseau. WiscKey. FAST 2016, pp. 133-148, sections 3.2-3.3.",
      "url": "https://files.usenix.org/s3fs-public/cdn/fast16-papers-lu.pdf",
      "accessed": "2026-12-02"
    },
    {
      "id": "hesela-kv",
      "title": "Hesela: BlobDB placement and recovery boundaries.",
      "url": "https://hesela.com/analyses/key-value-separation-cleaning-cost/#blobdb-write-paths",
      "accessed": "2026-12-02"
    }
  ],
  "status": "shipping",
  "advantages": [],
  "limitations": [
    {
      "text": "The direct-write details describe the experimental reduced-scope v1 contract in RocksDB v11.8.1, not all BlobDB versions. Ordered single-memtable-writer mode is required; concurrent memtable writes, pipelined writes, unordered writes and two write queues are unsupported.",
      "citationIds": [
        "blob-options"
      ]
    }
  ],
  "supersedes": [],
  "supersededBy": [],
  "firstSeen": null,
  "lastSeen": null,
  "updated": "2026-12-02",
  "provenance": [
    "Source review at RocksDB v11.8.1 commit abeebd9630f11bd08c28b7bd43c7bdfc62050654. Upstream tests were read, not run; no native RocksDB crash test or throughput measurement was performed.",
    "RocksDB documentation and code share a project owner. WiscKey supplies historical comparison, not independent validation of the later implementation."
  ]
}
