Commit 791113a
authored
feat: Implement a simple backend for Google BigTable (#64)
First iteration of a Google BigTable backend that supports
- Concurrent uploads and downloads
- Table management: Automatically creates the table, column families,
and GC policies.
- Overwriting objects: When calling `put` on an object that exists, the
old one will be deleted along with its metadata.
- TTL and TTI: Automatic expiry of objects after a time-to-live, as well
as automatic bumping via time-to-idle. The latter has to be implemented
as re-inserting, so the bump is debounced to once per day.
- Metadata storage: Encodes the metadata map, including custom metadata,
into a dedicated column.
Locally and in CI this is tested using the BigTable Emulator. The
emulator is also added to devservices for convenience. Unfortunately, we
had to bring back `protoc` since this is required by one of the
dependencies.
Future improvements:
- Chunking to store objects larger than 10 MB efficiently
- Multi-fetching of more than one object at a time
- (TBD) Splitting metadata into dedicated columns
Closes FS-1071 parent c1fbe87 commit 791113a
File tree
13 files changed
+1293
-24
lines changed- .github/workflows
- devservices
- objectstore-server/src
- objectstore-service
- src
- backend
- objectstore-types/src
13 files changed
+1293
-24
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
| 1 | + | |
| 2 | + | |
| 3 | + | |
| 4 | + | |
| 5 | + | |
| 6 | + | |
| 7 | + | |
| 8 | + | |
1 | 9 | | |
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
24 | 24 | | |
25 | 25 | | |
26 | 26 | | |
| 27 | + | |
| 28 | + | |
| 29 | + | |
| 30 | + | |
| 31 | + | |
27 | 32 | | |
28 | 33 | | |
29 | 34 | | |
| |||
46 | 51 | | |
47 | 52 | | |
48 | 53 | | |
| 54 | + | |
| 55 | + | |
| 56 | + | |
| 57 | + | |
| 58 | + | |
| 59 | + | |
| 60 | + | |
| 61 | + | |
49 | 62 | | |
50 | 63 | | |
51 | 64 | | |
52 | 65 | | |
| 66 | + | |
| 67 | + | |
| 68 | + | |
| 69 | + | |
| 70 | + | |
53 | 71 | | |
54 | 72 | | |
55 | 73 | | |
56 | 74 | | |
57 | 75 | | |
58 | 76 | | |
| 77 | + | |
| 78 | + | |
59 | 79 | | |
60 | 80 | | |
61 | 81 | | |
| |||
72 | 92 | | |
73 | 93 | | |
74 | 94 | | |
| 95 | + | |
| 96 | + | |
| 97 | + | |
| 98 | + | |
| 99 | + | |
75 | 100 | | |
76 | 101 | | |
77 | 102 | | |
| |||
0 commit comments