FleetDB

discontinued

by Mark McGranaghan · since 2009 · also known as Fleet DB

Schema-free in-memory document database in Clojure with a JSON query protocol and append-only log durability.

documentdatabase engineopen source (permissive)legacy

discontinued. The author marks it as no longer active; last release 0.3.1 (September 2010).

Overview

FleetDB is a schema-free document database written in Clojure by Mark McGranaghan, which grew out of his senior thesis at Bowdoin College in 2009-2010. All data is held in memory as Clojure persistent data structures, every write is appended to a log that is replayed on start-up and can be compacted or snapshotted, and clients send queries as JSON arrays over a plain TCP socket, or call it in-process via an embedded API. The query set covers select with where, order, limit, offset and distinct, plus insert, update, delete, count, explain, index creation and atomic multi-read, multi-write and checked-write operations, with optional password authentication. The last release, 0.3.1, came out in September 2010, and the README now says the project is no longer active.

Strengths & trade-offs

Strengths

  • +Clean, small Clojure codebase showing an immutable in-memory database with log replay
  • +Readable JSON query protocol with explain, indexes and atomic multi-query operations
  • +Embeddable in-process or usable as a TCP server

Trade-offs

  • −Inactive since 2010 and tied to Clojure 1.2-era dependencies
  • −Whole dataset must fit in memory
  • −No replication or clustering

Great for

  • +Studying how persistent data structures can back a database
  • +Teaching examples of log-structured durability and query planning

Think twice for

  • −Production use
  • −Datasets larger than RAM

Capabilities

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

✓Transactions
✓Secondary indexes
✓JSON
✓In-memory
✓Durable persistence
–Joins
–Full-text search
–Vector search
–Geospatial
–Change data capture
–Triggers
–Stored procedures
–Materialized views
–TTL / expiry
–Pub/Sub
–Columnar storage
–Compression
–Encryption at rest
–Role-based access
–Time travel
–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
Limited ACID
Consistency
Strong
Schema
Schemaless
Architecture
In memory, Client server, Embedded
Query languages
FleetDB JSON query language

Deployment

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

Ecosystem

apis & protocolsJSON over TCP, Clojure embedded API
client languagesClojure, Ruby, Python, JavaScript, Perl

Alternatives to FleetDB

Compare all→
MongoDBDocument80.5

The default document database: flexible BSON documents, rich queries and built-in sharding.

fleetdb vs mongodb →
DatomicRelational14.9

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

fleetdb vs datomic →
XTDBRelational8.3

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

fleetdb vs xtdb →
RedisKey-Value84.3

The in-memory data structure server that became the default cache, now with search, JSON and vectors built in.

fleetdb vs redis →
LealoneRelational2.8

Chinese Java OLTP database derived from H2, now repositioned as an AI agent platform built on its SQL engine.

fleetdb vs lealone →
Microsoft AccessRelational45.8

Desktop database and forms builder bundled with Microsoft 365; still everywhere in back offices.

fleetdb vs microsoft-access →

FleetDB FAQ

What is FleetDB?

FleetDB is a document database by Mark McGranaghan, first released in 2009. FleetDB is a schema-free document database written in Clojure by Mark McGranaghan, which grew out of his senior thesis at Bowdoin College in 2009-2010. All data is held in memory as Clojure persistent data structures, every write is appended to a log that is replayed on start-up and can be compacted or snapshotted, and clients send queries as JSON arrays over a plain TCP socket, or call it in-process via an embedded API. The query set covers select with where, order, limit, offset and distinct, plus insert, update, delete, count, explain, index creation and atomic multi-read, multi-write and checked-write operations, with optional password authentication. The last release, 0.3.1, came out in September 2010, and the README now says the project is no longer active.

Is FleetDB open source?

Yes. FleetDB is open source. License: MIT License.

Does FleetDB support ACID transactions?

Partly. FleetDB offers limited ACID guarantees (for example, single-record or single-partition transactions), with strong consistency.

Does FleetDB scale horizontally?

FleetDB 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 FleetDB?

You can self-host it and embed it in your application.

What is FleetDB best for?

FleetDB is a strong fit for studying how persistent data structures can back a database; and teaching examples of log-structured durability and query planning. Think twice for production use.

What are the best alternatives to FleetDB?

Common alternatives to FleetDB include MongoDB, Datomic, XTDB, Redis and Lealone. The right choice depends on your workload, scale and hosting; WhichDB's smart match ranks them against your requirements.

Is FleetDB still maintained?

FleetDB is discontinued. The author marks it as no longer active; last release 0.3.1 (September 2010).

How popular is FleetDB?

FleetDB ranks #622 of 844 databases on the WhichDB Score (0.6/100), and #58 among document databases. The score combines public adoption signals such as package downloads, GitHub activity, job posts and developer discussion.