Kyoto Tycoon

discontinued

by FAL Labs (Mikio Hirabayashi) · since 2010 · also known as KT, kyototycoon

FAL Labs' HTTP and memcached-speaking network server for Kyoto Cabinet, with expiry and replication.

key-valuedatabase engineopen source (copyleft)legacy

discontinued. No upstream release since 0.9.56 (April 2012); community forks (Altice Labs, Cloudflare) are archived. The author's successor is Tkrzw with Tkrzw-RPC.

Overview

Kyoto Tycoon is the network front end to the Kyoto Cabinet DBM library, written in C++ by Mikio Hirabayashi's FAL Labs from 2010. A single server process hosts multiple hash or B+tree databases, in memory or on disk, and clients talk to it over a RESTful/RPC HTTP protocol, a compact binary protocol or a memcached-compatible plug-in. Records can carry expiration times, so it doubles as a persistent cache, and it supports master-slave and dual-master replication via update logs plus server-side Lua scripting. Development stopped with 0.9.56 in 2012; Cloudflare ran it for years for edge configuration before replacing it with Quicksilver, and Altice Labs kept a fork that is now archived. The author's successor is Tkrzw-RPC.

Strengths & trade-offs

Strengths

  • +Very fast hash and B+tree storage inherited from Kyoto Cabinet
  • +Per-record expiration makes it a persistent cache
  • +Speaks HTTP, a binary protocol and the memcached protocol
  • +Master-slave and dual-master replication via update logs
  • +Server-side Lua scripting

Trade-offs

  • −Abandoned upstream since 2012
  • −Hard to operate at scale: one process per database file, awkward upgrades
  • −No built-in sharding or consensus-based failover

Great for

  • +Legacy caches and config stores still running it
  • +Studying a compact C++ KV server design

Think twice for

  • −New deployments (use Redis/Valkey, or Tkrzw-RPC for the same lineage)
  • −Systems that need automatic failover or sharding

Capabilities

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

✓Stored procedures
✓TTL / expiry
✓In-memory
✓Durable persistence
✓Compression
–Transactions
–Joins
–Secondary indexes
–Full-text search
–Vector search
–Geospatial
–JSON
–Change data capture
–Triggers
–Materialized views
–Pub/Sub
–Columnar storage
–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
Manual
Multi-region
Read replicas
Transactions
Limited ACID
Consistency
Eventual
Schema
Schemaless
Architecture
Client server, Primary replica, Multi primary
Query languages
HTTP RPC/REST protocol, Lua (server scripts)

One server per node; replication is log shipping to slaves or a dual-master pair; sharding is client-side.

Deployment

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

Ecosystem

compatible withMemcached
apis & protocolsHTTP (REST and RPC), Binary protocol, memcached protocol
client languagesC++, Python
used byCloudflare

Alternatives to Kyoto Tycoon

Compare all→
Kyoto CabinetKey-Value1.7

FAL Labs' C++ DBM library with hash and B+tree files; superseded by its author's Tkrzw.

kyoto-tycoon vs kyoto-cabinet →
RedisKey-Value84.3

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

kyoto-tycoon vs redis →
ValkeyKey-Value58.0

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

kyoto-tycoon vs valkey →
MemcachedKey-Value50.6

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

kyoto-tycoon vs memcached →
Apache KvrocksKey-Value10.3

A Redis-protocol database on RocksDB that trades a little latency for disk-sized capacity.

kyoto-tycoon vs apache-kvrocks →
Tokyo CabinetKey-Value1.4

Classic C DBM library from FAL Labs; unmaintained since 2012 and twice superseded.

kyoto-tycoon vs tokyo-cabinet →

Kyoto Tycoon FAQ

What is Kyoto Tycoon?

Kyoto Tycoon is a key-value database by FAL Labs (Mikio Hirabayashi), first released in 2010. Kyoto Tycoon is the network front end to the Kyoto Cabinet DBM library, written in C++ by Mikio Hirabayashi's FAL Labs from 2010. A single server process hosts multiple hash or B+tree databases, in memory or on disk, and clients talk to it over a RESTful/RPC HTTP protocol, a compact binary protocol or a memcached-compatible plug-in. Records can carry expiration times, so it doubles as a persistent cache, and it supports master-slave and dual-master replication via update logs plus server-side Lua scripting. Development stopped with 0.9.56 in 2012; Cloudflare ran it for years for edge configuration before replacing it with Quicksilver, and Altice Labs kept a fork that is now archived. The author's successor is Tkrzw-RPC.

Is Kyoto Tycoon open source?

Yes. Kyoto Tycoon is open source. License: GNU GPL v3.

Does Kyoto Tycoon support ACID transactions?

Partly. Kyoto Tycoon offers limited ACID guarantees (for example, single-record or single-partition transactions), with eventual consistency.

Does Kyoto Tycoon scale horizontally?

Kyoto Tycoon has no built-in sharding; scaling out means partitioning data in your application. It is comfortable at small scale (≤ 100 GB). It supports cross-region read replicas.

How can I run Kyoto Tycoon?

You can self-host it.

What is Kyoto Tycoon best for?

Kyoto Tycoon is a strong fit for legacy caches and config stores still running it; and studying a compact C++ KV server design. Think twice for new deployments (use Redis/Valkey, or Tkrzw-RPC for the same lineage).

What are the best alternatives to Kyoto Tycoon?

Common alternatives to Kyoto Tycoon include Kyoto Cabinet, Redis, Valkey, Memcached and Apache Kvrocks. The right choice depends on your workload, scale and hosting; WhichDB's smart match ranks them against your requirements.

Is Kyoto Tycoon still maintained?

Kyoto Tycoon is discontinued. No upstream release since 0.9.56 (April 2012); community forks (Altice Labs, Cloudflare) are archived. The author's successor is Tkrzw with Tkrzw-RPC.

How popular is Kyoto Tycoon?

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