16.9K ·GitHub
What is this?
FoundationDB is a distributed, transactional key-value store that organizes data as an ordered key-value map and supports ACID transactions across clusters of commodity servers.
Is this a standalone database server or a library I embed?
It is a standalone distributed database server; applications talk to it through language API bindings (Python, Java, Go, Ruby, C, etc.) rather than embedding it.
How do I get it running?
Download a prebuilt binary package from the downloads page for your OS, or compile from source using CMake and Ninja (the official Docker build image is recommended for building).
Any pitfalls when building or upgrading?
Building requires at least 8GB of memory (more if parallelized, and the build can freeze/crash on low-memory machines), and the dependency list for local builds is 'likely to be incomplete' so the Docker image is the recommended path.
What kind of workloads is it designed for?
It targets large-scale structured data workloads, with especially strong performance for read/write and write-intensive use cases.
Which operating systems does it support?
It builds and runs on Linux, macOS, FreeBSD, and Windows (Windows builds require Visual Studio with ClangCl).
What programming model does the async C++ code use?
FoundationDB's asynchronous code uses standard C++20 coroutines with the project's own Flow runtime, so editors need C++20 support.
Can I generate IDE project files for working on the source?
Yes, CMake's OPENFORIDE option creates an editing-only project (e.g. for Xcode) that supports navigation and editing but cannot be built; a separate build directory is needed for actual builds.
How do upgrades between versions work?
Specific upgrade paths like 6.3.25 to 7.1.57 to 7.3.69 have been well tested in production, while skipping a major release during upgrade is only tested in simulation.
Can I skip the Swift language binding on macOS builds?
Yes, if you don't need the Swift binding you can pass -DBUILDSWIFTBINDING=OFF when building on macOS.
Which topics is it in?
key-value-store, distributed-database, storage, sql, distributed-systems, cloud, database, c++, networking, performance, server, apache-2.0