Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
1 change: 1 addition & 0 deletions .envrc
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
use flake
14 changes: 7 additions & 7 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -12,17 +12,17 @@ jobs:
concurrency:
group: ${{ github.workflow }}-${{ github.ref }}
steps:
- uses: actions/checkout@v2
- uses: actions/checkout@v4

- run: which mdbook || cargo install mdbook --locked --version 0.4.15
- run: which mdbook-toc || cargo install mdbook-toc --locked --version 0.8.0
- run: which mdbook-mermaid || cargo install mdbook-mermaid --locked --version 0.9.0
- run: which mdbook-linkcheck || cargo install mdbook-linkcheck --locked --version 0.7.6
- uses: cachix/install-nix-action@v27
with:
extra_nix_config: |
access-tokens = github.com=${{ secrets.GITHUB_TOKEN }}

- run: mdbook build
- run: nix develop --command mdbook build

- name: Deploy
uses: peaceiris/actions-gh-pages@v3
uses: peaceiris/actions-gh-pages@v4
if: ${{ github.ref == 'refs/heads/main' }}
with:
github_token: ${{ secrets.GITHUB_TOKEN }}
Expand Down
1 change: 1 addition & 0 deletions .gitignore
Original file line number Diff line number Diff line change
@@ -1 +1,2 @@
book
.direnv
8 changes: 8 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
@@ -1,3 +1,11 @@
# The FoundationDB Book

This repo is holding the source code of `The FoundationDB Book`. Fairly early stage for now.

## TODOs

* https://github.com/apple/foundationdb/wiki/Best-practice-of-storing-structured-data,-for-example-JSON-objects
* https://github.com/apple/foundationdb/wiki/Data-Distribution-and-Movement
* https://github.com/apple/foundationdb/wiki/Difference-between-snapshot-reads-and-regular-reads
* https://github.com/apple/foundationdb/wiki/Guidelines-for-Choosing-Coordinators
* https://github.com/apple/foundationdb/wiki/Upgrading-FoundationDB
61 changes: 61 additions & 0 deletions flake.lock

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

26 changes: 26 additions & 0 deletions flake.nix
Original file line number Diff line number Diff line change
@@ -0,0 +1,26 @@
{
description = "A dev environment for the fdb-book";

inputs = {
nixpkgs.url = "github:NixOS/nixpkgs/nixos-unstable";
flake-utils.url = "github:numtide/flake-utils";
};

outputs = { self, nixpkgs, flake-utils }:
flake-utils.lib.eachDefaultSystem (system:
let
pkgs = import nixpkgs {
inherit system;
};
in
{
devShells.default = pkgs.mkShell {
buildInputs = with pkgs; [
mdbook
mdbook-toc
mdbook-mermaid
mdbook-linkcheck
];
};
});
}
24 changes: 12 additions & 12 deletions src/SUMMARY.md
Original file line number Diff line number Diff line change
Expand Up @@ -7,26 +7,26 @@
- [Yet another database?](./meet_fdb/another_db.md)
- [Enter FoundationDB](./meet_fdb/enter_fdb.md)
- [Everything is a key-value!](./meet_fdb/everything_is_kv.md)
- [Correct and robust, choose both](./meet_fdb/correctess.md)
- [A Culture of Correctness](./meet_fdb/correctness.md)

# Getting started with FoundationDB

- [Installing FoundationDB](./getting_started/installing-fdb.md)
- [Playing with `fdbcli`](./getting_started/fdbcli.md)
- [Installation](./getting_started/installation.md)
- [The `fdbcli` Command-Line Interface](./getting_started/fdbcli.md)

# Developing a layer

- [ACID transactions](./develop_layer/transactions.md)
- [Crafting row keys](./develop_layer/crafting-row-keys.md)
- [Existing open-source layers](./develop_layer/studiable-layers.md)
- [Tips and tricks](./develop_layer/tips.md)
- [Core Concept: Transactions](./develop_layer/transactions.md)
- [Key Design: Tuples, Subspaces, and Directories](./develop_layer/crafting-row-keys.md)
- [Learning from the Community: Open-Source Layers](./develop_layer/studiable-layers.md)
- [Best Practices and Pitfalls](./develop_layer/tips.md)

# FoundationDB's internals

- [TODO: the list of roles]()
- [TODO: the write-path]()
- [TODO: the read-path]()
- [Anatomy of a Cluster: Roles](./internals/roles.md)
- [The Write Path](./internals/the-write-path.md)
- [The Read Path](./internals/the-read-path.md)

# The Record-Layer
- [TODO: What is the Record-layer?]()
- [TODO: QuiCK]()
- [What is the Record-layer?](./the-record-layer/what-is-record-layer.md)
- [QuiCK](./the-record-layer/quick.md)
Loading