BergDB

discontinued

by Frans Lundberg · since 2013 · also known as KissDB

Embedded Java/.NET time-key-value store with serializable transactions and queries against any past state.

key-valuedocumentembedded libraryopen source (copyleft)legacy

discontinued. Last release 2015.4 (July 2015) with a known unfixed restart issue; project site gone. Consider H2, Nitrite or XTDB instead.

Overview

BergDB was an in-process database library for the JVM and .NET written by Frans Lundberg, first released in 2013 under the name KissDB. It stored time-key-value entries in an append-only file: keys are path-like strings, values are serialized objects, strings or bytes, and because every state is kept, any earlier point in time can be queried with the same API (historic queries). All writes ran in serializable ACID transactions, and it added secondary indexes (including on nested fields), replication and, in its final release, file encryption, all without a query language. The last release, 2015.4, shipped in July 2015; a serious restart bug reported that November was never fixed, and the bergdb.com domain now hosts unrelated content.

Strengths & trade-offs

Strengths

  • +Historic queries: every past state is readable through the same API
  • +Serializable ACID transactions in an embedded library
  • +Same on-disk format across JVM and .NET languages
  • +Transparent object serialization with minimal boilerplate

Trade-offs

  • −Unmaintained since 2015 with an acknowledged unfixed restart bug
  • −Single-developer project; documentation now only on archived pages
  • −AGPL licence complicates embedding in proprietary apps
  • −Append-only storage grows without compaction

Great for

  • +Studying temporal, append-only embedded storage
  • +Reference for time-travel query APIs

Think twice for

  • −Any new application
  • −Workloads that need a query language or multi-process access

Capabilities

Native or official first-party support · 5 of 25 tracked

✓Transactions
✓Secondary indexes
✓Durable persistence
✓Encryption at rest
✓Time travel
–Joins
–Full-text search
–Vector search
–Geospatial
–JSON
–Change data capture
–Triggers
–Stored procedures
–Materialized views
–TTL / expiry
–Pub/Sub
–Columnar storage
–In-memory
–Compression
–Role-based access
–Branching
–Online schema changes
–Streaming ingest
–Offline sync
–Runs in WebAssembly

Scale & consistency

Comfortable data size
Small · ≤ 100 GB
Horizontal scaling
None
Multi-region
No
Transactions
Full ACID
Consistency
Strong
Schema
Schemaless
Architecture
Embedded
Query languages
Java/.NET API (no query language)

Single-process library; the author claimed it could reach terabytes and billions of entries.

Deployment

Self-hosted Vendor-managed cloud Serverless Embedded Edge Kubernetes operator

Ecosystem

apis & protocolsJava API, .NET API
client languagesJava, C#

Alternatives to BergDB

Compare all→
XTDBRelational8.3

Bitemporal SQL database on object storage that keeps every version of every row.

bergdb vs xtdb →
H2 DatabaseRelational23.5

Fast pure-Java SQL engine for embedded, in-memory and test databases, with compatibility modes.

bergdb vs h2 →
NitriteDocument2.7

Embedded NoSQL document store for Java and Android with pluggable MVStore or RocksDB storage.

bergdb vs nitrite →
LiteDBDocument10.8

Serverless single-file NoSQL document database for .NET, in the spirit of SQLite.

bergdb vs litedb →
DatomicRelational14.9

Immutable Datalog database from Nubank where every fact is timestamped and queries run in the app process.

bergdb vs datomic →
Dexie.jsDocument25.8

The most popular IndexedDB wrapper, with live queries and an optional Dexie Cloud sync service.

bergdb vs dexie →

BergDB FAQ

What is BergDB?

BergDB is a key-value database by Frans Lundberg, first released in 2013. BergDB was an in-process database library for the JVM and .NET written by Frans Lundberg, first released in 2013 under the name KissDB. It stored time-key-value entries in an append-only file: keys are path-like strings, values are serialized objects, strings or bytes, and because every state is kept, any earlier point in time can be queried with the same API (historic queries). All writes ran in serializable ACID transactions, and it added secondary indexes (including on nested fields), replication and, in its final release, file encryption, all without a query language. The last release, 2015.4, shipped in July 2015; a serious restart bug reported that November was never fixed, and the bergdb.com domain now hosts unrelated content.

Is BergDB open source?

Yes. BergDB is open source. License: GNU AGPL v3 (commercial licence on request).

Does BergDB support ACID transactions?

Yes. BergDB supports full ACID transactions, with strong consistency.

Does BergDB scale horizontally?

BergDB does not scale horizontally; it runs on a single node, so you scale it up rather than out. It is comfortable at small scale (≤ 100 GB).

How can I run BergDB?

You can embed it in your application.

What is BergDB best for?

BergDB is a strong fit for studying temporal, append-only embedded storage; and reference for time-travel query APIs. Think twice for any new application.

What are the best alternatives to BergDB?

Common alternatives to BergDB include XTDB, H2 Database, Nitrite, LiteDB and Datomic. The right choice depends on your workload, scale and hosting; WhichDB's smart match ranks them against your requirements.

Is BergDB still maintained?

BergDB is discontinued. Last release 2015.4 (July 2015) with a known unfixed restart issue; project site gone. Consider H2, Nitrite or XTDB instead.

How popular is BergDB?

BergDB has little measurable public adoption today, so it ranks near the bottom of the WhichDB Score.