BoJack

discontinued

by Marcelo Boeira · since 2016

Self-described 'unreliable' in-memory key-value server written in Crystal as a learning project; archived.

key-valuedatabase engineopen source (permissive)legacy

discontinued. Learning project; repository archived, last release v0.1.1 (Aug 2016) and last commit January 2018.

Overview

BoJack is a small in-memory key-value server written in Crystal by Marcelo Boeira, born from his 2016 article 'Why you should build your own NoSQL Database'. It runs a TCP server (port 5000 by default) with a text command protocol and an interactive console supporting set, get, delete, increment and ping-style commands, and it deliberately calls itself 'the unreliable key-value store': there is no clustering, security layer or durable persistence. Releases stopped at v0.1.1 in August 2016, the last commit was in January 2018 and the repository is now archived. It is a readable example of a network server in Crystal, not a database to deploy.

Strengths & trade-offs

Strengths

  • +Very small, readable Crystal codebase for learning server design
  • +MIT licence

Trade-offs

  • −No persistence, clustering or security by design
  • −Archived and pinned to an old Crystal version

Great for

  • +Learning how to build a networked key-value store
  • +Crystal language examples

Think twice for

  • −Any real caching or storage workload

Capabilities

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

✓In-memory
–Transactions
–Joins
–Secondary indexes
–Full-text search
–Vector search
–Geospatial
–JSON
–Change data capture
–Triggers
–Stored procedures
–Materialized views
–TTL / expiry
–Pub/Sub
–Columnar storage
–Durable persistence
–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
None
Consistency
Strong
Schema
Schemaless
Architecture
Single node, In memory, Client server
Query languages
Text command protocol

Deployment

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

Ecosystem

apis & protocolsTCP text protocol, Interactive console

Alternatives to BoJack

Compare all→
RedisKey-Value84.3

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

bojack vs redis →
ValkeyKey-Value58.0

The Linux Foundation's BSD-licensed fork of Redis, now the default engine on AWS and Google Cloud.

bojack vs valkey →
MemcachedKey-Value50.6

The original multi-threaded, dead-simple distributed memory cache for key-value blobs.

bojack vs memcached →
DragonflyKey-Value20.7

A multi-threaded, shared-nothing in-memory store that speaks Redis and Memcached on one big box.

bojack vs dragonfly →
EhcacheKey-Value17.6

The standard embedded JVM cache, with heap, off-heap and disk tiers and optional Terracotta clustering.

bojack vs ehcache →
EVCacheKey-Value2.8

Netflix's memcached-based distributed cache with zone-aware replication, built for AWS microservices.

bojack vs evcache →

BoJack FAQ

What is BoJack?

BoJack is a key-value database by Marcelo Boeira, first released in 2016. BoJack is a small in-memory key-value server written in Crystal by Marcelo Boeira, born from his 2016 article 'Why you should build your own NoSQL Database'. It runs a TCP server (port 5000 by default) with a text command protocol and an interactive console supporting set, get, delete, increment and ping-style commands, and it deliberately calls itself 'the unreliable key-value store': there is no clustering, security layer or durable persistence. Releases stopped at v0.1.1 in August 2016, the last commit was in January 2018 and the repository is now archived. It is a readable example of a network server in Crystal, not a database to deploy.

Is BoJack open source?

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

Does BoJack support ACID transactions?

No. BoJack does not provide ACID transactions; its consistency model is strong.

Does BoJack scale horizontally?

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

You can self-host it.

What is BoJack best for?

BoJack is a strong fit for learning how to build a networked key-value store and crystal language examples. Think twice for any real caching or storage workload.

What are the best alternatives to BoJack?

Common alternatives to BoJack include Redis, Valkey, Memcached, Dragonfly and Ehcache. The right choice depends on your workload, scale and hosting; WhichDB's smart match ranks them against your requirements.

Is BoJack still maintained?

BoJack is discontinued. Learning project; repository archived, last release v0.1.1 (Aug 2016) and last commit January 2018.

How popular is BoJack?

BoJack ranks #628 of 844 databases on the WhichDB Score (0.5/100), and #115 among key-value databases. The score combines public adoption signals such as package downloads, GitHub activity, job posts and developer discussion.