talira

Apache OpenDAL

One Layer, All Storage

open sourceApache-2.0self-hostablefree

Apache OpenDAL is an open data access layer: one API (an Operator) to read, write, stat, list, copy and delete across more than 50 storage services. They include object storage (S3 and S3-compatible stores, Google Cloud Storage, Azure Blob, Backblaze B2, Alibaba OSS and others), file systems and protocols (local disk, HDFS, WebDAV, SFTP, FTP, HTTP), cloud drives (Google Drive, Dropbox, OneDrive, Hugging Face), databases and key-value stores (SQLite, PostgreSQL, MongoDB, Redis, etcd, TiKV, RocksDB). It streams large objects, reads byte ranges and uploads parts concurrently, and adds retries, timeouts, concurrency limits, logging, tracing and metrics as layers. An in-memory service makes tests run without credentials, and capability checks show where services differ. The core is Rust, with bindings for Python, Node.js, Java, Go, Ruby, C and C++ and more in the repository (.NET, Dart, Haskell, Lua, OCaml, PHP, Swift, Zig). It's a top-level project of the Apache Software Foundation, and its users include Dify, LlamaIndex, sccache, Databend, RisingWave and GreptimeDB.

Problems it solves

  • write storage code once and switch between S3, Google Cloud Storage and Azure Blob without rewriting it
  • use local disk in development and S3 in production with the same file API
  • test code that reads and writes object storage without real cloud credentials
  • read only a byte range of a large Parquet file in S3 instead of downloading the whole thing
  • upload a multi-gigabyte file to object storage in concurrent parts from Rust
  • add retries, timeouts and concurrency limits to every object storage call in one place
  • get tracing and Prometheus metrics for storage reads and writes across backends
  • one Rust crate for S3, HDFS, WebDAV, SFTP and FTP
  • let users of my app choose where their files live: S3, Google Drive, Dropbox or a local folder
  • access the same storage backends from Python, Node.js, Java and Go with one library
  • treat Redis, etcd or a SQL database as a key-value file store behind the same API as object storage
  • stream a huge object from cloud storage without loading it into memory

Features

  • one Operator API: read, write, stat, list, copy, delete
  • 50+ services: object storage, file systems, protocols, cloud drives, databases, key-value stores
  • streaming reads and writes, byte-range reads
  • concurrent multipart and block uploads
  • layers: retry, timeout, concurrency limit, throttle, logging, tracing, Prometheus and OpenTelemetry metrics
  • in-memory and local file system services for tests and development
  • capability checks per service
  • bindings: Rust, Python, Node.js, Java, Go, Ruby, C, C++, and more
  • integrations for Arrow object_store, Parquet, dav-server, unftp and Spring

Capabilities

Has official SDKsplan not known